Template
Meta notice
From Dogcraft Wiki
(Created page with "<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; tex...") |
m (Added categories: Interface templates) |
||
(6 intermediate revisions by the same user not shown) | |||
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%;">''{{{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 {{tt|Notice}} or one of it's children. | |||
See [[:Category:Notice templates]] for other templates based on this one. | |||
===Example(s)=== | |||
<pre style="white-space:pre-line;">{{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 | |||
}} | |||
===List of meta notices=== | |||
<DynamicPageList> | |||
category = Meta notice templates | |||
namespace = template | |||
</DynamicPageList> | |||
===Template data=== | |||
<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" | |||
], | |||
"description": "A template for creating other meta notice templates. (Eg.: Stub, WIP, Old, Delete)" | |||
} | |||
</templatedata> [[Category:Notice templates]] [[Category:Meta notice templates]] {{Interface template}} | |||
__NOTOC__ | |||
</noinclude> |
Latest revision as of 11:06, 4 December 2023
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:
List of meta notices
- Template:UpdateNeeded
- Template:OutOfDate
- Template:Unavailable
- Template:Expansion
- Template:Meta notice
- Template:NeedsImages
- Template:Delete
- Template:WIP
- Template:Old
- Template:Stub
Template data
A template for creating other meta notice templates. (Eg.: Stub, WIP, Old, Delete)
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 |