Template:CiteTemp: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(final form of template, with documentation)
m (Text replace - "{{PAGENAME}}" to "Category:Templates")
 
Line 1: Line 1:
{{#switch: {{{br}}} |=<tt><nowiki>{{</nowiki></tt>|}}[[Template:{{{1}}}|{{{2|{{{1}}}}}}]]{{#switch: {{{br}}} |=<tt><nowiki>}}</nowiki></tt>|}}<noinclude>[[Category:Templates|{{PAGENAME}}]]
{{#switch: {{{br}}} |=<tt><nowiki>{{</nowiki></tt>|}}[[Template:{{{1}}}|{{{2|{{{1}}}}}}]]{{#switch: {{{br}}} |=<tt><nowiki>}}</nowiki></tt>|}}<noinclude>[[Category:Templates]]


{{prot-temp}}
{{prot-temp}}

Latest revision as of 06:44, 1 June 2015

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


This template is used to cite a template, ie. to provide a link to a template without having to type something like {{[[Template:Long template name|Long template name]]}}.

Usage:

{{CiteTemp|<template name>}}

as in Language, obtained by typing

{{CiteTemp|Language}}

or

{{CiteTemp|<template name>|<alternate text>}}

as in Language template, obtained by typing

{{CiteTemp|Language|Language template}}

To have the link enclosed in curly braces {{ ... }}, add the optional parameter br=, as in {{Language template}}, obtained by typing

{{CiteTemp|Language|Language template|br=}}