Template:HeaderWarning: Difference between revisions
Jump to navigation
Jump to search
add header/warning template |
m \n |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<div style="width: 95%; min-height: 5%; border: 1px solid {{{border|#5a5a5a}}}; background: {{{bg|#cacaca}}}; text-align: center; margin-left: auto; margin-right: auto;"> | <div style="width: 95%; min-height: 5%; border: 1px solid {{{border|#5a5a5a}}}; background: {{{bg|#cacaca}}}; text-align: center; margin-left: auto; margin-right: auto;"> | ||
<b style="font-size: 15pt; color: # | <b style="font-size: 15pt; color: {{{header|#4a4a4a}}};">{{{1}}}</b><span style="{{#if: {{{fg}}}|color: {{{fg}}};|}}"> {{{2}}} </span> | ||
</div> | </div> | ||
<noinclude> | |||
<hr /> | |||
{{TemplateDocs| | |||
This template, HeaderWarning, is used to show a big warning sign for use cases such as [[Template:Stub]] or [[Template:Spoiler]]. | |||
For ordered arguments: | |||
# The header of the warning, e.g. "Spoiler" | |||
# The description of the warning, e.g. "This section or article contains spoilers." | |||
For optional (but also positional) arguments: | |||
* <b>border</b>: The color of the border of the warning, usually in hexadecimal (by default, <code>#5a5a5a</code>) or CSS's notations. | |||
* <b>bg</b>: The color of the background of the warning, usually in hexadecimal (by default, <code>#cacaca</code>) or CSS's notations. | |||
* <b>header</b>: The color of the warning's header, usually in hexadecimal (by default, <code>#4a4a4a</code>) or CSS's notations. | |||
* <b>fg</b>: The color of the description text/foreground, usually in hexadecimal or CSS's notations. | |||
}} | |||
</noinclude> |
Latest revision as of 10:31, 26 November 2024
{{{1}}} {{{2}}}
Template documentation |
---|
This template, HeaderWarning, is used to show a big warning sign for use cases such as Template:Stub or Template:Spoiler. For ordered arguments:
For optional (but also positional) arguments:
|