Clarify – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Whoops!)
(Template refresh)
Line 1: Line 1:
<includeonly><sup style="font-size:75%;">[[:Category:Clarification needed|Clarify]][[Category:Clarification needed|{{uc:{{PAGENAME}}}}]]</sup></includeonly><noinclude>
<includeonly>{{#if:{{{1|}}}|<span style="border-bottom: 0.0625em dotted grey; cursor: help" title{{=}}"This statement needs clarification.{{#if:{{{2||}}}|<nowiki/> Reason: {{{2}}}}}">{{{1}}}</span>|}}<sup style="font-size:75%">[[:Category:Clarification needed|Clarify]]</sup>{{#ifeq:{{uc:{{PAGENAME}}}}|CLARIFY||[[Category:Clarification needed|{{uc:{{PAGENAME}}}}]]}}</includeonly><noinclude>
This template will add a small superior note that links to the [[:Category:Clarification needed|Clarification needed]] category, whilst simultaneously adding the page to that category.


===Usage===
== Usage ==
{{<nowiki/>Clarify|'''''statement'''''|'''''reason'''''}}
* statement: (Optional) the statement to clarify
* reason: (Optional) reason for needed clarification


{{Inline code|<nowiki>{{Clarify}}</nowiki>}} placed immediately after an ambiguous or confusing statement, will add a small but superior note{{Clarify}} at that point in the text, that links to [[:Category:Clarification needed]], whilst simultaneously adding the page to that Category.
<!-- Template itself can be used thanks to an exclusion for this page -->
 
{|class="wikitable"
Removal of the Template after clarification of the statement, will thus remove the page (assuming this template is not used elsewhere on the same page) from the Category.
|+ Examples
! Code
! Result
|-
| <nowiki>unclear statement{{Clarify}}</nowiki>
| unclear statement{{Clarify}}
|-
| <nowiki>{{Clarify|unclear statement}}</nowiki>
| {{Clarify|unclear statement}}
|-
| <nowiki>unclear statement{{Clarify||This statement is unclear!}}</nowiki>
| unclear statement{{Clarify||This statement is unclear!}}
|-
| <nowiki>{{Clarify|unclear statement|This statement is unclear!}}</nowiki>
| {{Clarify|unclear statement|This statement is unclear!}}
|}


[[Category:Templates|{{uc:{{PAGENAME}}}}]]
[[Category:Templates|{{uc:{{PAGENAME}}}}]]
</noinclude>
</noinclude>

Revision as of 21:27, 19 November 2019

This template will add a small superior note that links to the Clarification needed category, whilst simultaneously adding the page to that category.

Usage

{{Clarify|statement|reason}}

  • statement: (Optional) the statement to clarify
  • reason: (Optional) reason for needed clarification
Examples
Code Result
unclear statement{{Clarify}} unclear statementClarify
{{Clarify|unclear statement}} unclear statementClarify
unclear statement{{Clarify||This statement is unclear!}} unclear statementClarify
{{Clarify|unclear statement|This statement is unclear!}} unclear statementClarify