Template:Template category: Difference between revisions

From Sarkarverse
Jump to navigation Jump to search
m (1 revision)
 
m (1 revision)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Cmbox
<table class="mw-stack"<!--(see {{Stack}})--> style="width:100%;margin:0;padding:0;">
|type = notice
<tr>
|image = [[Image:Curly Brackets.svg|44px|Template braces|link=]]
  <td>{{{rhs|}}}
|text = <div>
      {{Cmbox
<table style="width:98%;background:none;" cellspacing="0">
      | type = notice
      | image = [[File:Curly Brackets.svg|44px|Template braces|alt=|link=]]
      | text = <div>
        <table style="width:98%;background:none;" cellspacing="0"><!--


  <!------------------ topic / description / portal ------------------->
        ------------------- Container-category message -------------------
  {{#if:{{{topic|}}}{{{description|}}}
        -->{{#switch:{{{container|}}}
  | <tr style="background:#d5e4ed;line-height:1.25em;font-size:1.2em;">
            |true |yes = <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>
      <td style="border:1px solid #aaa;{{#if:{{{portal|}}} |border-right:none;}} padding:0.4em;"><!--
            }}<!--
    -->{{#if:{{{topic|}}}
        | '''{{#switch:{{lc:{{{type}}}}}
          |navbox |navigation <!------------------------------(If {{{type}}} provided and is any of these
        -->|infobox <!----------------------------------------- principal types, start sentence with it
        -->|sidebar = {{ucfirst:{{{type}}}}} templates <!--- (e.g. "Navigation templates [...]"),
        -->|#default = Templates <!------------------------- else start with "Templates [...]")
      -->}} relating to {{{topic}}}.'''&nbsp;}}<!--
    -->{{{1|}}}{{{description|}}}<!--
  --></td>
    </tr>
  }}


  <!------------------------------ type ------------------------------->
        ------------------- (type /) topic / description -----------------
  <tr>
        -->{{#if:{{{topic|}}}{{{description|}}}
  <td colspan="2"<!--(in case {{{portal}}} used)--> style="line-height:1.3em;"><!--
            | <tr style="background:#d5e4ed;line-height:1.5em;">
-->{{#if:{{{type|}}}
                <td style="border:1px solid #aaa;padding:0.4em;"><!--
    | <div style="padding-top:0.3em;font-size:95%;">'''The pages listed in this category are meant to be <!--
                --><span style="font-size:120%;"><!--
    -->{{#switch:{{lc:{{{type}}}}}
                    -->{{#if:{{{topic|}}}
        |ambox = [[WP:Manual of Style/Article message boxes|article message box (ambox)]] templates.'''
                        |   '''{{#switch:{{lc:{{{type}}}}}  
        |campaignbox = [[WP:Manual of Style/Military history#Campaignboxes|campaignbox]] templates.'''
                                | navbox|navigation|infobox|sidebar = {{ucfirst:{{{type}}}}} templates
        |conversion = templates that perform [[MOS:CONVERSIONS|conversions]].'''
                                | #default = Templates
        |external link = templates providing [[Wikipedia:External links|external links]].'''
                                }} relating to {{{topic}}}.<!--
        |formatting = templates that provide [[WP:Formatting|formatting]].'''
                          -->'''&nbsp;<!--
        |function = [[WP:Function templates|function templates]]''', i.e. templates that produce text, images or other elements.
                    -->}}{{{1|}}}{{{description|}}}<!--
        |infobox  = [[Help:Infobox|infobox]] templates.'''
                --></span><!--
        |meta = metatemplates.'''
            --></td>
        |navigation |navbox = [[Wikipedia:Navigation templates|navigation templates]].'''
              </tr>
        |sidebar |sidebox = [[:Category:Sidebar templates|sidebar templates]].'''
            }}<!--
        |stub = [[Wikipedia:WikiProject Stub sorting/Stub types|stub]] templates.'''
        |timeline = [[Wikipedia:Timeline|timeline]] templates.'''
        |userbox = [[Wikipedia:Userboxes|userbox]] templates.'''
        |#default = {{{1|{{{description|}}}}}} '''
        |{{{type}}} templates.'''
        }}<!--
    --></div>
    | <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|}}} |<br/><hr/>{{{ALTTEXT}}}<hr/>}}
    }}


     <!---------------- Further template category notes ---------------->
        ------------------------------ type ------------------------------
    <table class="collapsible collapsed" style="width:100%;padding-top:0.25em;background:transparent;line-height:1.3em font-size:90%;">
        --><tr>
    <tr><th style="border-bottom:1px solid #aaa;text-align:left;">{{resize|110%|Further template category notes}}</th></tr>
            <td style="line-height:1.3em;padding-top:0.3em;"><!--
    <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>
              -->{{#if:{{{type|}}}
    <tr>{{#if:{{{help|}}}{{{2|}}}{{{container|}}}
                  |  <div style="font-size:95%;">'''The pages listed in this category are meant to be <!--
          | {{#ifeq:{{{help|}}}| no | |<td style="border-top:1px solid #aaa;">{{#ifeq:{{{container|}}}|yes|'''Do not add templates to this category: instead, use the appropriate sub-category.'''|{{{help}}}}}</td>}}
                      -->{{#switch:{{lc:{{{type}}}}}
          | <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}}<!--
                          | ambox      = [[WP:Manual of Style/Article message boxes|article message box (ambox)]] templates.'''
--><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>[[</nowiki>{{FULLPAGENAME}}<!--
                          | campaignbox = [[WP:Manual of Style/Military history#Campaignboxes|campaignbox]] templates.'''
                          | conversion  = templates that perform [[MOS:CONVERSIONS|conversions]].'''
                          | external link = templates providing [[Wikipedia:External links|external links]].'''
                          | formatting  = templates that provide [[WP:Formatting|formatting]].'''
                          | function    = [[WP:Function templates|function templates]]''', i.e. templates that produce text, images or other elements.
                          | infobox     = [[Help:Infobox|infobox]] templates.'''
                          | meta        = [[:Category:Wikipedia metatemplates|metatemplates]].'''
                          | navigation | navbox = [[Wikipedia:Navigation templates|navigation templates]].'''
                          | sidebar    = [[:Category:Sidebar templates|sidebar templates]].'''
                          | stub        = [[Wikipedia:WikiProject Stub sorting/Stub types|stub]] templates.'''
                          | timeline    = [[Wikipedia:Timeline|timeline]] templates.'''
                          | userbox    = [[Wikipedia:Userboxes|userbox]] templates.'''
                          | #default    = {{{1|{{{description|}}}}}} '''
                          | {{{type}}} templates.'''
                          }}<!--
                  --></div>
                  | <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/>}}
              }}
 
          <!-------------- Further template category notes --------------->
          <table class="collapsible collapsed" style="width:100%;font-size:90%;padding-top:0.25em;background:transparent;line-height:1.3em;">
            <tr><th style="border-bottom:1px solid #aaa;text-align:left;"><!--(the following resized here otherwise [show/hide] link also resized:)
                -->{{bigger|Further template category notes}}</th></tr>
            <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>
            <tr>{{#if:{{{help|}}}{{{2|}}} |<td>{{{help}}}</td>
                | <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>[[</nowiki>{{FULLPAGENAME}}<!--
--><nowiki>]]&lt;/noinclude></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>
--><nowiki>]]&lt;/noinclude></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>
        }}</tr>
                }}</tr>
</table></td></tr>
          </table>
</table></div>
          </td>
}}<includeonly>{{#ifeq:{{NAMESPACE}}|{{ns:14}}|{{{category|[[Category:Wikipedia template categories]]}}}}}</includeonly><noinclude>
        </tr>
{{documentation}}
        </table><!--
            --></div>
      }}<!--(end Cmbox)-->
  </td>
</tr>
</table><includeonly>{{#ifeq:{{NAMESPACE}}|{{ns:14}} |{{{category|[[Category:Wikipedia template categories]]}}} }}</includeonly><!--


<!---Please add metadata (categories, interwikis) to the <includeonly> section at
--><noinclude>{{Documentation}}</noinclude>
    the bottom of the /doc subpage, not here; thank you.--->
</noinclude>

Latest revision as of 16:29, 28 June 2014

Documentation icon Template documentation[create]