Template:CiteCat: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
({{prot-temp}})
m (Text replace - "{{PAGENAME}}" to "Category:Templates")
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
[[:Category:{{{1}}}|{{{2|{{{1}}}}}}]]<noinclude>[[Category:Templates|{{PAGENAME}}]]</noinclude><noinclude><br>
[[:Category:{{{1}}}|{{{2|{{{1}}}}}}]]<noinclude>[[Category:Templates]]</noinclude><noinclude><br>
{{prot-temp}}<br>
{{prot-temp}}<br>
<div><div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #3399ff; padding: 1em 1em 1em 1em; background-color:#ddffdd">
<div><div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #3399ff; padding: 1em 1em 1em 1em; background-color:#ddffdd">
Line 9: Line 9:


'''Syntax, with the one required paramter:'''
'''Syntax, with the one required paramter:'''
: <tt><nowiki>{{Cat|<category name>}}</nowiki></tt>
: <tt><nowiki>{{CiteCat|<category name>}}</nowiki></tt>
which is equivalent to inserting
which is equivalent to inserting
: <tt><nowiki>[[:Category:<category name>|<category name>]]</nowiki></tt>
: <tt><nowiki>[[:Category:<category name>|<category name>]]</nowiki></tt>
Line 17: Line 17:


'''Syntax, with required and optional second parameter:'''
'''Syntax, with required and optional second parameter:'''
: <tt><nowiki>{{Cat|<category name>|<displayed text>}}</nowiki></tt>
: <tt><nowiki>{{CiteCat|<category name>|<displayed text>}}</nowiki></tt>
which is equivalent to inserting
which is equivalent to inserting
: <tt><nowiki>[[:Category:<category name>|<displayed text>]]</nowiki></tt>
: <tt><nowiki>[[:Category:<category name>|<displayed text>]]</nowiki></tt>
Line 25: Line 25:


For example,
For example,
: <tt><nowiki>{{Cat|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:



Latest revision as of 06:43, 1 June 2015

[[: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