Template:Metanotice: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{Doc}}{{ModernTodo|Documentation}}<includeonly><onlyinclude><div style="background: linear-gradient(90deg, rgb({{{color|207, 207, 207}}},.1) 0%, transparent 100%); border-left: 2px solid rgb({{{color|207, 207, 207}}}); box-sizing: border-box; gap:1em; padding-left: 1em; padding-block:.2em; margin-block:6px; font-size: 12px; display:flex; align-items:center;">
{{Doc}}{{ModernTodo|Documentation}}<includeonly><onlyinclude><div style="background: linear-gradient(90deg, rgb({{{color|207, 207, 207}}},.1) 0%, transparent 100%); border-left: 2px solid rgb({{{color|207, 207, 207}}}); box-sizing: border-box; gap:1em; padding-left: 1em; padding-block:.2em; margin-block:6px; font-size: 12px; display:flex; align-items:center;">


<div style="user-select:none;">{{{left|[[File:Icon-help.png|32px]]}}}</div>
<div style="user-select:none;">{{{icon|[[File:Icon-help.png|32px]]}}}</div>
<div><big>'''{{{text|{{{1|}}}}}}'''</big><br>{{{small|{{{2|}}}}}}</div></div>
<div><big>'''{{{text|{{{1|}}}}}}'''</big><br>{{{small|{{{2|}}}}}}</div></div>


</onlyinclude></includeonly><!--
</onlyinclude></includeonly><!--

Revision as of 13:10, 29 April 2023

English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
View
Page history
Icon-help.png
'This template uses a Testcases subpage
You can test how this page looks with it's different skins and parsers.

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
'


{{{hex}}} Controls the metanotice background and border color
| hex = #22eb17
Icon-help.png
'


{{{opacity}}} Metanotice background opacity
if {{{hex}}} is used then opacity will be from 00 to fe
| opacity = .3

| hex = ...| opacity = 3a
Icon-help.png
'

Icon-help.png
'


{{{id}}} Idbox content. Most commonly used for adding icons.
| id = [[File:Warning_icon.png|32px|link=]]
Icon-help.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
29/04/2023
20230429131050
Revision size
551 bytes
0.551 kilobytes
0.000551 megabytes
Technical information
Page identifier
52638
Contains translations
No
Uses parser functions?
No
Uses variables?
No

Template:ModernTodo