Difference between revisions of "Template:CiteCat"

From ChoralWiki
Jump to navigation Jump to search
(insert "Cite" before "Cat" in examples)
m (Text replace - " part choral music" to "-part choral music")
Line 25: Line 25:
  
 
For example,
 
For example,
: <tt><nowiki>{{CiteCat|12 part choral music|12 parts}}</nowiki></tt>
+
: <tt><nowiki>{{CiteCat|12-part choral music|12 parts}}</nowiki></tt>
 
results in the link being displayed as:
 
results in the link being displayed as:
  

Revision as of 15:30, 11 September 2012

[[:Category:{{{1}}}|{{{1}}}]]


Documentation

This template is similar to Template:Cat, except that it is used only to cite (ie. link) a category's name (or link with alternate text), without also categorizing the page in that category.

It has one required parameter (the target category) and an optional parameter (that provides an alternate way of displaying the link).

Syntax, with the one required paramter:

{{CiteCat|<category name>}}

which is equivalent to inserting

[[:Category:<category name>|<category name>]]

into a file, and the link is displayed as:

<category name>

Syntax, with required and optional second parameter:

{{CiteCat|<category name>|<displayed text>}}

which is equivalent to inserting

[[:Category:<category name>|<displayed text>]]

into a file and is displayed as:

<displayed text>

For example,

{{CiteCat|12-part choral music|12 parts}}

results in the link being displayed as:

12 parts