Template:HeaderWarning: Difference between revisions

From matthyWiki
Jump to navigation Jump to search
mNo edit summary
m \n
 
(One intermediate revision 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;">
&nbsp;&nbsp;<b style="font-size: 15pt; color: {{{header|#4a4a4a}}};">{{{1}}}</b> {{{2}}}
&nbsp;&nbsp;<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:

  1. The header of the warning, e.g. "Spoiler"
  2. The description of the warning, e.g. "This section or article contains spoilers."

For optional (but also positional) arguments:

  • border: The color of the border of the warning, usually in hexadecimal (by default, #5a5a5a) or CSS's notations.
  • bg: The color of the background of the warning, usually in hexadecimal (by default, #cacaca) or CSS's notations.
  • header: The color of the warning's header, usually in hexadecimal (by default, #4a4a4a) or CSS's notations.
  • fg: The color of the description text/foreground, usually in hexadecimal or CSS's notations.