Template:Important: Difference between revisions
Appearance
add fit content |
Explicitly define a text color. Fixes the text not being visible on dark mode. |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<div class="important" style="background-color: #fee; border: 1px solid #faa; padding: 10px; margin: 10px 0; width:fit-content"> | <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> | ||
Line 15: | Line 15: | ||
</pre> | </pre> | ||
to create a box with around the text like this: {{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}} | ||
[[Category:Styling templates]] | |||
== Template Data == | == Template Data == | ||
Latest revision as of 07:09, 3 March 2025
Usage[edit source]
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | Text to put in the box | String | required |