Difference between revisions of "Template:Template category"

From Là gì Wiki
Jump to: navigation, search
m (đổi hướng kép)
m (Đã nhập 1 phiên bản)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
#redirect [[Tiêu bản:Thể loại bản mẫu]]
+
{{{onright|{{{rhs|}}}}}}
 +
{{Cmbox
 +
| type = notice
 +
| style = padding-bottom:0.5em;
 +
| image = [[File:Curly Brackets.svg|44px|Template braces|alt=|link=]]
 +
| text = <div style="width:98%;"><!--
 +
 
 +
Container-category message
 +
  -->{{ifaffirmed|1={{{container|}}}
 +
      |2=<div style="font-size:115%;padding:0.5em 0;"> '''''Note: Please do not add templates to this category; instead, use one of its subcategories.''''' </div>
 +
      }}<!--
 +
 
 +
(type/)topic/description
 +
  -->{{#if:{{{topic|}}}{{{description|}}}
 +
      | <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|}}}
 +
              | <div><!--(in case 1/description begins with newline:)--> {{{1|}}}{{{description|}}} </div>
 +
            }} </div>
 +
      }}<!--
 +
 
 +
type --><div 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 meant to be <!--
 +
                -->{{#switch:{{lc:{{{type}}}}}
 +
                    | ambox = [[Wikipedia:Manual of Style/Article message boxes|article message box (ambox)]] templates
 +
                    | campaignbox = [[Wikipedia:Manual of Style/Military history#Campaignboxes|campaignbox]] templates
 +
                    | conversion = templates that perform [[Wikipedia:Manual of Style/Dates and numbers#Unit conversions|conversions]]
 +
                    | external link = templates providing [[Wikipedia:External links|external links]]
 +
                    | formatting = templates that provide [[Wikipedia:Formatting|formatting]]
 +
                    | function = function templates{{nobold|, i.e. templates that produce text, images or other elements}}
 +
                    | infobox = [[Help:Infobox|infobox]] templates
 +
                <!-- | message = [[Wikipedia:Template messages|message]] templates -->
 +
                    | meta = [[Help:Metatemplating|metatemplates]]
 +
                    | navigation |navigational |navbox = [[Wikipedia:Navigation templates|navigation]] templates
 +
                    | sidebar = [[:Category:Sidebar templates|sidebar]] templates
 +
                    | stub = [[Wikipedia:WikiProject Stub sorting/Stub types|stub]] templates
 +
                    | sub = [[Help:Subtemplates|subtemplates]]{{nobold|, i.e. templates used by another template or templates}}
 +
                    | timeline = [[Wikipedia:Timeline|timeline]] templates
 +
                    | userbox = [[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 [[Wikipedia:Templates|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/>}}
 +
            }}
 +
<!--
 +
Further template category notes
 +
          --><div class="mw-collapsible mw-collapsed" style="font-size:90%;padding-top:0.25em;line-height:1.3em;">
 +
              <div style="border-bottom:1px solid #aaa;font-weight:bold;"> Further template category notes </div>
 +
              <div class="mw-collapsible-content">
 +
                <p> 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]]. </p><!--
 +
 
 +
                Help subsection
 +
                -->{{#if:{{{help|}}}{{{2|}}} <!--
 +
                (then:)-->| {{ifdeclined|{{{help|}}} |{{#if:{{{2|}}}|<p>{{{2}}}</p>}} |<p>{{{help}}}{{{2|}}}</p>}}<!--
 +
                (else:)-->| <p> To add a template to this category: </p>
 +
                {{Unbulleted list |list_style=padding-left:1.4em;
 +
                  | If the template has a separate documentation page (usually called "Template:''template name''/doc"), add
 +
                  | {{pad}}{{mono|&#91;&#91;{{FULLPAGENAME}}&#93;&#93;}}
 +
                  | to the <nowiki><includeonly></nowiki> section at the bottom of that page. Otherwise, add
 +
                  | {{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.
 +
                }} }}
 +
              </div>
 +
            </div> <!--(end "Further template category notes")
 +
 
 +
      --></div> <!--(end of "type" div)-->
 +
 
 +
</div> <!--(end containing div)-->
 +
}}<includeonly>{{#ifeq:{{NAMESPACE}}|{{ns:14}}
 +
                | {{{category|[[Category:Wikipedia template categories]]}}}
 +
              }}</includeonly><noinclude>
 +
{{Documentation}}
 +
</noinclude>

Latest revision as of 07:46, 29 January 2019

Template documentation[create]
DMCA.com Protection Status