Template
Meta notice
From Dogcraft Wiki
m (proper documentation + templatedata) |
m (Added categories: Interface templates) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
==Meta notice template== | ==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 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 | 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. | See [[:Category:Notice templates]] for other templates based on this one. | ||
===Example(s)=== | ===Example(s)=== | ||
<pre>{{meta notice | <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! | |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 | |name=Stub | ||
Line 16: | Line 16: | ||
}} | }} | ||
< | |||
===List of meta notices=== | |||
<DynamicPageList> | |||
category = Meta notice templates | |||
namespace = template | |||
</DynamicPageList> | |||
===Template data=== | |||
<templatedata> | <templatedata> | ||
{ | { | ||
Line 63: | Line 71: | ||
"border", | "border", | ||
"style" | "style" | ||
] | ], | ||
"description": "A template for creating other meta notice templates. (Eg.: Stub, WIP, Old, Delete)" | |||
} | } | ||
</templatedata> | </templatedata> [[Category:Notice templates]] [[Category:Meta notice templates]] {{Interface template}} | ||
__NOTOC__ | |||
</noinclude> | </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 |