Template:CiteTemp: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
No edit summary
(final form of template, with documentation)
Line 8: Line 8:
'''Usage:'''
'''Usage:'''
<pre>{{CiteTemp|<template name>}}</pre>
<pre>{{CiteTemp|<template name>}}</pre>
as in {{CiteTemp|Language}}, or  
as in {{CiteTemp|Language}}, obtained by typing
<pre>{{CiteTemp|Language}}</pre>
or  
<pre>{{CiteTemp|<template name>|<alternate text>}}</pre>
<pre>{{CiteTemp|<template name>|<alternate text>}}</pre>
as in {{CiteTemp|Language|language template}}.
as in {{CiteTemp|Language|Language template}}, obtained by typing
<pre>{{CiteTemp|Language|Language template}}</pre>


To have the link enclosed in curly braces <tt><nowiki>{{ ... }}</nowiki></tt>, add the optional parameter <nowiki>br=</nowiki>, as in {{CiteTemp|Language|Language template|br=}}
To have the link enclosed in curly braces <tt><nowiki>{{ ... }}</nowiki></tt>, add the optional parameter <nowiki>br=</nowiki>, as in {{CiteTemp|Language|Language template|br=}}, obtained by typing
<pre>{{CiteTemp|Language|Language template|br=}}</pre>
}}
}}
</noinclude>
</noinclude>

Revision as of 16:54, 11 November 2008

[[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=}}