Badge time.png   The Paragon Wiki Archive documents the state of City of Heroes/Villains as it existed on December 1, 2012.

Difference between revisions of "Template:Tl"

From Paragon Wiki Archive
Jump to: navigation, search
(putting in Category:Templates for now, to help people find it)
m (copyedit of documentation; explaining how to use the equal sign)
Line 1: Line 1:
 
{{[[Template:{{{1}}}|{{{1}}}]]{{#if:{{{2|}}}|{{!}}{{{2}}} }}{{#if:{{{3|}}}|{{!}}{{{3}}} }}{{#if:{{{4|}}}|{{!}}{{{4}}} }}{{#if:{{{5|}}}|{{!}}{{{5}}} }}{{#if:{{{6|}}}|{{!}}{{{6}}} }}{{#if:{{{7|}}}|{{!}}{{{7}}} }}{{#if:{{{8|}}}|{{!}}{{{8}}} }}{{#if:{{{9|}}}|{{!}}{{{9}}} }}}}<noinclude>
 
{{[[Template:{{{1}}}|{{{1}}}]]{{#if:{{{2|}}}|{{!}}{{{2}}} }}{{#if:{{{3|}}}|{{!}}{{{3}}} }}{{#if:{{{4|}}}|{{!}}{{{4}}} }}{{#if:{{{5|}}}|{{!}}{{{5}}} }}{{#if:{{{6|}}}|{{!}}{{{6}}} }}{{#if:{{{7|}}}|{{!}}{{{7}}} }}{{#if:{{{8|}}}|{{!}}{{{8}}} }}{{#if:{{{9|}}}|{{!}}{{{9}}} }}}}<noinclude>
 +
<!--
 +
The #if statements are used to prevent the extra pipe "|" from displaying if the parameter is not specified.
 +
-->
 
==Purpose==
 
==Purpose==
  
 
<nowiki>{{Tl}}</nowiki> is used to display a template name as a link. '''Tl''' stands for '''Template link'''.
 
<nowiki>{{Tl}}</nowiki> is used to display a template name as a link. '''Tl''' stands for '''Template link'''.
  
Tl can currently handle 8 additional parameters that are simply displayed as shown. There are limits, you can't display and equals sign "=" normally because templates interpret equals signs as thingys that say it's a particular parameter rather than the first or second or third parameter.
+
Tl can currently handle 8 additional parameters that are simply displayed as given.
 +
 
 +
Note that equal signs ("=") cannot be included directly because templates use equal signs to delimit named parameters. Replace any equal signs with their HTML entity representation: &amp;#61;
  
===note===
 
The use of #if statements is the need for the extra pipe "|" displayed if the parameter is specified, otherwise it displays nothing.
 
 
 
== Usage ==
 
== Usage ==
 
<pre>
 
<pre>

Revision as of 10:24, 17 May 2007

{{[[Template:{{{1}}}|{{{1}}}]]}}

Purpose

{{Tl}} is used to display a template name as a link. Tl stands for Template link.

Tl can currently handle 8 additional parameters that are simply displayed as given.

Note that equal signs ("=") cannot be included directly because templates use equal signs to delimit named parameters. Replace any equal signs with their HTML entity representation: &#61;

Usage

{{subst:Tl|template name to display}}
{{tl|template name to display}}

Example

Code Result
{{subst:Tl|Center}} {{Center}}
{{tl|Userbox Server|Heroes|Freedom}} {{Userbox Server|Heroes|Freedom}}