yoohoo! hot sauce please
10:27, 7 September 2026 (UTC)
Template:Categorytemplate: Difference between revisions
Created page with "<onlyinclude>{{Soybox |class=page-issue info |image1={{#ifeq:{{lc:{{{type|}}}}}|module|60px|alt=Lua logo|link=Lua|60px|alt=|link=}} |content=<div style="text-align:left;">{{#if:{{{1|}}}|<div><span style="color:#5457e5;font-weight:bold;">{{{1}}}</span></div>}}{{#if:{{{topic|}}}|<div>'''{{#switch:{{lc:{{{type|}}}}} |box|ambox|soybox=Box templates |header|banner=Header templates |notice=Notice templates |formatting|text=Form..." |
mNo edit summary |
||
| Line 1: | Line 1: | ||
<onlyinclude>{{ | <onlyinclude>{{Swaggbox | ||
|class=page-issue info | |class=page-issue info | ||
|image1={{#ifeq:{{lc:{{{type|}}}}}|module|[[File: | |image1={{#ifeq:{{lc:{{{type|}}}}}|module|[[File:Luaswagg.png|60px|alt=Lua logo|link=Lua]]|[[File:Curly Brackets.svg|60px|alt=|link=]]}} | ||
|content=<div style="text-align:left;">{{#if:{{{1|}}}|<div><span style="color:#5457e5;font-weight:bold;">{{{1}}}</span></div>}}{{#if:{{{topic|}}}|<div>'''{{#switch:{{lc:{{{type|}}}}} | |content=<div style="text-align:left;">{{#if:{{{1|}}}|<div><span style="color:#5457e5;font-weight:bold;">{{{1}}}</span></div>}}{{#if:{{{topic|}}}|<div>'''{{#switch:{{lc:{{{type|}}}}} | ||
|box|ambox| | |box|ambox|swaggbox=Box templates | ||
|header|banner=Header templates | |header|banner=Header templates | ||
|notice=Notice templates | |notice=Notice templates | ||
| Line 18: | Line 18: | ||
|#default={{ucfirst:{{{type|}}}}} templates | |#default={{ucfirst:{{{type|}}}}} templates | ||
}} relating to {{{topic}}}.'''</div>}}{{#if:{{{description|}}}|<div>{{{description}}}</div>}}{{#if:{{Yesno|{{{container|}}}}}|<div style="padding:0.4em 0;">'''''Please do not add {{#ifeq:{{lc:{{{type|}}}}}|module|modules|templates}} directly to this category. Use one of the subcategories instead.'''''</div>}}<div>'''The pages listed in this category are {{#switch:{{lc:{{{type|}}}}} | }} relating to {{{topic}}}.'''</div>}}{{#if:{{{description|}}}|<div>{{{description}}}</div>}}{{#if:{{Yesno|{{{container|}}}}}|<div style="padding:0.4em 0;">'''''Please do not add {{#ifeq:{{lc:{{{type|}}}}}|module|modules|templates}} directly to this category. Use one of the subcategories instead.'''''</div>}}<div>'''The pages listed in this category are {{#switch:{{lc:{{{type|}}}}} | ||
|box|ambox| | |box|ambox|swaggbox=box templates | ||
|header|banner=header templates | |header|banner=header templates | ||
|notice=notice templates | |notice=notice templates | ||
| Line 32: | Line 32: | ||
|=templates | |=templates | ||
|#default={{{type|}}} templates | |#default={{{type|}}} templates | ||
}}.'''</div>{{#if:{{{2|}}}|<div>{{{2}}}</div><hr/>}}<div>This page is part of | }}.'''</div>{{#if:{{{2|}}}|<div>{{{2}}}</div><hr/>}}<div>This page is part of 2swagg Wiki's administration and is not part of the enswaggclopedia.</div>{{#if:{{{ALTTEXT|}}}|<hr/><div>{{{ALTTEXT}}}</div><hr/>}}<div class="mw-collapsible mw-collapsed" style="font-size:90%;padding-top:0.6em;"><div style="border-bottom:1px solid #aaa;font-weight:bold;">Further {{#ifeq:{{lc:{{{type|}}}}}|module|module|template}} category notes</div><div class="mw-collapsible-content"><p>This category contains pages in the {{#ifeq:{{lc:{{{type|}}}}}|module|Module|Template}} namespace. It should '''not''' contain articles or pages in other namespaces.</p>{{#switch:{{lc:{{{help|}}}}} | ||
|no|n|false|off|0= | |no|n|false|off|0= | ||
|yes|y|true|on|1|= | |yes|y|true|on|1|= | ||
Latest revision as of 05:50, 13 October 2026
This category contains pages in the Template namespace. It should not contain articles or pages in other namespaces.
If the template has a documentation page, usually named Template:Example/doc, add [[Template:Categorytemplate]] inside the <includeonly> section at the bottom of that page.
Otherwise, add <noinclude>[[Template:Categorytemplate]]</noinclude> at the end of the template code, starting on the same line as its last character.
{{Categorytemplate|type=module}}
prints:
This category contains pages in the Module namespace. It should not contain articles or pages in other namespaces.
In the module's documentation page, usually named Module:Example/doc, add [[Template:Categorytemplate]] inside the <includeonly> section at the bottom of that page.
With 1= prefix, and the text you want to print out, it will print big text in blue.
{{Categorytemplate|1=Templates relating to something}}
This category contains pages in the Template namespace. It should not contain articles or pages in other namespaces.
If the template has a documentation page, usually named Template:Example/doc, add [[Template:Categorytemplate]] inside the <includeonly> section at the bottom of that page.
Otherwise, add <noinclude>[[Template:Categorytemplate]]</noinclude> at the end of the template code, starting on the same line as its last character.
The 2= prefix does the same thing but next to the "The pages listed.." text. This can be used for small bits of extra info. See any use of this template for an example, including the source code for it to check.