Template:Mcat

From ChoralWiki
Jump to: navigation, search

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


Documentation

This template provides a link to a category and, if used in the Main namespace, also categorizes the page in that category. It has one required parameter (the target category) and up to two optional parameters (one providing an alternate way of displaying the link, the other for providing a sort key for the categorization). Note that for linking & categorizing a voicing inside a Works page, the template {{Vcat}} should be used instead.

Syntax, with the one required parameter:

{{Mcat|<category name>}}

which is equivalent to inserting

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

into a page, and the link is displayed as:

<category name>

Syntax, with required and first optional parameters:

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

or

{{Mcat|<category name>|2=<displayed text>}}

either of which is equivalent to inserting

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

into a page, and is displayed as:

<displayed text>

For example,

{{Mcat|German texts|Texte auf Deutsch}}

results in the link being displayed as:

Texte auf Deutsch

Syntax, with required and both optional parameters (for advanced users):

{{Mcat|<category name>|<displayed text>|sort=<sort key>}}

which is equivalent to inserting

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

into a page. The category <category name> is referenced with the <sort key>, and the link displayed as:

<displayed text>