Difference between revisions of "Template:Tl"

From ChoralWiki
Jump to navigation Jump to search
(new, from wikipedia)
 
m (customizing)
Line 1: Line 1:
<includeonly><tt>&#123;&#123;{{#if:{{{subst|}}}|[[Help:Substitution|subst]]:}}[[{{{LANG|}}}{{{SISTER|}}}{{ns:Template}}:{{{1|}}}|{{{1|}}}]]<!--
+
<includeonly><tt>&#123;&#123;{{#if:{{{subst|}}}|[[w:Help:Substitution|subst]]:}}[[Template:{{{1|}}}|{{{1|}}}]]<!--
-->{{#if:{{{2|}}}|
+
-->{{#if:{{{2|}}}|&#124;{{{2}}}}}<!--
&#124;{{{2}}}
+
-->{{#if:{{{3|}}}|&#124;{{{3}}}}}<!--
}}{{#if:{{{3|}}}|
+
-->{{#if:{{{4|}}}|&#124;{{{4}}}}}<!--
&#124;{{{3}}}
+
-->{{#if:{{{5|}}}|&#124;{{{5}}}}}<!--
}}{{#if:{{{4|}}}|
+
-->{{#if:{{{6|}}}|&#124;{{{6}}}}}<!--
&#124;{{{4}}}
+
-->{{#if:{{{7|}}}|&#124;{{{7}}}}}&#125;&#125;</tt></includeonly><noinclude>
}}{{#if:{{{5|}}}|
+
'''T'''emplate '''l'''ink displays a formatted link to a template:
&#124;{{{5}}}
 
}}{{#if:{{{6|}}}|
 
&#124;{{{6}}}
 
}}{{#if:{{{7|}}}|
 
&#124;{{{7}}}
 
}}&#125;&#125;</tt></includeonly><noinclude>
 
;Displays a formatted link to a template:
 
  
 
{{tl|tl|CiteTemp|param}} shows {{tl|CiteTemp|param}}
 
{{tl|tl|CiteTemp|param}} shows {{tl|CiteTemp|param}}
 +
 +
A parameter '''subst''' can be added:
 +
 +
{{tl|tl|Delreq|<nowiki>subst=y</nowiki>}} shows {{tl|Delreq|subst=y}}
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Revision as of 01:54, 27 August 2012

Template link displays a formatted link to a template:

{{tl|CiteTemp|param}} shows {{CiteTemp|param}}

A parameter subst can be added:

{{tl|Delreq|subst=y}} shows {{subst:Delreq}}