Template:Template category: Difference between revisions

From Omniversalis
Content added Content deleted
(replace {{brackets}} with [ / ] per edit request)
 
m (1 revision imported)
 
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:
| type = notice
| type = notice
| style = padding-bottom:0.5em;
| style = padding-bottom:0.5em;
| image = [[File:Curly Brackets.svg|44px|Template braces|alt=|link=]]
| image = {{#ifeq:{{{type|}}}|module|[[File:Lua-logo-nolabel.svg|44px|Lua logo|alt=Lua logo|link=]]|[[File:Curly Brackets.svg|44px|Template braces|alt=|link=]]}}
| text = <div>
| text = <div style="width:98%;"><!--
<table style="width:98%; background:none; border-collapse: collapse;"><!--


Container-category message
Container-category message
-->{{ifaffirmed|1={{{container|}}}
-->{{yesno|1={{{container|}}}
|2=<tr><td style="font-size:115%;padding:0.5em 0;"> '''''Note: Please do not add templates to this category; instead, use one of its subcategories.''''' </td></tr>
|yes=<div style="font-size:115%;padding:0.5em 0;"> '''''Note: Please do not add {{#ifeq:{{{type|}}}|module|modules|templates}} to this category; instead, use one of its subcategories.''''' </div>
}}<!--
}}<!--


(type/)topic/description
(type/)topic/description
-->{{#if:{{{topic|}}}{{{description|}}}
-->{{#if:{{{topic|}}}{{{description|}}}
| <tr style="background:#d5e4ed;line-height:1.5em;"><td style="border:1px solid #aaa;font-size:120%;padding:0.35em;"> <!--
| <div style="background:#d5e4ed;line-height:1.5em;border:1px solid #aaa;font-size:120%;padding:0.35em;"> <!--
-->{{#if:{{{topic|}}} |'''{{#switch:{{lc:{{{type}}}}} |navbox|navigation|navigational|infobox|sidebar={{ucfirst:{{{type}}}}} templates |#default=Templates}} relating to {{{topic}}}.'''&nbsp;{{{1|}}}{{{description|}}}
-->{{#if:{{{topic|}}} |'''{{#switch:{{lc:{{{type}}}}} |navbox|navigation|navigational|infobox|sidebar|={{ucfirst:{{{type}}}}} templates |module=Modules|#default=Templates}} relating to {{{topic}}}.'''&nbsp;{{{1|}}}{{{description|}}}
| <div><!--(in case 1/description begins with newline:)--> {{{1|}}}{{{description|}}} </div>
| <div><!--(in case 1/description begins with newline:)--> {{{1|}}}{{{description|}}} </div>
}} </td></tr>
}} </div>
}}<!--
}}<!--


type --><tr><td style="line-height:1.3em;padding-top:0.3em;"> <!--
type --><div style="line-height:1.3em;padding-top:0.3em;"> <!--
-->{{#if:{{{type|}}} <!--
-->{{#if:{{{type|}}} <!--
(then:)-->| <div style="font-size:95%;font-weight:bold;"> The pages listed in this category are meant to be <!--
(then:)-->| <div style="font-size:95%;font-weight:bold;"> The pages listed in this category are {{#ifeq:{{{type|}}}|module||meant to be}} <!--
-->{{#switch:{{lc:{{{type}}}}}
-->{{#switch:{{lc:{{{type}}}}}
| ambox = [[Wikipedia:Manual of Style/Article message boxes|article message box (ambox)]] templates
| ambox = [[W:Wikipedia:Manual of Style/Article message boxes|article message box (ambox)]] templates
| campaignbox = [[Wikipedia:Manual of Style/Military history#Campaignboxes|campaignbox]] templates
| category header
| category heading
| conversion = templates that perform [[Wikipedia:Manual of Style/Dates and numbers#Unit conversions|conversions]]
| external link = templates providing [[Wikipedia:External links|external links]]
| catheader | cat header
| formatting = templates that provide [[Wikipedia:Formatting|formatting]]
| cathead = [[W:Wikipedia:Categorization|category]] header templates
| campaignbox = [[W:Wikipedia:Manual of Style/Military history#Campaignboxes|campaignbox]] templates
| conversion = templates that perform [[W:Wikipedia:Manual of Style/Dates and numbers#Unit conversions|conversions]]
| external link = templates providing [[W:Wikipedia:External links|external links]]
| formatting = templates that provide [[W:Wikipedia:Formatting|formatting]]
| function = function templates{{nobold|, i.e. templates that produce text, images or other elements}}
| function = function templates{{nobold|, i.e. templates that produce text, images or other elements}}
| infobox = [[Help:Infobox|infobox]] templates
| infobox = [[W:Help:Infobox|infobox]] templates
<!-- | message = [[Wikipedia:Template messages|message]] templates -->
<!-- | message = [[W:Wikipedia:Template messages|message]] templates -->
| meta = [[Help:Metatemplating|metatemplates]]
| module = [[W:Wikipedia:Lua|Lua modules]]
| navigation |navigational |navbox = [[Wikipedia:Navigation templates|navigation]] templates
| meta = [[W:Help:Metatemplating|metatemplates]]
| sidebar = [[:Category:Sidebar templates|sidebar]] templates
| navigation |navigational |navbox = [[Wikipedia:Navigation template|navigation]] templates
| stub = [[Wikipedia:WikiProject Stub sorting/Stub types|stub]] templates
| sidebar = [[W::Category:Sidebar templates|sidebar]] templates
| sub = [[Help:Subtemplates|subtemplates]]{{nobold|, i.e. templates used by another template or templates}}
| stub = [[W:Wikipedia:WikiProject Stub sorting/Stub types|stub]] templates
| timeline = [[Wikipedia:Timeline|timeline]] templates
| sub = [[W:Help:Template#Creating and editing templates|subtemplates]]{{nobold|, i.e. templates used by another template or templates}}
| userbox = [[Wikipedia:Userboxes|userbox]] templates
| timeline = [[W:Wikipedia:Timeline|timeline]] templates
| userbox = [[W:Wikipedia:Userboxes|userbox]] templates
| #default = {{{1|{{{description|}}}}}}
| #default = {{{1|{{{description|}}}}}}
| {{{type}}} templates
| {{{type}}} templates
}}. </div><!--
}}. </div><!--


(else:)-->| <div style="font-size:95%;font-weight:bold;"> The pages listed in this category are [[Wikipedia:Templates|templates]]. </div>
(else:)-->| <div style="font-size:95%;font-weight:bold;"> The pages listed in this category are [[W:Help:Template|templates]]. </div>}}
<div style="font-size:95%;padding:0.15em 0;line-height:1.3em;"> This page is part of [[:Category:Wikipedia administration|Wikipedia's administration]] and not part of the encyclopedia. </div> {{#if:{{{ALTTEXT|}}}|<hr/>{{{ALTTEXT}}}<hr/>}}
<div style="font-size:95%;padding:0.15em 0;line-height:1.3em;"> This page is part of [[W::Category:Wikipedia administration|Wikipedia's administration]] and not part of the encyclopedia. </div> {{#if:{{{ALTTEXT|}}}|<hr/>{{{ALTTEXT}}}<hr/>}}
}}
<!--
<!--
Further template category notes
Further template category notes
--><table class="collapsible collapsed" style="width:100%;font-size:90%;padding-top:0.25em;background:transparent;line-height:1.3em;">
--><div class="mw-collapsible mw-collapsed" style="font-size:90%;padding-top:0.25em;line-height:1.3em;">
<tr><th style="border-bottom:1px solid #aaa;text-align:left;"> Further template category notes </th></tr>
<div style="border-bottom:1px solid #aaa;font-weight:bold;"> Further {{#ifeq:{{{type|}}}|module|module|template}} category notes </div>
<div class="mw-collapsible-content">
<tr><td> This [[Help:Category|category]] contains pages in the [[Wikipedia:Template namespace|template namespace]]. It should not be used to categorize [[Wikipedia:What is an article?|articles]] or pages in other [[Help:Namespace|namespaces]]. </td></tr><!--
<div> This [[W:Help:Category|category]] contains pages in the {{#ifeq:{{{type|}}}|module|[[W:Wikipedia:Module namespace|module namespace]]|[[W:Wikipedia:Template namespace|template namespace]]}}. It should not be used to categorize [[W:Wikipedia:What is an article?|articles]] or pages in other [[W:Help:Namespace|namespaces]]. </div><br/><!--


Help subsection
Help subsection
--> <tr> {{#if:{{{help|}}}{{{2|}}} <!--
-->{{#if:{{{help|}}}{{{2|}}} <!--
(then:)-->| {{ifdeclined|{{{help|}}} |{{#if:{{{2|}}}|<td>{{{2}}}</td>}} |<td>{{{help}}}{{{2|}}}</td>}}<!--
(then:)-->| {{yesno|{{{help|}}} |no={{#if:{{{2|}}}|<div>{{{2}}}</div><br/>}} |yes=<div>{{{help}}}{{{2|}}}</div><br/>|def=<div>{{{help}}}{{{2|}}}</div><br/>}}<!--
(else:)-->| <td> To add a template to this category:
(else:)-->| <div> To add a {{#ifeq:{{{type|}}}|module|module|template}} to this category: </div>
{{Unbulleted list |list_style=padding-left:1.4em;
{{#ifeq:{{{type|}}}|module|{{Unbulleted list |list_style=padding-left:1.4em;
| If the template has a separate documentation page (usually called "Template:''template name''/doc"), add
| In the documentation page (usually named "Module:''Name''/doc"), add
| {{pad}}{{mono|&#91;&#91;{{FULLPAGENAME}}&#93;&#93;}}
| {{pad}}<kbd>{{brackets|{{FULLPAGENAME}}}}</kbd>
| to the <nowiki><includeonly></nowiki> section at the bottom of that page. Otherwise, add
| to the <nowiki><includeonly></nowiki> section at the bottom of that page.
}}|{{Unbulleted list |list_style=padding-left:1.4em;
| {{pad}}{{mono|&lt;noinclude&gt;&#91;&#91;{{FULLPAGENAME}}&#93;&#93;&lt;/noinclude&gt;}}
| to the end of the template code, making sure it starts on the same line as the code's last character.
| If the template has a separate documentation page (usually called "{{#ifeq:{{{type|}}}|module|Module|Template}}:''template name''/doc"), add
}} </td> }} </tr>
| {{pad}}<kbd>&#91;&#91;{{FULLPAGENAME}}&#93;&#93;</kbd>
| to the <nowiki><includeonly></nowiki> section at the bottom of that page. Otherwise, add
</table> <!--(end "Further template category notes" table)
| {{pad}}<kbd>&lt;noinclude&gt;&#91;&#91;{{FULLPAGENAME}}&#93;&#93;&lt;/noinclude&gt;</kbd>
| to the end of the template code, making sure it starts on the same line as the code's last character.
}} }} }}
</div>
</div> <!--(end "Further template category notes")


--></td></tr> <!--(end of "type" row)-->
--></div> <!--(end of "type" div)-->


</table> </div> <!--(end containing table and |text=<div>)-->
</div> <!--(end containing div)-->
}}<includeonly>{{#ifeq:{{NAMESPACE}}|{{ns:14}}
}}<includeonly>{{#ifeq:{{NAMESPACE}}|{{ns:14}}
| {{{category|[[Category:Wikipedia template categories]]}}}
| {{{category|[[Category:Wikipedia template categories]]}}}

Latest revision as of 00:40, 15 May 2022