Template:Flag: Difference between revisions
From Claremont MakerSpace
(Add TemplateData) |
|||
(3 intermediate revisions by the same user 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}}}]]. | ||
<em> {{{reason| }}} </em> | |||
</div> | </div> | ||
[[Category:Flagged-{{{flag}}}]]</includeonly> | [[Category:Flagged-{{{flag}}}]]</includeonly><noinclude><templatedata> | ||
{ | |||
<noinclude> | "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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Color | color | What color should the box be, as any valid HTML color string?
| Line | required |
Flag | flag | The name of the flag
| Line | required |
Reason | reason | Why is the page flagged this way? Intended to be passed on to child templates. | Line | optional |
Examples
{{Flag|flag=TODO|color=green|reason=<for whatever reason>}}
This section has been marked as TODO.
<for whatever reason>