Template:Metanotice/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 34: Line 34:
|-
|-
| {{Code|{{param|id}}}}
| {{Code|{{param|id}}}}
| Infobox content. Most commonly used for adding icons.
| Idbox content. Most commonly used for adding icons.
| {{CodeBlock|margin=5px|<nowiki>| id = [[File:Warning_icon.png|32px|link=]]</nowiki>}}
| {{CodeBlock|margin=5px|<nowiki>| id = [[File:Warning_icon.png|32px|link=]]</nowiki>}}
| {{Metanotice|id=[[File:Warning_icon.png|32px|link=]]}}
| {{Metanotice|id=[[File:Warning_icon.png|32px|link=]]}}

Revision as of 22:03, 15 May 2023

Edit-copy.png
This is a documentation subpage for Template:Metanotice.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

This is a metatemplate used to aid in the creation of notice templates. It's goal is to supplant the {{messagebox}} template as a simplified, easier to use alternative.

Copy and Paste

{{Metanotice | rgb = | id = | text = }}

Usage, Parameters and Examples

{{Metanotice}}
Parameter Description Example Preview
No parameters Template will revert to the default valves specified within the parser functions.
{{Metanotice}}
Icon-help.png
{{{rgb}}} Controls the metanotice background and border color
| rgb = 235, 185, 23
Icon-help.png
{{{opacity}}} Metanotice background opacity
| opacity = .3
Icon-help.png
{{{id}}} Idbox content. Most commonly used for adding icons.
| id = [[File:Warning_icon.png|32px|link=]]
Warning icon.png
{{{text}}} Text content
| text = Hello, World!
Icon-help.png
Hello, World!