Template:Done/doc: Difference between revisions

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| 77217 }}
{{#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 {{tl|done}} by itself for the default message or you may customize with optional parameters.
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"
!Template !! Result
! Parameters !! Code example !! Result
|-
|-
|{{tlx|done}} || {{done}}
| none || {{tlx|done}} || {{done}}
|-
|-
|{{in5}}The first unnamed parameter a.k.a. {{para|1}} parameter:<br />{{tlx|done|Custom message}} || {{done|Custom message}}
| 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|Custom message with link]]</nowiki>}} || {{done|1=[[Wikipedia:Templates for discussion|Custom message with link]]}}
| 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]]}}
|-
|-
|{{in5}}The {{para|reason}} a.k.a. {{para|note}} or {{para|2}} parameter:<br />{{tlx|done|reason{{=}}Implemented with wording favored by comments on original request.}} || {{done|reason=Implemented with wording favored by comments on original request.}}
| 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.}}
|-
|-
|{{in5}}The {{para|reason}} (etc.) parameter paired with a custom message:<br />{{tlx|done|Custom message|reason{{=}}Implemented with wording favored by comments on original request.}} || {{done|Custom message|reason=Implemented with wording favored by comments on original request.}}
| 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": "custom message",
"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."
},
},
         "reason": {
         "2": {
             "label": "Reason",
             "label": "Reason",
             "aliases": [ "note" ],
             "aliases": [ "reason", "note" ],
"type": "content",
"type": "content",
             "description": "Text to follow the text \"Done\""
             "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>