Difference between revisions of "Template:Template shortcut"

From DMARC Wiki
Jump to navigation Jump to search
(avoid Template:Fullurl:Template: showing up in lists of transcluded templates if {{{2}}} and/or {{{3}}} are empty)
(simpler code)
Line 2: Line 2:
 
<th id="shortcut" class="noprint" align="center" valign="top"><small>Template shortcut:<!--
 
<th id="shortcut" class="noprint" align="center" valign="top"><small>Template shortcut:<!--
 
--><br />&#123;&#123;{{{pre|}}}[{{fullurl:Template:{{{1|{{PAGENAME}}}}}|redirect=no}} {{{1|{{PAGENAME}}}}}]&#125;&#125;<!--
 
--><br />&#123;&#123;{{{pre|}}}[{{fullurl:Template:{{{1|{{PAGENAME}}}}}|redirect=no}} {{{1|{{PAGENAME}}}}}]&#125;&#125;<!--
-->{{#if:{{{2|}}}|<br />&#123;&#123;{{{pre|}}}[{{fullurl:Template:{{#if:{{{2}}}|{{{2}}}|{{{dummy}}}}}|redirect=no}} {{{2}}}]&#125;&#125;}}<!--
+
-->{{#if:{{{2|}}}|<br />&#123;&#123;{{{pre|}}}[{{fullurl:Template:{{#if:{{{2}}}|{{{2}}}|[]}}|redirect=no}} {{{2}}}]&#125;&#125;}}<!--
-->{{#if:{{{3|}}}|<br />&#123;&#123;{{{pre|}}}[{{fullurl:Template:{{#if:{{{3}}}|{{{3}}}|{{{dummy}}}}}|redirect=no}} {{{3}}}]&#125;&#125;}}
+
-->{{#if:{{{3|}}}|<br />&#123;&#123;{{{pre|}}}[{{fullurl:Template:{{#if:{{{3}}}|{{{3}}}|[]}}|redirect=no}} {{{3}}}]&#125;&#125;}}
 
</small></th>
 
</small></th>
 
</table><noinclude>{{clear}}{{template doc}}</noinclude>
 
</table><noinclude>{{clear}}{{template doc}}</noinclude>

Revision as of 08:12, 5 April 2007