Template:Flag: Difference between revisions

From Claremont MakerSpace
No edit summary
(Add TemplateData)
 
(5 intermediate revisions by 2 users not shown)
Line 2: Line 2:
This section has been marked as [[:Category:Flagged-{{{flag}}}|{{{flag}}}]].
This section has been marked as [[:Category:Flagged-{{{flag}}}|{{{flag}}}]].


''{{{reason| }}}''
<em> {{{reason| }}} </em>
</div>
</div>
[[Category:Flagged-{{{flag}}}]]</includeonly>
[[Category:Flagged-{{{flag}}}]]</includeonly><noinclude><templatedata>
 
{
<noinclude>
"params": {
Template for templates for flagging things as whatever:
"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>