Template:Metanotice/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{Doc/subpage}}
{{Doc/subpage}}
 
<div style="display:flex;"><div style="flex:1">
{{infobox template
| summary      = Aids in the creation of article notice boxes
| type        = Metatemplate
| contrib      = [[User:mailmanmicky|mailmanmicky]]
| creationdate = 30/04/2023<br><small>(30 April 2023)</small>
| translation  = No
| parser      = No
| var          = No
}}
 
This is a metatemplate used to aid in the creation of notice templates. It's goal is to supplant the {{tl|link=messagebox}} template as a simplified, easier to use alternative.
This is a metatemplate used to aid in the creation of notice templates. It's goal is to supplant the {{tl|link=messagebox}} template as a simplified, easier to use alternative.


Line 66: Line 56:
| {{Metanotice|text = Example text|textstyle = font-family:monospace}}
| {{Metanotice|text = Example text|textstyle = font-family:monospace}}
|}
|}
{{clr}}
</div>
<div>
{{infobox template
| summary      = Aids in the creation of article notice boxes
| type        = Metatemplate
| contrib      = [[User:mailmanmicky|mailmanmicky]]
| creationdate = 30/04/2023<br><small>(30 April 2023)</small>
| translation  = No
| parser      = No
| var          = No
}}</div></div>

Revision as of 19:07, 3 June 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!
Style parameters
{{{style}}} Notice styling
| style = border:1px solid currentcolor;
Icon-help.png
{{{textstyle}}} Text styling
| textstyle = font-family:monospace;
Icon-help.png
Example text
Template:Metanotice
Logo-template.png
Summary
Aids in the creation of article notice boxes
Type
Metatemplate
Contributors
Creation date
30/04/2023
(30 April 2023)
Notes
N/A
Subpages
Documentation
Preload
N/A
Sandbox
Strings
N/A
Testcases
N/A
Other
N/A
Revision information
Latest editor
Mailmanmicky
Last edited
03/06/2023
20230603190716
Revision size
2277 bytes
2.277 kilobytes
0.002277 megabytes
Technical information
Page identifier
53258
Contains translations
No
Uses parser functions?
No
Uses variables?
No