Deprecated: Use of MediaWiki\Skin\Skin::appendSpecialPagesLinkIfAbsent was deprecated in MediaWiki 1.44. [Called from MediaWiki\Skin\Skin::buildSidebar in /var/www/html/includes/skins/Skin.php at line 1639] in /var/www/html/includes/debug/MWDebug.php on line 386
Jump to content

Template:Box: Difference between revisions

From Consumer Rights Wiki
Kostas (talk | contribs)
m clean up documentation
Nescap (talk | contribs)
m fixed background color to work with dark mode
 
(4 intermediate revisions by one other user not shown)
Line 2: Line 2:
{| class="wikitable"
{| class="wikitable"
  |-
  |-
  |style="background: #efefef;" |{{{1|}}}
  |style="background: var(--background-color-interactive-subtle,#f8f9fa);" |{{{1|}}}
  |}
  |}
</includeonly>
</includeonly>
Line 17: Line 17:
</pre>
</pre>
to create a box with around the text like this: {{Box|Example of text in a box}}
to create a box with around the text like this: {{Box|Example of text in a box}}
 
[[Category:Styling templates]]
== Template Data ==
== Template Data ==


Line 25: Line 25:
"1": {
"1": {
"description": "Text to put in the box",
"description": "Text to put in the box",
"type": "string"
"type": "string",
"required": true
}
}
},
},

Latest revision as of 16:21, 7 February 2025



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