Template:Flag: Difference between revisions

From Claremont MakerSpace
m (strip some whitespace)
(Add TemplateData)
 
Line 4: Line 4:
<em> {{{reason| }}} </em>
<em> {{{reason| }}} </em>
</div>
</div>
[[Category:Flagged-{{{flag}}}]]</includeonly><noinclude>
[[Category:Flagged-{{{flag}}}]]</includeonly><noinclude><templatedata>
Template for templates for flagging things as whatever:
{
"params": {
"color": {
"label": "Color",
"description": "What color should the box be, as any valid HTML color string?",
"example": "green",
"type": "line",
"required": true
},
"flag": {
"label": "Flag",
"description": "The name of the flag",
"example": "TODO",
"type": "line",
"required": true
},
"reason": {
"label": "Reason",
"description": "Why is the page flagged this way? Intended to be passed on to child templates.",
"type": "line"
}
},
"description": "A generic template for making flags. Mostly intended for use by other templates, not directly.",
"format": "inline"
}
</templatedata>
== Examples ==
<code><nowiki>{{Flag|flag=TODO|color=green|reason=<for whatever reason>}}</nowiki></code>
{{Flag|flag=TODO|color=green|reason=<for whatever reason>}}
{{Flag|flag=TODO|color=green|reason=<for whatever reason>}}
</noinclude>
</noinclude>

Latest revision as of 07:44, 25 June 2020

A generic template for making flags. Mostly intended for use by other templates, not directly.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Colorcolor

What color should the box be, as any valid HTML color string?

Example
green
Linerequired
Flagflag

The name of the flag

Example
TODO
Linerequired
Reasonreason

Why is the page flagged this way? Intended to be passed on to child templates.

Lineoptional

Examples

{{Flag|flag=TODO|color=green|reason=<for whatever reason>}}

This section has been marked as TODO.

<for whatever reason>