Template:Expand: Difference between revisions

mNo edit summary
m Removed behavior of the text "expand" 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:Expand<!--
<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 needs to be expanded with more information.}} {{#if:{{{date|}}}| ({{{date}}})<!--
     -->|This statement needs to be expanded with more information.}} {{#if:{{{date|}}}| ({{{date}}})<!--
   -->}}">expand</span>]]</span></span>]''</sup><!--
   -->}}">expand</span></span></span>]''</sup><!--
-->{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category: AArticles Missing Information]]}}</includeonly><noinclude>
-->{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category: Articles Missing Information]]}}</includeonly><noinclude>
== Description ==
== Description ==
This template should be added after statements or paragraphs in articles that need to expanded with more information. Using the template automatically adds the article to [[:Category: Articles Missing Information]].  
This template should be added after statements or paragraphs in articles that need to expanded with more information. Using the template automatically adds the article to [[:Category: Articles Missing Information]].  
Line 11: Line 11:


==Usage==
==Usage==
:'''Note:''' When used on article pages, this template will render as follows ( <sup>''[<span class="plainlinks">[[:Template:expand#Description|expand]]</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><div style="text-align: left;"><span style="font-weight: normal;">When just <code><nowiki>{{expand}}</nowiki></code> is passed, it will add a superscript note that says "''[expand]''". When you hover over it for a moment, a pop-up message will appear that says "This statement needs to be expanded with more information.".</span>,/div>
! 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>{{expand}}</nowiki></code> is passed, it will add a superscript note that says "''[expand]'' ". When you hover over it for a moment, a pop-up message will appear that says "This statement needs to be expanded with more information.".</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.{{expand}}</pre>
| <pre>An example sentence.{{expand}}</pre>
| An example sentence.{{expand}}
| An example sentence.{{expand}}
Line 27: Line 25:
! 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.{{expand|reason=Explanation of reason.}}</pre>
|<pre>An example sentence.{{expand|reason=Explanation of reason.}}</pre>
|An example sentence.{{expand|reason=Explanation of reason.}}
|An example sentence.{{expand|reason=Explanation of reason.}}
Line 35: Line 33:
! 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.{{expand|date=March 1883}}</pre>
|<pre>An example sentence.{{expand|date=March 1883}}</pre>
|An example sentence.{{expand|date=March 1883}}
|An example sentence.{{expand|date=March 1883}}