Template:Tln: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Caesar Schinas
m (broke spacing)
imported>Caesar Schinas
(Don't link to self)
Line 1: Line 1:
<includeonly>{{#ifexist:Template:{{{1}}}
<includeonly>{{#ifexist:Template:{{{1}}}
|[[Template:{{{1}}}|{{{1}}}]]
|[[Template:{{{1}}}|{{{1}}}]]
|<span class="plainlinks">[{{fullurl:Template:{{{1}}}|action=edit&preload=Template:New/preload&editintro=Template:New/editintro}} <span style="color:#810541;">{{{1}}}</span>]</span>
|{{#ifeq:{{{1}}}|{{PAGENAME}}
|<nowiki>{{</nowiki>'''{{{1}}}'''<nowiki>}}</nowiki>
|<span class="plainlinks">[{{fullurl:Template:{{{1}}}|action=edit&preload=Template:New/preload&editintro=Template:New/editintro}} <span style="color:#810541;">{{{1}}}</span>]</span>
}}
}}</includeonly><noinclude>{{TlDoc}}</noinclude>
}}</includeonly><noinclude>{{TlDoc}}</noinclude>

Revision as of 02:23, 9 May 2009

This documentation is transcluded from Template:Tln/doc (edit | history)

Usage

{{Tln}} is used to reference templates in lists, etc. Use of it generates a link to the template. For a version with brackets, see {{Tl}}.

Example

{{Tln|Infobox}} Infobox Using {{Tln}} with an existing template creates a link to it.
{{Tln|Tln}} Tln Using {{Tln}} on the template with the same name just shows the name.
{{Tln|Nonexistanttemplate}} Nonexistanttemplate Using {{Tln}} with a non-existing template name creates a red link with the template preload and editintro.