Template:Metanotice: Difference between revisions

From Open Fortress Wiki
Jump to navigation Jump to search
(Created page with "{{Doc}}<includeonly><onlyinclude><div style="align-items:center; display:flex; box-sizing: border-box; gap:1em; font-size: 12px; background: linear-gradient(90deg, rgb({{{rgb|207, 207, 207}}},{{{opacity|.1}}}) 0%, transparent 100%); border-left: 2px solid rgb({{{rgb|207, 207, 207}}}); padding-left: 1em; padding-block:.2em; margin-block:6px; {{{style|}}}"> {{#ifeq:{{{id|}}}{{{image|}}}|none|| <div style="user-select:none;">{{{id|{{{image|{{{3|32px}}...")
 
No edit summary
 
Line 1: Line 1:
{{Doc}}<includeonly><onlyinclude><div style="align-items:center; display:flex; box-sizing: border-box; gap:1em; font-size: 12px; background: linear-gradient(90deg, rgb({{{rgb|207, 207, 207}}},{{{opacity|.1}}}) 0%, transparent 100%); border-left: 2px solid rgb({{{rgb|207, 207, 207}}}); padding-left: 1em; padding-block:.2em; margin-block:6px; {{{style|}}}">
{{Doc}}
<includeonly><onlyinclude><div style="align-items:center; display:flex; box-sizing: border-box; gap:1em; font-size: 12px; background: linear-gradient(90deg, rgb({{{rgb|207, 207, 207}}},{{{opacity|.1}}}) 0%, transparent 100%); border-left: 2px solid rgb({{{rgb|207, 207, 207}}}); padding-left: 1em; padding-block:.2em; margin-block:6px; {{{style|}}}">
{{#ifeq:{{{id|}}}{{{image|}}}|none||
{{#ifeq:{{{id|}}}{{{image|}}}|none||
<div style="user-select:none;">{{{id|{{{image|{{{3|[[File:Icon-help.png|32px]]}}}}}}}}}</div>}}
<div style="user-select:none;">{{{id|{{{image|{{{3|[[File:Icon-help.png|32px]]}}}}}}}}}</div>}}
<div style="flex:1; {{{textstyle}}}">{{{text|}}}</div></div></onlyinclude></includeonly>[[Category:Templates]][[Category:Notice templates]][[Category:Metatemplates]]
<div style="flex:1; {{{textstyle}}}">{{{text|}}}</div></div></onlyinclude></includeonly>[[Category:Templates]][[Category:Notice templates]][[Category:Metatemplates]]

Latest revision as of 03:14, 4 January 2025

Template Documentation [edit]

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}}
{{{rgb}}} Controls the metanotice background and border color
| rgb = 235, 185, 23
{{{opacity}}} Metanotice background opacity
| opacity = .3
{{{id}}} Idbox content. Most commonly used for adding icons.
| id = [[File:Warning_icon.png|32px|link=]]
{{{text}}} Text content
| text = Hello, World!
Hello, World!
Style parameters
{{{style}}} Notice styling
| style = border:1px solid currentcolor;
{{{textstyle}}} Text styling
| textstyle = font-family:monospace;
Example text
Template:Metanotice
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
N/A
Preload
N/A
Sandbox
N/A
Strings
N/A
Testcases
N/A
Other
N/A
Revision information
Latest editor
Kate
Last edited
04/01/2025
20250104031428
Revision size
657 bytes
0.657 kilobytes
0.000657 megabytes
Technical information
Page identifier
108
Contains translations
No
Uses parser functions?
No
Uses variables?
No