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.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Contentcontent 1

The notice's content

Example
This page is a stub. Edit to expand it.
Stringrequired
Namename 2

The notice's name. This is required for proper sorting.

Example
Stub
Stringrequired
Border colorborder

Optional property for setting the color of the dashed border

Default
red
Example
purple
Stringsuggested
Further stylingstyle

Optional parameter for setting further CSS styles.

Stringsuggested
This page was last modified on 12 July 2022, at 00:56. (6 months ago)