Template:Disputed: Difference between revisions

mNo edit summary
m Removed behavior of the text "disputed" linking to the template page. Also removed note about recursive linking logic, as it was no longer needed with this change.
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><sup>''[<span class="plainlinks"><span class="editorial-notation-tooltip">[[Template:Disputed<!--
<includeonly><sup>''[<span class="plainlinks"><span class="editorial-notation-tooltip"><!--
   -->|<span title="{{#if:{{{reason|}}}<!--
   --><span style="color:#4164c4;" title="{{#if:{{{reason|}}}<!--
     -->|{{{reason}}}<!--
     -->|{{{reason}}}<!--
     -->|This statement is disputed.}} {{#if:{{{date|}}}| ({{{date}}})<!--
     -->|This statement is disputed.}} {{#if:{{{date|}}}| ({{{date}}})<!--
   -->}}">disputed</span>]]</span></span>]''</sup><!--
   -->}}">disputed</span></span></span>]''</sup><!--
-->{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category: Articles with Disputed Content]]}}</includeonly><noinclude>
-->{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category: Articles with Disputed Content]]}}</includeonly><noinclude>
== Description ==
== Description ==
Line 11: Line 11:


==Usage==
==Usage==
:'''Note:''' When used on article pages, this template will render as follows ( <sup>''[<span class="plainlinks">[[:Template:Disputed#Description|disputed]]</span>]''</sup> ) It does not render correctly on this page due to [[:Help:Markup#Internal_Links|recursive linking logic]].
{| style="width: 100%; text-align: left; margin: auto;" class="wikitable"
{| style="width: 100%; text-align: left; margin: auto;" class="wikitable"
|-  
|-  
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Tag Only</span><br><span style="font-weight: normal;">When just <code><nowiki>{{disputed}}</nowiki></code> is passed, it will add a superscript note that says "''[disputed]''".<br>When you hover over it for a moment, a pop-up message will appear that says "This statement is disputed.".</span>
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Tag Only</span><br><div style="text-align: left;"><span style="font-weight: normal;">When just <code><nowiki>{{disputed}}</nowiki></code> is passed, it will add a superscript note that says "''[disputed]'' ". When you hover over it for a moment, a pop-up message will appear that says "This statement is disputed.".</span></div>
|-
|-
! width=60%|You Type
! width=60%|You Type
!You Get
!You Get
|- style="text-align: center; background-color: white;"
|- style="text-align: center;"
| <pre>An example sentence.{{disputed}}</pre>
| <pre>An example sentence.{{disputed}}</pre>
| An example sentence.{{disputed}}
| An example sentence.{{disputed}}
|-
|-
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Reason Parameter</span><br><span style="font-weight: normal;">When <code>reason=</code> is passed, it will replace the text "This statement is disputed." in the pop-up message with your input.</span>
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Reason Parameter</span><br><div style="text-align: left;"><span style="font-weight: normal;">When <code>reason=</code> is passed, it will replace the text "This statement is disputed." in the pop-up message with your input.</span></div>
|-
|-
! width=60%|You Type
! width=60%|You Type
!You Get
!You Get
|- style="text-align: center; background-color: white;"
|- style="text-align: center;"
|<pre>An example sentence.{{disputed|reason=Explanation of reason.}}</pre>
|<pre>An example sentence.{{disputed|reason=Explanation of reason.}}</pre>
|An example sentence.{{disputed|reason=Explanation of reason.}}
|An example sentence.{{disputed|reason=Explanation of reason.}}
|-
|-
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Date Parameter</span><br><span style="font-weight: normal;">When <code>date=</code> is passed, it will add your input to the end of the pop-up message in parentheses.<br>The pop-up message "This statement is disputed." will still appear unless <code>reason=</code> is also passed.</span>
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Date Parameter</span><br><div style="text-align: left;"><span style="font-weight: normal;">When <code>date=</code> is passed, it will add your input to the end of the pop-up message in parentheses. The pop-up message "This statement is disputed." will still appear unless <code>reason=</code> is also passed.</span></div>
|-
|-
! width=60%|You Type
! width=60%|You Type
!You Get
!You Get
|- style="text-align: center; background-color: white;"
|- style="text-align: center;"
|<pre>An example sentence.{{disputed|date=March 1883}}</pre>
|<pre>An example sentence.{{disputed|date=March 1883}}</pre>
|An example sentence.{{disputed|date=March 1883}}
|An example sentence.{{disputed|date=March 1883}}