imported>Oetterer K (Schützte „Vorlage:C“: Automatic protection of selected project pages ([Bearbeiten=Nur Administratoren erlauben] (unbeschränkt) [Verschieben=Nur Administratoren erlauben] (unbeschränkt))) |
|||
(2 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
− | {{#ifeq:{{{1|}}}|icon |[[File:Folder Hexagonal Icon | + | {{#ifeq:{{{1|}}}|icon |[[File:{{Image mapper|Folder Hexagonal Icon}}|16x16px|link=]] [[:Category:{{{2}}}|{{{3|{{{2}}}}}}]] |[[:Category:{{{1}}}|{{{2|{{{1}}}}}}]]}}<noinclude>{{Documentation}}</noinclude> |
Aktuelle Version vom 7. Oktober 2022, 16:55 Uhr
[[:Category:{{{1}}}|{{{1}}}]]
{{c |category name}}
{{c |category name |link text}}
{{c|icon |category name}}
{{c|icon |category name |link text}}
Usage[Quelltext bearbeiten]
Use {{c}} to create a namespace-free link to a category, i.e. Content rather than Category:Content:
To specify the text used for the link (e.g. "Content category" in place of "Content") add it as the next parameter:
{{c|Content|Content category}}
produces: Content category
To prefix the link with the category icon (e.g. as seen in templates), set the first parameter as |icon
:
{{c|icon|Content}}
produces: Content{{c|icon|Content|Content category}}
produces: Content category
See also[Quelltext bearbeiten]
- {{cl}}, which produces the second type of link shown in the Usage section (Category:Content, i.e. including the namespace prefix).