Template:Important: Difference between revisions

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>