Template
Meta notice
From Dogcraft Wiki
mNo edit summary |
m (proper documentation + templatedata) |
||
Line 1: | Line 1: | ||
<div class="notice metadata plainlinks {{{name|{{{2|meta}}}}}}-box" id="{{{name|{{{2|meta}}}}}}" style="display:flex; justify-content:center; margin:0.2em auto 0.8em auto; text-align:center; {{{style|}}}"><div style="border:2px dashed {{{border|red}}}; padding:0.5em; width:80%;">''{{{content|{{{1|}}}}}}''</div></div> | <includeonly><div class="notice metadata plainlinks {{{name|{{{2|meta}}}}}}-box" id="{{{name|{{{2|meta}}}}}}" style="display:flex; justify-content:center; margin:0.2em auto 0.8em auto; text-align:center; {{{style|}}}"><div style="border:2px dashed {{{border|red}}}; padding:0.5em; width:80%;">''{{{content|{{{1|}}}}}}''</div></div></includeonly><noinclude> | ||
==Meta notice template== | |||
This is a template for creating a meta notice banner on pages. Useful for communicating information about the state/status of the page, eg.: it is a work-in-progress, or is very short and should be expanded. | |||
This template is meant to be used to base other templates off of and should 'not' be directly used. If you want to add a notice to a page, use [[Template:Notice|<tt><nowiki>{{Notice}}</nowiki></tt>]] or one of it's children. | |||
See [[:Category:Notice templates]] for other templates based on this one. | |||
===Example(s)=== | |||
<pre>{{meta notice | |||
|content=This article is currently just a stub. You can [https://dogcraft.net/wiki/index.php?title={{FULLPAGENAMEE}}&action=edit edit it] and add more information! | |||
|name=Stub | |||
}}</pre> generates: {{meta notice | |||
|content=This article is currently just a stub. You can [https://dogcraft.net/wiki/index.php?title={{FULLPAGENAMEE}}&action=edit edit it] and add more information! | |||
|name=stub | |||
}} | |||
<noinclude> | |||
<templatedata> | |||
{ | |||
"params": { | |||
"name": { | |||
"aliases": [ | |||
"2" | |||
], | |||
"label": "Name", | |||
"description": "The notice's name. This is required for proper sorting.", | |||
"example": "Stub", | |||
"type": "string", | |||
"required": true, | |||
"suggested": true | |||
}, | |||
"style": { | |||
"label": "Further styling", | |||
"description": "Optional parameter for setting further CSS styles.", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"border": { | |||
"label": "Border color", | |||
"description": "Optional property for setting the color of the dashed border", | |||
"example": "purple", | |||
"type": "string", | |||
"default": "red", | |||
"suggested": true | |||
}, | |||
"content": { | |||
"aliases": [ | |||
"1" | |||
], | |||
"label": "Content", | |||
"description": "The notice's content", | |||
"example": "This page is a stub. Edit to expand it.", | |||
"type": "string", | |||
"required": true, | |||
"suggested": true | |||
} | |||
}, | |||
"format": "block", | |||
"paramOrder": [ | |||
"content", | |||
"name", | |||
"border", | |||
"style" | |||
] | |||
} | |||
</templatedata> | |||
</noinclude> |
Revision as of 00:56, 12 July 2022
Meta notice template
This is a template for creating a meta notice banner on pages. Useful for communicating information about the state/status of the page, eg.: it is a work-in-progress, or is very short and should be expanded. This template is meant to be used to base other templates off of and should 'not' be directly used. If you want to add a notice to a page, use {{Notice}} or one of it's children.
See Category:Notice templates for other templates based on this one.
Example(s)
{{meta notice |content=This article is currently just a stub. You can [https://dogcraft.net/wiki/index.php?title={{FULLPAGENAMEE}}&action=edit edit it] and add more information! |name=Stub }}
generates:
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Content | content 1 | The notice's content
| String | required |
Name | name 2 | The notice's name. This is required for proper sorting.
| String | required |
Border color | border | Optional property for setting the color of the dashed border
| String | suggested |
Further styling | style | Optional parameter for setting further CSS styles. | String | suggested |