Template:HeaderWarning: Difference between revisions

From matthyWiki
Jump to navigation Jump to search
add doc
m \n
 
Line 5: Line 5:


<hr />
<hr />


{{TemplateDocs|
{{TemplateDocs|

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.