Template:Template category: Difference between revisions

Nothing to hide, but nothing to show you either.
Jump to navigation Jump to search
Content added Content deleted
m (template name update)
m (288 revisions imported from wikipedia:Template:Template_category)
 
(28 intermediate revisions by 14 users not shown)
Line 1:
{{{onright|{{{rhs|}}}}}}
{{Cmbox
<div style="padding-bottom:0.5em;">
| type = notice
{{Cmbox
<div| style =" padding-bottom:0.5em;">
| type = notice
| 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;" cellspacing="0"><!--
 
-------------- Container-category message --------------
-->{{ifaffirmedyesno|1={{{container|}}}
| <tr>yes=<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|stub|={{ucfirst:{{{type}}}}} templates |module=Modules|#default=Templates}} relating to {{{topic}}}.'''&nbsp;}}{{{1|}}}{{{description|}}} </td></tr>
| <div><!--(in case 1/description begins with newline:)--> {{{1|}}}{{{description|}}} </div>
}}<!--
}} </tablediv>
}}<!--
 
type --><tr><tddiv style="line-height:1.3em;padding-top:0.3em;"> <!--
------------------------ type --------------------------
-->{{#if:{{{type|}}} <!--
--><tr><td style="line-height:1.3em;padding-top:0.3em;"> <!--
(then:)-->| <div style="font-size:95%;font-weight:bold;"> The pages listed in this category are {{#ifeq:{{{type|}}}|module||meant to be}} <!--
-->{{#if:{{{type|}}}<!--
-->{{#switch:{{lc:{{{type}}}}}
(then:)-->| <div style="font-size:95%;font-weight:bold;"> <!--
| ambox = [[Wikipedia:Manual of Style/Article message boxes|article message box (ambox)]] templates
-->The pages listed in this category are meant to be <!--
-->{{#switch:{{lc:{{{type}}}}}| category header
-->The pages listed in this| category are meant to be <!--heading
| ambox = [[Wikipedia:Manual of Style/Article message boxes|article message box (ambox)]] templates
| catheader | cat header
| campaignbox = [[Wikipedia:Manual of Style/Military history#Campaignboxes|campaignbox]] templates
| conversioncathead = templates that perform [[Wikipedia:Manual of Style/Dates and numbers#Unit conversionsCategorization|conversionscategory]] header templates
| external linkcampaignbox = templates providing [[Wikipedia:ExternalManual linksof Style/Military history#Campaignboxes|external linkscampaignbox]] templates
| formattingconversion = templates that provideperform [[Wikipedia:FormattingManual of Style/Dates and numbers#Unit conversions|formattingconversions]]
| external | functionlink = function templates{{nobold|, i.e.providing templates[[Wikipedia:External that produce text, images or otherlinks|external elements}}links]]
| formatting = templates |that infobox =provide [[HelpWikipedia:InfoboxManual of Style/Text formatting|infoboxformatting]] templates
<!--| messagefunction = [[Wikipedia:Templatefunction messagestemplates{{nobold|message]], i.e. templates--> that produce text, images or other elements}}
| metainfobox = [[Wikipedia:Category:WikipediaManual metatemplatesof Style/Infoboxes|metainfobox]]- templates
<!-- | navigation |navigational |navboxmessage = [[Wikipedia:NavigationTemplate templatesmessages|navigationmessage]] templates -->
| sidebarmodule = [[Wikipedia:Category:SidebarLua|Lua templates|sidebarmodules]] templates
| stubmeta = [[WikipediaHelp:WikiProject Stub sorting/Stub typesMetatemplating|stubmetatemplates]] templates
| navigation |navigational | subnavbox = [[HelpWikipedia:SubtemplatesNavigation template|subtemplatesnavigation]]{{nobold|, i.e. templates used by another template or templates}}
| timelinesidebar = [[WikipediaWP:TimelineSIDEBAR|timelinesidebar]] templates
| userboxstub = [[Wikipedia:UserboxesWikiProject Stub sorting/Stub types|userboxstub]] templates
| sub = | [[Help:Template#defaultCreating =and {{{1editing templates|subtemplates]]{{{descriptionnobold|}}}}, i.e. templates used by another template or templates}}
| timeline = [[Wikipedia:Timeline| {{{type}}}timeline]] templates
| userbox = }}.[[Wikipedia:Userboxes|userbox]] <!--templates
--></div><!-- | #default = {{{1|{{{description|}}}}}}
| {{{type}}} templates
(else:)-->| <div style="font-size:95%;"> '''The pages listed in this category are [[Wikipedia:Templates|templates]].''' <div style="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> </div> {{#if:{{{ALTTEXT|}}}|<hr/>{{{ALTTEXT}}}<hr/>}}<!--
--> }}. </div><!--
 
(else:)-->| <div style="font-size:95%;font-weight:bold;"> The pages listed in this category are [[Help:Template|templates]]. </div>}}
<!--------- Further template category notes ---------->
<table class="collapsible collapsed" <div style="width:100%;font-size:9095%;padding-top:0.25em;background:transparent15em 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/>}}
<!--
<tr><th style="border-bottom:1px solid #aaa;text-align:left;"> Further template category notes </th></tr>
Further template category notes
<tr><td style="padding-top:0.25em;"> '''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 class="mw-collapsible mw-collapsed" style="font-size:90%;padding-top:0.25em;line-height:1.3em;">
<tr>{{#if:{{{help|}}}{{{2|}}} |<td> {{{help}}} </td>
<tr><thdiv style="border-bottom:1px solid #aaa;textfont-alignweight:leftbold;"> Further {{#ifeq:{{{type|}}}|module|module|template}} category notes </th></trdiv>
| <td style="padding-bottom:0.5em;border-top:1px solid #aaa;"> To include a template in this category, add <br/><code style="background:transparent;font-size:110%;overflow:auto;"><nowiki>[[</nowiki>{{FULLPAGENAME}}<nowiki>]]</nowiki></code><br/>to the <nowiki><includeonly></nowiki> section at the bottom of the template's /doc subpage if such a page exists. Otherwise, add <br/><code style="background:transparent;font-size:110%;overflow:auto;"><nowiki>&lt;noinclude&gt;[[</nowiki>{{FULLPAGENAME}}<nowiki>]]&lt;/noinclude&gt;</nowiki></code><br/>to the end of the template code, making sure it starts on the same line as the last character of the code. </td>
<div }}</trclass="mw-collapsible-content">
<tr><td style="padding-top:0.25em;"div> '''This [[Help:Category|category]] contains pages in the {{#ifeq:{{{type|}}}|module|[[Wikipedia:Lua|module namespace]]|[[Wikipedia:Template namespace|template namespace]]}}.''' It should not be used to categorize [[Wikipedia:What is an article?|articles]] or pages in other [[HelpWikipedia:Namespace|namespaces]]. </tddiv><br/tr><!--
</table>
</td></tr><!---(end of ----type---- row)---->
</table> </div><!--(closing |text=<div> above)-->
}}<!--(end Cmbox)-->
</div><includeonly>{{#ifeq:{{NAMESPACE}}|{{ns:14}} |{{{category|[[Category:Wikipedia template categories]]}}}}}</includeonly><noinclude>
 
Help subsection
<tr -->{{#if:{{{help|}}}{{{2|}}} |<td> {{{help}}} </td>!--
(then:)-->| {{yesno|{{{help|}}} |no={{#if:{{{2|}}}|<div>{{{2}}}</div><br/>}} |yes=<div>{{{help}}}{{{2|}}}</div><br/>|def=<div>{{{help}}}{{{2|}}}</div><br/>}}<!--
(else:)-->| <div> To add a {{#ifeq:{{{type|}}}|module|module|template}} to this category: </div>
{{#ifeq:{{{type|}}}|module|{{Unbulleted list |list_style=padding-left:1.4em;
| In the documentation page (usually named "Module:''Name''/doc"), add
| {{pad}}<kbd>{{brackets|{{FULLPAGENAME}}}}</kbd>
| to the <nowiki><includeonly></nowiki> section at the bottom of that page.
}}|{{Unbulleted list |list_style=padding-left:1.4em;
| If the template has a separate documentation page (usually called "{{#ifeq:{{{type|}}}|module|Module|Template}}:''template name''/doc"), add
| {{pad}}<kbd>&#91;&#91;{{FULLPAGENAME}}&#93;&#93;</kbd>
| to the <nowiki><includeonly></nowiki> section at the bottom of that page. Otherwise, add
| {{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--></trdiv> <!---(end of ----"type----" rowdiv)---->
 
</div> <!--(end containing div)
 
## Tracking categories
-->{{Category other|<!--
-->{{#if: {{{topic|}}}{{{description|}}}<!--
-->|<!-- # We have a topic/description, so all ok
-->|[[Category:Template:Template category with no topic or description]]<!--
-->}}<!--
-->}}
}}<includeonly>{{#ifeq:{{NAMESPACE}}|{{ns:14}}
</div><includeonly>{{#ifeq:{{NAMESPACE}}|{{ns:14}} | {{{category|[[Category:Wikipedia template categories]]}}}}}</includeonly><noinclude>
}}</includeonly><noinclude>
{{Documentation}}
</noinclude>

Latest revision as of 11:06, 22 June 2021