Template:Box: Difference between revisions
Create box template for notices (very simple for now) |
m clean up documentation |
||
Line 1: | Line 1: | ||
<includeonly> | |||
|- | {| class="wikitable" | ||
|style="background: #efefef;" |{{{1|}}} | |- | ||
|}</includeonly>< | |style="background: #efefef;" |{{{1|}}} | ||
|} | |||
</includeonly> | |||
<noinclude> | |||
== Usage == | == Usage == | ||
Add this to the source editor | |||
<pre> | <pre> | ||
{{Box|Example}} | <nowiki> | ||
{{Box|Example of text in a box}} | |||
</nowiki> | |||
</pre> | </pre> | ||
to create a box with around the text like this: {{Box|Example of text in a box}} | |||
== Template Data == | |||
<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"description": "Text to put in the box", | |||
"type": "string" | |||
} | |||
}, | |||
"paramOrder": [ | |||
"1" | |||
], | |||
"description": "Create a box containing text" | |||
} | |||
</templatedata> | |||
</noinclude> |