Mall:CiteCat

Från Psalmer och Andliga Sånger
Version från den 7 juli 2024 kl. 14.29 av Haeffner (diskussion | bidrag) (Skapade sidan med '[[:Category:{{{1}}}|{{{2|{{{1}}}}}}]]<noinclude>Category:Templates</noinclude><noinclude><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"> <center><big>'''Documentation'''</big></center> 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 categor...')
(skillnad) ← Äldre version | Nuvarande version (skillnad) | Nyare version → (skillnad)
Hoppa till navigering Hoppa till sök

[[:Category:{{{1}}}|{{{1}}}]]
Mall:Prot-temp

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