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:Important: Difference between revisions

From Consumer Rights Wiki
m 1 revision imported
Explicitly define a text color. Fixes the text not being visible on dark mode.
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
<div class="important" style="background-color: #fee; border: 1px solid #faa; padding: 10px; margin: 10px 0;">
<includeonly>
<div class="important" style="background-color: #fee; color: #000; border: 1px solid #faa; padding: 10px; margin: 10px 0; width:fit-content">
<strong>Important:</strong> {{{1}}}
<strong>Important:</strong> {{{1}}}
</div>
</div>
</includeonly>
<noinclude>
== Usage ==
Add this to the source editor
<pre>
<nowiki>
{{Important|Example of important text in a box}}
</nowiki>
</pre>
to create a box with around the text like this: {{Important|Example of important text in a box}}
[[Category:Styling templates]]
== Template Data ==
<templatedata>
{
"params": {
"1": {
"description": "Text to put in the box",
"type": "string",
"required": true
}
}
}
</templatedata></noinclude>

Latest revision as of 07:09, 3 March 2025


Add this to the source editor


{{Important|Example of important text in a box}}

to create a box with around the text like this:

Important: Example of important text in a box

Template Data

[edit source]

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
11

Text to put in the box

Stringrequired