Template:In category: Difference between revisions
imported>Ais523 (allow overriding the "and" to an "or", for templates that categorise into one of two categories rather than both at once) |
Richardpruen (talk | contribs) m (1 revision imported: NASA licence) |
||
Line 1: | Line 1: | ||
{{ | <div class="mw-content-{{dir|{{{lang|{{int:Lang}}}}}}}"> | ||
-->{{cl|{{{1}}}}}{{#if:{{{2|}}}|{{#if:{{{3|}}}|, |  | :{{LangSwitch | ||
-->{{cl|{{{2}}}}}}}{{#if:{{{3|}}}|{{#if:{{{4|}}}|, |  | |lang={{#if:{{{lang|}}}|{{{lang}}}|{{int:Lang}}}} | ||
-->{{cl|{{{3}}}}}}}{{#if:{{{4|}}}|{{#if:{{{5|}}}|, |  | |ar=يُضيف هذا القالب الصَّفحات الَّتي يُوضَع فيها إِلى | ||
-->{{cl|{{{4}}}}}}}{{#if:{{{5|}}}|  | |be-tarask=Гэты шаблён зьмяшчае ў катэгоры{{#if:{{{2|}}}|і|ю}} | ||
|cs=Tato šablona kategorizuje do | |||
|de=Diese Vorlage kategorisiert in | |||
|en=This template will categorize into | |||
|es=Esta plantilla se categorizará en | |||
|et=See mall lisab faili kategooriasse | |||
|fa=این الگو در این رده قرار خواهد گرفت: | |||
|fi=Tämän mallineen käyttö sijoittaa sivun tai tiedoston luokkaan | |||
|fr=Ce modèle catégorise dans | |||
|gl=Este modelo ha categorizar en | |||
|hu=Ez a sablon ide kategorizál: | |||
|hr=Ovaj predložak dodaje sadržaj u kategoriju: | |||
|it=Questo template categorizza in | |||
|ja=このテンプレートは貼られたページを次のカテゴリに追加します: | |||
|mk=Овој шаблон заведува во категори{{#if:{{{2|}}}|јата|ите}} | |||
|ml=ഈ ഫലകം ഇനിക്കൊടുക്കുന്ന വർഗ്ഗത്തിലേയ്ക്ക് വർഗ്ഗീകരിക്കും: | |||
|nds=Disse Vörlaag sett de Kategorie | |||
|ko=이 틀이 달린 문서는 다음 분류로 분류합니다: | |||
|pl=Ten szablon automatycznie kategoryzuje do | |||
|pt=Esta predefinição coloca a página {{#if:{{{2|}}}|nas categorias|na categoria}} | |||
|ru=Этот шаблон помещает в категори{{#if:{{{2|}}}|и|ю}}: | |||
|sl=Ta predloga bo stran samodejno dodala v kategorijo: | |||
|sr=Овај шаблон ће додати садржај у категориј{{#if:{{{2|}}}|е|у}} | |||
|sv=Denna mall kommer att kategoriseras i | |||
|tr=Bu şablonun dosyaya ekleyeceği kategori; | |||
|uk=Цей шаблон додає в категорі{{#if:{{{2|}}}|ї|ю}} | |||
|vi=Bản mẫu này sẽ xếp trang vào | |||
|zh-hans=该模板将归类至 | |||
|zh-hant=該模板將歸類至 | |||
}} <!-- | |||
-->{{cl|{{{1}}}}}{{#if:{{{2|}}}|{{#if:{{{3|}}}|, | {{int:and}} }}<!-- | |||
-->{{cl|{{{2}}}}}}}{{#if:{{{3|}}}|{{#if:{{{4|}}}|, | {{int:and}} }}<!-- | |||
-->{{cl|{{{3}}}}}}}{{#if:{{{4|}}}|{{#if:{{{5|}}}|, | {{int:and}} }}<!-- | |||
-->{{cl|{{{4}}}}}}}{{#if:{{{5|}}}| {{int:and}} {{cl|{{{5}}}}}}}<!-- | |||
-->{{LangSwitch | |||
|lang={{#if:{{{lang|}}}|{{{lang}}}|{{int:Lang}}}} | |||
|ja=  | |||
|default=.}} | |||
</div><noinclude> | |||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 15:08, 28 October 2022
- This template will categorize into [[:Category:{{{1}}}|Category:{{{1}}}]].
The {{In category}} template is designed for use on the documentation subpages of templates. It produces a hatnote that specifies into which category the documented template is categorised.
Basic usage is along the lines of {{In category|Candidates for speedy deletion}}, which produces the following message:
- This template will categorize into Category:Candidates for speedy deletion.
It is possible to specify more than one category, e.g. {{In category|Candidates for speedy deletion|Candidates for speedy deletion by user}} produces:
- This template will categorize into Category:Candidates for speedy deletion and Category:Candidates for speedy deletion by user.
Up to five categories are supported.
To override the "and" with another conjunction, use the |and=
parameter.
For example, {{In category|Candidates for speedy deletion|Candidates for speedy deletion by user}} would produce:
- This template will categorize into Category:Candidates for speedy deletion and Category:Candidates for speedy deletion by user.
Produces a note about which categories a template will categorize the pages it's applied to into.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Category 1 | 1 | The first category into which the documented template categorises | Unknown | required |
Category 2 | 2 | The second category into which the documented template categorises | Unknown | optional |
Category 3 | 3 | The third category into which the documented template categorises | Unknown | optional |
Category 4 | 4 | The fourth category into which the documented template categorises | Unknown | optional |
Category 5 | 5 | The fifth category into which the documented template categorises | Unknown | optional |
Override for "and" | and | A word to use instead of "and" when writing the lists of categories that the documented template categorises into. Only used if at least two templates are listed.
| Content | optional |