Template
Interface template

Meta notice

From Dogcraft Wiki

mNo edit summary
m (Added categories: Interface templates)
 
(5 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%;">''{{{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 {{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 data

A template for creating other meta notice templates. (Eg.: Stub, WIP, Old, Delete)

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


Background SRN Opening by Montenator