Please note that all submissions to the site are subject to the wiki's licence, CC 4.0 BY-SA, as found here

Template:Box: Difference between revisions

From Consumer Action Taskforce
Jump to navigationJump to search
Create box template for notices (very simple for now)
 
m change to required
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<onlyinclude><includeonly>{| class="wikitable"
<includeonly>
|-
{| class="wikitable"
|style="background: #efefef;" |{{{1|}}}
|-
|}</includeonly></onlyinclude>{{Box|Example.}}
|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",
"required": true
}
},
"paramOrder": [
"1"
],
"description": "Create a box containing text"
}
</templatedata>
</noinclude>

Latest revision as of 18:34, 16 January 2025



Usage[edit source]

Add this to the source editor


{{Box|Example of text in a box}}

to create a box with around the text like this:

Example of text in a box



Template Data[edit source]

Create a box containing text

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
11

Text to put in the box

Stringrequired