Template:Template category: Difference between revisions

no edit summary
m (1 revision imported)
en>Centrist16
No edit summary
Line 3:
| type = notice
| style = padding-bottom:0.5em;
| 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 style="width:98%;"><!--
<table style="width:98%; background:none; border-collapse: collapse;"><!--
 
Container-category message
-->{{ifaffirmedyesno|1={{{container|}}}
|2yes=<tr><tddiv 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.''''' </td></trdiv>
}}<!--
 
(type/)topic/description
-->{{#if:{{{topic|}}}{{{description|}}}
| <trdiv style="background:#d5e4ed;line-height:1.5em;"><td style="border:1px solid #aaa;font-size:120%;padding:0.35em;"> <!--
-->{{#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>
}} </td></trdiv>
}}<!--
 
type --><tr><tddiv style="line-height:1.3em;padding-top:0.3em;"> <!--
-->{{#if:{{{type|}}} <!--
(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}}}}}
| ambox = [[W:Wikipedia:Manual of Style/Article message boxes|article message box (ambox)]] templates
| campaignboxcategory = [[Wikipedia:Manual of Style/Military history#Campaignboxes|campaignbox]] templatesheader
| category heading
| conversion = templates that perform [[Wikipedia:Manual of Style/Dates and numbers#Unit conversions|conversions]]
| externalcatheader link| = templates providing [[Wikipedia:External links|externalcat links]]header
| formattingcathead = templates that provide [[W:Wikipedia:FormattingCategorization|formattingcategory]] 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}}
| infobox = [[W:Help:Infobox|infobox]] templates
<!-- | message = [[W:Wikipedia:Template messages|message]] templates -->
| metamodule = [[HelpW:MetatemplatingWikipedia:Lua|metatemplatesLua modules]]
| navigation |navigational |navboxmeta = [[WikipediaW:Navigation templatesHelp:Metatemplating|navigationmetatemplates]] templates
| sidebarnavigation |navigational |navbox = [[Wikipedia:Category:SidebarNavigation templatestemplate|sidebarnavigation]] templates
| stubsidebar = [[WikipediaW:WikiProject Stub sorting/Stub:Category:Sidebar typestemplates|stubsidebar]] templates
| substub = [[HelpW:SubtemplatesWikipedia:WikiProject Stub sorting/Stub types|subtemplatesstub]]{{nobold|, i.e. templates used by another template or templates}}
| timelinesub = [[WikipediaW:TimelineHelp:Template#Creating and editing templates|timelinesubtemplates]]{{nobold|, i.e. templates used by another template or templates}}
| userboxtimeline = [[W:Wikipedia:UserboxesTimeline|userboxtimeline]] templates
| userbox = [[W:Wikipedia:Userboxes|userbox]] templates
| #default = {{{1|{{{description|}}}}}}
| {{{type}}} templates
}}. </div><!--
 
(else:)-->| <div style="font-size:95%;font-weight:bold;"> The pages listed in this category are [[WikipediaW:TemplatesHelp:Template|templates]]. </div>}}
<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
--><tablediv class="mw-collapsible mw-collapsed" style="width:100%;font-size:90%;padding-top:0.25em;background:transparent;line-height:1.3em;">
<tr><thdiv style="border-bottom:1px solid #aaa;textfont-alignweight:leftbold;"> Further {{#ifeq:{{{type|}}}|module|module|template}} category notes </th></trdiv>
<div class="mw-collapsible-content">
<tr><tddiv> 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]]. </tddiv><br/tr><!--
 
Help subsection
--> <tr> {{#if:{{{help|}}}{{{2|}}} <!--
(then:)-->| {{ifdeclinedyesno|{{{help|}}} |no={{#if:{{{2|}}}|<tddiv>{{{2}}}</tddiv><br/>}} |yes=<tddiv>{{{help}}}{{{2|}}}</tddiv><br/>|def=<div>{{{help}}}{{{2|}}}</div><br/>}}<!--
(else:)-->| <tddiv> To add a {{#ifeq:{{{type|}}}|module|module|template}} to this category: </div>
{{#ifeq:{{{type|}}}|module|{{Unbulleted list |list_style=padding-left:1.4em;
| IfIn the template has a separate documentation page (usually callednamed "TemplateModule:''template nameName''/doc"), add
| {{pad}}<kbd>{{monobrackets|&#91;&#91;{{FULLPAGENAME}}&#93;&#93;}}</kbd>
| to the <nowiki><includeonly></nowiki> section at the bottom of that page. Otherwise, add
}}|{{Unbulleted list |list_style=padding-left:1.4em;
| {{pad}}{{mono|&lt;noinclude&gt;&#91;&#91;{{FULLPAGENAME}}&#93;&#93;&lt;/noinclude&gt;}}
| to the end| ofIf the template code,has makinga sureseparate itdocumentation startspage on(usually the samecalled line as the code"{{#ifeq:{{{type|}}}|module|Module|Template}}:'s'template lastname''/doc"), character.add
| {{pad}} </tdkbd> &#91;&#91;{{FULLPAGENAME}} &#93;&#93;</trkbd>
| to the <nowiki><includeonly></nowiki> section at the bottom of that page. Otherwise, add
</table> <!--(end "Further template category notes" table)
| {{pad}}{{mono|<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>
</tablediv> <!--(end "Further template category notes" table)
 
--></td></trdiv> <!--(end of "type" rowdiv)-->
 
</table> </div> <!--(end containing table and |text=<div>)-->
}}<includeonly>{{#ifeq:{{NAMESPACE}}|{{ns:14}}
| {{{category|[[Category:Wikipedia template categories]]}}}
Anonymous user