Template:Done/doc: Difference between revisions
Richardpruen (talk | contribs) m 1 revision imported |
imported>Paine Ellsworth High-use template and update /doc |
||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | ||
{{High-use| | {{#ifeq:{{#invoke:High-use|num|x|demo={{ROOTPAGENAME}}}}|many||{{High-use|demo={{ROOTPAGENAME}}}}}} | ||
This template is often used on [[Wikipedia:talk pages|talk pages]] to show clearly that a section of discussion has been resolved, so that each editor does not have to re-read the section. | This template is often used on [[Wikipedia:talk pages|talk pages]] to show clearly that a section of discussion has been resolved, so that each editor does not have to re-read the section. | ||
==Usage== | ==Usage== | ||
You may either use {{ | You may either use '''<code><nowiki>{{done}}</nowiki></code>''' by itself for the default message or you may customize with optional parameters. | ||
{| class="wikitable" | {| class="wikitable" | ||
! | ! Parameters !! Code example !! Result | ||
|- | |- | ||
|{{tlx|done}} || {{done}} | | none || {{tlx|done}} || {{done}} | ||
|- | |- | ||
| | | 1st parameter (unnamed or named <code>1</code>) for a custom message|| {{tlx|done|Implemented}} || {{done|Implemented}} | ||
|- | |- | ||
|{{tlx|done|1{{=}}<nowiki>[[Wikipedia:Templates for discussion| | | 1st parameter (unnamed or named <code>1</code>) for a linked custom message|| {{tlx|done|1{{=}}<nowiki>[[Wikipedia:Templates for discussion|Implemented]]</nowiki>}} || {{done|1=[[Wikipedia:Templates for discussion|Implemented]]}} | ||
|- | |- | ||
| | | if only 2nd parameter is needed (to give a reason), it has to be named <code>2</code> or <code>reason</code> or <code>note</code> || {{tlx|done|reason{{=}}after consensus.}} || {{done|reason=after consensus.}} | ||
|- | |- | ||
| | | if 1st and 2nd parameter are combined, both can be unnamed || {{tlx|done|Implemented|after consensus.}} || {{done|Implemented|after consensus.}} | ||
|} | |} | ||
Line 39: | Line 39: | ||
"params": { | "params": { | ||
"1": { | "1": { | ||
"label": " | "label": "Custom message", | ||
"type": "content", | "type": "content", | ||
"default": "Done", | "default": "Done", | ||
"description": "Enter an individual message to replace the default 'Done' text." | "description": "Enter an individual message to replace the default 'Done' text." | ||
}, | }, | ||
" | "2": { | ||
"label": "Reason", | "label": "Reason", | ||
"aliases": [ "note" ], | "aliases": [ "reason", "note" ], | ||
"type": "content", | "type": "content", | ||
"description": "Text to follow the text | "description": "Text to follow the text 'Done'" | ||
} | } | ||
} | } | ||
Line 62: | Line 62: | ||
[[Category:Image with comment templates]] | [[Category:Image with comment templates]] | ||
[[Category:Resolution templates]] | [[Category:Resolution templates]] | ||
}}}}</includeonly> | }}}}</includeonly> |