Difference between revisions of "Template:Country topics/sandbox"

From blackwiki
Jump to navigation Jump to search
(bodystyle)
imported>BrownHairedGirl
(fix)
 
(77 intermediate revisions by 9 users not shown)
Line 1: Line 1:
 +
<div style="background:#fffff0";>* noportal=//{{{noportal|}}}//
 +
----
 +
</div>
 
{{Navbox
 
{{Navbox
|name = {{{template_name|{{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}} topics}}}
+
|name = {{if empty|{{{template_name|}}}| {{#if:{{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}| {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}} topics}} | {{FULLPAGENAME}} }}
|state = {{{1|{{{state|}}}}}}
+
|state = {{{state|{{{1|}}}}}}
 
|border = {{{border|}}}
 
|border = {{{border|}}}
 
|bodyclass = hlist
 
|bodyclass = hlist
 
|basestyle = {{{basestyle|}}}
 
|basestyle = {{{basestyle|}}}
|liststyle = background:transparent;
 
  
|title =
+
  <!---------------------- Titlebar ----------------------->
  <!-------------------------------------------------------
+
|titleclass = {{{titleclass|}}}
    ----------- Name ------------
+
|title = <includeonly>{{#ifexist:{{{country|{{{territory|{{{region|}}}}}}}}}
-->{{#ifexist:{{{country|{{{territory|{{{region|}}}}}}}}}
+
     | [[{{{country|{{{territory|{{{region}}}}}}}}}{{#if:{{{titlename|}}}|{{!}}{{{titlename}}}}}]]&nbsp;|{{{titlename|{{{country|{{{territory|{{{region|<span style="white-space:nowrap;color:red;">[Required parameter missing!]</span>}}}}}}}}}}}}&nbsp;<!--(space between Name and "articles" word (if not suppressed))
     |[[{{{country|{{{territory|{{{region}}}}}}}}}{{#if:{{{titlename|}}}|{{!}}{{{titlename}}}}}]]&nbsp;<!--
+
  -->}}<!---- "topics" ----
  -->|{{{titlename|{{{country|{{{territory|{{{region|<!--
+
-->{{#if:{{{_notopicsword|}}} | |{{#ifexist:Index of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}-related articles|[[Index of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}-related articles|articles]]|articles}}}}</includeonly>
      --><span style="white-space:nowrap;color:red;">[Required parameter missing!]</span><!--
 
  -->}}}<!------->}}}<!----->}}}<!------->}}}&nbsp;<!--(space between Name and "topics" (if not suppressed))
 
  -->}}<!--
 
  
    ---------- "topics" ----------
+
  <!------------------ Image (optional) ------------------->
-->{{#if:{{{_notopicsword|}}} | |topics}}
 
 
 
  <!-------------------------------------------------------
 
    Image (optional)
 
  -------------------------------------------------------->
 
 
|imagestyle = {{{imagestyle|}}}
 
|imagestyle = {{{imagestyle|}}}
 
|image = {{{image|}}}
 
|image = {{{image|}}}
  
 
+
  <!-------------- "above" line (optional) ---------------->
  <!-------------------------------------------------------
 
    "above" line (optional)
 
  -------------------------------------------------------->
 
 
|abovestyle = {{{abovestyle|}}}
 
|abovestyle = {{{abovestyle|}}}
 
|above = {{{above|}}}{{{addtoabove|}}}
 
|above = {{{above|}}}{{{addtoabove|}}}
  
 
<!------ Optional custom group 1 ------->
 
|group1style = {{{custom1style|}}}
 
 
|group1 = {{{custom1|}}}
 
|group1 = {{{custom1|}}}
|list1style = {{{list1style|}}}
 
 
|list1 = {{{list1|}}}
 
|list1 = {{{list1|}}}
 
+
<noinclude>
 
+
  <!--===================================================
  <!--===================================================--
+
                          HISTORY
      HISTORY
+
    ===================================================-->
  ---===================================================-->
+
</noinclude>
 
+
|group2 = {{#ifexist:History of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}
|group{{#if:{{{list1|}}}|2|1}} = <!---(#if: is required to ensure there's a list1 so that any image included is displayed (see {{Navbox}})--->
 
    <!---(groupname not displayed unless history provided)--->
 
    {{#ifexist:History of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}
 
 
     | [[History of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}|History]]
 
     | [[History of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}|History]]
 
     | History
 
     | History
 
     }}
 
     }}
 +
|list2 = {{{history|}}}
  
|list{{#if:{{{list1|}}}|2|1}}style = background:transparent;<!--(for the sake of accessibility, ensure list's background is transparent regardless of whether it's an odd or even-numbered list)-->
+
|group3 = {{{custom2|}}}
|list{{#if:{{{list1|}}}|2|1}} = {{{history|}}}<!--(see group# comment above)-->
+
|list3 = {{{list2|}}}
 
+
<noinclude>
 
+
  <!--===================================================
<!------ Optional custom group 2 ------->
+
                  GEOGRAPHY / Subdivisions
|group{{#if:{{{history|}}}{{{list1|}}}|3|1}}style = {{{custom2style|}}}
+
    ===================================================-->
|group{{#if:{{{history|}}}{{{list1|}}}|3|1}} = {{{custom2|}}}
+
</noinclude>
|list{{#if:{{{history|}}}{{{list1|}}}|3|1}}style = {{{list2style|}}}
+
|group4 = {{#ifexist:Geography of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}
|list{{#if:{{{history|}}}{{{list1|}}}|3|1}} = {{{list2|}}}
 
 
 
 
 
  <!--===================================================--
 
      GEOGRAPHY
 
          (Subdivisions)
 
  ---===================================================-->
 
 
 
|group{{#if:{{{list2|}}}{{{history|}}}{{{list1|}}}|4|1}} = <!---(see #if: comment above (History))--->
 
    <!---(groupname not displayed unless geography and/or subdivisions provided)--->
 
    {{#ifexist:Geography of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}
 
 
       | [[Geography of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}|Geography]]
 
       | [[Geography of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}|Geography]]
 
       | Geography
 
       | Geography
 
     }}
 
     }}
 
+
|list4 = {{#if:{{{geography|}}}{{{subdivisions|}}}
|list{{#if:{{{list2|}}}{{{history|}}}{{{list1|}}}|4|1}} = <!---(see #if: comment above (History))--->
+
     | {{Navbox|child
    {{#if:{{{geography|}}}{{{subdivisions|}}}
 
     | {{Navbox |child
 
 
         |basestyle = {{{basestyle|}}}
 
         |basestyle = {{{basestyle|}}}
 
         |groupstyle = padding-left:0.5em;padding-right:0.5em;font-weight:normal;{{{subgroupstyle|}}}
 
         |groupstyle = padding-left:0.5em;padding-right:0.5em;font-weight:normal;{{{subgroupstyle|}}}
        |evenodd = swap <!--(for sake of accessibility, assume only the history group precedes this group, so contrast this group's list/s background accordingly)-->
 
 
         |list1 = {{{geography|}}}
 
         |list1 = {{{geography|}}}
 
         |group2 = <!--(only shown if subdivisions provided)-->
 
         |group2 = <!--(only shown if subdivisions provided)-->
Line 94: Line 65:
 
     }}
 
     }}
  
 
+
|group5 = {{{custom3|}}}
<!------ Optional custom group 3 ------->
+
|list5 = {{{list3|}}}
|group{{#if:{{{geography|}}}{{{list2|}}}{{{history|}}}{{{list1|}}}|5|1}}style = {{{custom3style|}}}
+
<noinclude>
|group{{#if:{{{geography|}}}{{{list2|}}}{{{history|}}}{{{list1|}}}|5|1}} = {{{custom3|}}}
+
  <!--===================================================
|list{{#if:{{{geography|}}}{{{list2|}}}{{{history|}}}{{{list1|}}}|5|1}}style = {{{list3style|}}}
+
              POLITICS / Government / Military
|list{{#if:{{{geography|}}}{{{list2|}}}{{{history|}}}{{{list1|}}}|5|1}} = {{{list3|}}}
+
    ===================================================-->
 
+
</noinclude>
 
+
|group6 = {{#if:{{{politics_link|}}} |[[{{{politics_link}}}|Politics]]
  <!--===================================================--
 
      Politics
 
          (Government)
 
          (Military)
 
  ---===================================================-->
 
 
 
|group{{#if:{{{list3|}}}{{{geography|}}}{{{list2|}}}{{{history|}}}{{{list1|}}}|6|1}} = <!---(not displayed unless politics and/or government and/or military provided)--->
 
    {{#if:{{{politics_link|}}} |[[{{{politics_link}}}|Politics]]
 
 
       | {{#ifexist:Politics of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}
 
       | {{#ifexist:Politics of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}
 
         | [[Politics of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}|Politics]]
 
         | [[Politics of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}|Politics]]
Line 115: Line 78:
 
         }}
 
         }}
 
     }}
 
     }}
 
+
|list6 = {{#if:{{{politics|}}}{{{governance|}}}{{{government|}}}{{{military|}}}
|list{{#if:{{{list3|}}}{{{geography|}}}{{{list2|}}}{{{history|}}}{{{list1|}}}|6|1}} =
+
     | {{Navbox|child
    {{#if:{{{politics|}}}{{{government|}}}{{{military|}}}
 
     | {{Navbox |child
 
 
         |basestyle = {{{basestyle|}}}
 
         |basestyle = {{{basestyle|}}}
 
         |groupstyle = padding-left:0.5em;padding-right:0.5em;font-weight:normal;{{{subgroupstyle|}}}
 
         |groupstyle = padding-left:0.5em;padding-right:0.5em;font-weight:normal;{{{subgroupstyle|}}}
 
         |list1 = {{{politics|}}}
 
         |list1 = {{{politics|}}}
         |group2 = <!--(only shown if government provided)-->
+
         |group2 = <!--(only shown if governance provided)-->
 +
            {{#if:{{{governance_link|}}}|[[{{{governance_link}}}|Governance]]|
 +
            {{#ifexist:Governance of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}
 +
            | [[Governance of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}|Governance]]
 +
            | Governance
 +
            }} }}
 +
        |list2 = {{{governance|}}}
 +
        |group3 = <!--(only shown if government provided)-->
 +
            {{#if:{{{government_link|}}}|[[{{{government_link}}}|Government]]|
 
             {{#ifexist:Government of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}
 
             {{#ifexist:Government of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}
 
             | [[Government of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}|Government]]
 
             | [[Government of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}|Government]]
 
             | Government
 
             | Government
             }}
+
             }} }}
         |list2 = {{{government|}}}
+
         |list3 = {{{government|}}}
         |group3 = <!--(only shown if military provided)-->
+
         |group4 = <!--(only shown if military provided)-->
 +
            {{#if:{{{military_link|}}}|[[{{{military_link}}}|Military]]|
 
             {{#ifexist:Military of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}
 
             {{#ifexist:Military of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}
 
             | [[Military of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}|Military]]
 
             | [[Military of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}|Military]]
 
             | Military
 
             | Military
             }}
+
             }} }}
         |list3 = {{{military|}}}
+
         |list4 = {{{military|}}}
 
       }}
 
       }}
 
     }}
 
     }}
  
 
<!------ Optional custom group 4 ------->
 
|group7style = {{{custom4style|}}}
 
 
|group7 = {{{custom4|}}}
 
|group7 = {{{custom4|}}}
|list7style = {{{list4style|}}}
 
 
|list7 = {{{list4|}}}
 
|list7 = {{{list4|}}}
 
+
<noinclude>
 
+
  <!--===================================================
  <!--===================================================--
+
            ECONOMY / Infrastructure / Transport
      ECONOMY
+
    ===================================================-->
          (Infrastructure)
+
</noinclude>
          (Transport)
+
|group8 = {{#ifexist:Economy of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}
  ---===================================================-->
 
 
 
|group8 = <!---(not displayed unless economy, infrastructure and/or transport provided)--->
 
    {{#ifexist:Economy of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}
 
 
       | [[Economy of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}|Economy]]
 
       | [[Economy of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}|Economy]]
 
       | Economy
 
       | Economy
 
     }}
 
     }}
 
+
|list8 = {{#if:{{{economy|}}}{{{infrastructure|}}}{{{transport|}}}
|list8 =
+
     | {{Navbox|child
    {{#if:{{{economy|}}}{{{infrastructure|}}}{{{transport|}}}
 
     | {{Navbox |child
 
 
         |basestyle = {{{basestyle|}}}
 
         |basestyle = {{{basestyle|}}}
 
         |groupstyle = padding-left:0.5em;padding-right:0.5em;font-weight:normal;{{{subgroupstyle|}}}
 
         |groupstyle = padding-left:0.5em;padding-right:0.5em;font-weight:normal;{{{subgroupstyle|}}}
        |evenodd = swap <!--(for sake of accessibility, assume this group immediately preceded by governance group, so amend its background/s accordingly)-->
 
 
         |list1 = {{{economy|}}}
 
         |list1 = {{{economy|}}}
 
         |group2 = <!--(Only shown if infrastructure provided)-->
 
         |group2 = <!--(Only shown if infrastructure provided)-->
Line 179: Line 138:
 
     }}
 
     }}
  
 
<!------ Optional custom group 5 ------->
 
|group9style = {{{custom5style|}}}
 
 
|group9 = {{{custom5|}}}
 
|group9 = {{{custom5|}}}
|list9style = {{{list5style|}}}
 
 
|list9 = {{{list5|}}}
 
|list9 = {{{list5|}}}
 
+
<noinclude>
 
+
  <!--===================================================
  <!--===================================================--
+
     SOCIETY/CULTURE / Demographics / Religion / Symbols
      CULTURE            or     SOCIETY
+
    ===================================================-->
          (Demographics)              (Culture)
+
</noinclude>
          (Religion)                  (Demographics)
 
          (Symbols)                  (Religion)
 
                                      (Symbols)
 
  ---===================================================-->
 
 
 
 
|group10 =
 
|group10 =
 
     <!----If society provided, groupname is "Society":---->
 
     <!----If society provided, groupname is "Society":---->
Line 216: Line 166:
 
       }}
 
       }}
 
     }}
 
     }}
 
+
|list10 = {{#if:{{{society|}}}{{{culture|}}}{{{demographics|}}}{{{religion|}}}{{{symbols|}}}|
|list10 =
+
     {{Navbox|child
     {{Navbox |child
 
 
     |basestyle = {{{basestyle|}}}
 
     |basestyle = {{{basestyle|}}}
 
     |groupstyle = padding-left:0.5em;padding-right:0.5em;font-weight:normal;{{{subgroupstyle|}}}
 
     |groupstyle = padding-left:0.5em;padding-right:0.5em;font-weight:normal;{{{subgroupstyle|}}}
Line 254: Line 203:
 
         }}
 
         }}
 
     |list5 = {{{symbols|}}}
 
     |list5 = {{{symbols|}}}
     }}
+
     }} }}
  
 
<!------ Optional custom group 6 ------->
 
|group11style = {{{custom6style|}}}
 
 
|group11 = {{{custom6|}}}
 
|group11 = {{{custom6|}}}
|list11style = {{{list6style|}}}
 
 
|list11 = {{{list6|}}}
 
|list11 = {{{list6|}}}
  
 
<!------ Optional custom group 7 ------->
 
|group12style = {{{custom7style|}}}
 
 
|group12 = {{{custom7|}}}
 
|group12 = {{{custom7|}}}
|list12style = {{{list7style|}}}
 
 
|list12 = {{{list7|}}}
 
|list12 = {{{list7|}}}
  
 
<!------ Optional custom group 8 ------->
 
|group13style = {{{custom8style|}}}
 
 
|group13 = {{{custom8|}}}
 
|group13 = {{{custom8|}}}
|list13style = {{{list8style|}}}
 
 
|list13 = {{{list8|}}}
 
|list13 = {{{list8|}}}
 
+
<noinclude>
 
+
  <!--===================================================
 
+
                      "below" line/s
  <!-------------------------------------------------------
+
    ===================================================-->
  "below" section  Outline, Index, Bibliography then
+
</noinclude>
                    Book, Category, Commons, Portal,
+
|belowstyle = {{#if:{{{below|}}} ||font-weight:bold;}} {{{belowstyle|}}}
                    WikiProject links (if available /
+
|below =  
                    provided (Commons) / not suppressed)
+
      {{#if:{{{_nobelow|}}} |<!--then this section omitted, else:-->
  -------------------------------------------------------->
+
      | {{#if:{{{below|}}} |<!--then use-->{{{below}}}<!--line, else:-->
|belowstyle = {{{belowstyle|}}}
+
          | <!-------------------------------------
|below =
+
              Outline, Index, Bibliography links
    {{#if:{{{_nobelow|}}} |<!--then omit "below" line, else:-->
+
              -------------------------------------
 
+
  -->{{bulleted list|style=margin-bottom:-0.4em;
    | {{#if:{{{below|}}} |<!--then use-->{{{below}}}<!--line provided, else:-->
+
|1= {{#ifexist:Outline of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}
 
+
  | {{nobold|[[Outline of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}|Outline]]}}
        | {{Navbox |child |bodyclass=hlist |bodystyle=background:transparent;line-height:1.2em;
+
}}
          |list1 = <!--
+
|2= {{#ifexist:Index of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}-related articles
            --------------------------------------
+
  | {{nobold|[[Index of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}-related articles|Index]]}}
            Outline, Index, Bibliography links
+
  | <!---else to capture instances where place is or can be "the [placename]" but its adjective is
            --------------------------------------
+
          "[placename]-related", i.e. with no "the" prefix:
            -->{{#ifexist:Outline of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}
+
          -->{{#ifexist:Index of {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}-related articles
                |* [[Outline of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}|Outline]]
+
              | {{nobold|[[Index of {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}-related articles|Index]]}}
              }}<!--
+
              }}
            -->{{#ifexist:Index of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}-related articles
 
                |* [[Index of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}-related articles|Index]]
 
                <!----To capture instances where place is or can be "the [placename]"
 
                      but adjective is "[placename]-related", i.e. with no "the" prefix:---->
 
                | {{#ifexist:Index of {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}-related articles
 
                  |* [[Index of {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}-related articles|Index]]
 
                  }}
 
              }}<!--
 
            -->{{#ifexist:Bibliography of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}
 
                |* [[Bibliography of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}|Bibliography]]
 
              }}
 
          |list2style = background:transparent;font-weight:bold;
 
          |list2 = <!--
 
            ----------------------------------------------
 
            Book, Category, Commons, Portal, WikiProject
 
            ----------------------------------------------
 
            -->{{#ifexist:Book:{{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}
 
                |* <!--{{icon|Book}}--> [[Book:{{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}|Book]]
 
              }}<!--
 
            -->{{#ifexist:Category:{{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}
 
                |* <!--{{icon|Category}}--> [[:Category:{{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}|Category]]
 
              }}<!--
 
            -->{{#ifeq:{{{_commonslink|}}}|yes
 
                |* <!--[[File:Commons-logo.svg|15x15px|alt=|link=]]--> [[commons:Category:{{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}|Commons]]
 
              }}<!--
 
            -->{{#ifexist:Portal:{{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}
 
                |* <!--{{icon|Portal}}--> [[Portal:{{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}|Portal]]
 
              }}<!--
 
            -->{{#ifexist:Wikipedia:WikiProject {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}
 
                |* <!--{{icon|WikiProject}}--> [[Wikipedia:WikiProject {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}|WikiProject]]
 
              }}
 
      <!-- |list3 = <!--
 
            -----------------------
 
            addtobelow (optional)
 
            -----------------------
 
            -->{{#if:{{{addtobelow|}}} |{{{addtobelow}}} }}
 
          }}<!--
 
 
 
    -->}}<!--(end #if:{{{below|}}})
 
 
 
-->}}<!--(end #if:{{{_nobelow|}}})-->
 
 
 
 
 
 
}}
 
}}
 +
|3= {{#ifexist:Bibliography of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}
 +
  | {{nobold|[[Bibliography of {{{prefix|}}} {{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}|Bibliography]]}}
 +
}}<!--
 +
  -->}}<!----------------------------------------------
 +
              Book, Category, Portal
 +
              ----------------------------------------------
 +
  -->
 +
{{#ifexist:Book:{{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}
 +
  |*  <!--{{icon|Book}}--> [[Book:{{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}|Book]]
 +
}}{{#ifexist:Category:{{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}
 +
  |* <!--{{icon|Category}}--> [[:Category:{{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}|Category]]
 +
}}{{#ifeq: {{yesno-no|{{{noportal|}}}}}|no|<!--
 +
    "noportal" has not been specified
 +
  -->{{#ifexist:Portal:{{{country|{{{territory|{{{region|{{{titlename|}}}}}}}}}}}}<!--
 +
          -->|* <!--{{icon|Portal}}--> [[Portal:{{{country|{{{territory|{{{region|{{{titlename}}}}}}}}}}}}|Portal]]<!--
 +
    -->}}<!--(end #ifexist:Portal)
 +
-->}}<!-- (end #ifeq: {{yesno-no|{{{noportal}}}}})
 +
-->{{#if:{{{addtobelow|}}} |{{{addtobelow}}} }}<!--
 +
      -->}}<!--(end #if:below)
 +
  -->}}<!--(end #if:_nobelow)
 +
-->}}{{#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using country topics with unknown parameters|_VALUE_{{PAGENAME}}]]|preview={{main other||Page using [[Template:Country topics]] with unknown parameter "_VALUE_"}}
 +
| template_name | country | territory | region | titlename | titleclass | state | 1 | border | basestyle | _notopicsword | prefix | imagestyle | image | abovestyle | above | addtoabove
 +
| custom1 | list1 | custom2 | list2 | custom3 | list3 | custom4 | list4 | custom5 | list5 | custom6 | list6 | custom7 | list7 | custom8 | list8
 +
| history | geography | subdivisions | subgroupstyle | subdivisions_link | politics_link | politics | governance_link | governance | government |government_link | military_link | military | economy | infrastructure | transport
 +
| society | society_link | adjective | culture | demographics | religion | symbols | symbols_link | below | belowstyle | _nobelow | addtobelow 
 +
}}<noinclude>
 +
{{documentation}}
 +
</noinclude>

Latest revision as of 15:21, 21 July 2019

* noportal=////
Template documentation[view] [edit] [history] [purge]

Usage

Use this template to create a "Name topics" template for the country / territory / region called Name.

To see how, it's probably easiest to look at one or more of the templates in one of the subcategories of Category:Country and territory topics templatesTemplate:Spaced ndash for instance, {{Antigua and Barbuda topics}} in Category:Caribbean country and territory topics templates.

Syntax

Below is a basic syntax. If the area involved isn't a country, the template's name and first parameter should be renamed accordingly, i.e. to  {{Territory topics  followed by |territory = Name;  otherwise,  {{Region topics  followed by |region = Name .

{{Country topics
|country = <!--Country's name (the title of the Wikipedia article on that country)-->
|adjective = <!--demonym-->

|history = <!--Usually chronological:-->
* [[(first history link)]]
* [[(second history link)]]
* [[(third history link)]]
<!--(etc.)-->

|geography = <!--Usually alphabetical:-->
* [[(first geography link)]]
* [[(second geography link)]]
* [[(third geography link)]]
<!--(etc.)-->

|politics = <!--Usually alphabetical:-->
* [[(first politics link)]]
* [[(second politics link)]]
* [[(third politics link)]]
<!--(etc.)-->

|economy = <!--Usually alphabetical:-->
* [[(first economy link)]]
* [[(second economy link)]]
* [[(third economy link)]]
<!--(etc.)-->

|culture = <!--Usually alphabetical:-->
* [[(first culture link)]]
* [[(second culture link)]]
* [[(third culture link)]]
<!--(etc.)-->
}}
With added fields
{{Country topics
|country =
|state =
|border =
|basestyle =
|titlename =
|titleclass =
|_notopicsword =
|prefix =
|image =
|imagestyle =

|above =
|abovestyle =
|custom1 =
|list1 =

|history =
|custom2 =
|list2 =

|geography =
|subdivisions =
|subdivisions_link =
|custom3 =
|list3 =

|politics =
|politics_link =
|governance =
|governance_link =
|government =
|government_link =
|military =
|military_link =
|custom4 =
|list4 =

|economy =
|infrastructure =
|transport =
|custom5 =
|list5 =

|society =
|society_link =
|adjective =
|culture =
|demographics =
|religion =
|symbols =
|symbols_link =
|custom6 =
|list6 =
|custom7 =
|list7 =
|custom8 =
|list8 =

|below =
|belowstyle =
|_nobelow =
|addtobelow =
}}

It's possible to add, remove or amend various features of the template (e.g. suppress the appearance of a flag in the titlebar). What and how is described in the rest of the documentation.

Because this is a metatemplate for templates in categories such as Category:Country and territory topics templates, it provides the layout that appears to have evolved for the majority of these templates:

  • A titlebar featuring a flag icon followed by a country or area's name followed by the word "topics";
  • Five fundamental topic areas: History, Geography, Politics, Economy, Culture;
  • A line below the template's main body (the "below" line) that carries a link or links to a Wikipedia category, index article, outline article, or portal.

Although standardized, much of the above can be customized via the template's parameters.

Parameters

Most common parameters shown in bold italics.

Order of
appearance
in template
code
Parameter name Description and example/s
1 template_name Occasionally, the template's name won't necessarily match its title, e.g. the name "Burma (Myanmar) topics" for a template whose title is "Burma topics". In these cases, use template_name to ensure the "v•t•e" links on the lefthand side of the template's titlebar operate correctly.
 |template_name = Burma (Myanmar) topics
(|country = Burma)
2 country
territory

region
Required

Use one of these to identify the place to which the topics refer.

|country = Belgium
|territory = Anhui
|region = Caribbean
3 [unnamed]
state
Use when calling the template to set its initial state (expanded, collapsed, autocollapse).
{{Belgium topics |expanded}}
{{Anhui topics |state=collapsed}}
4 (basestyle) Use to set a non-standard basestyle (a non-standard colo/ur schemeTemplate:Spaced ndashsee {{Navbox}}Template:Spaced ndashso use sparingly, if at all!)
5 _notitleflag Set to anything (usually "yes") to suppress the appearance of a flag icon in the titlebar.
6 flagname Use to provide the name of the place's flag if it doesn't match the default "Flag of Name". This is usually due to prefixes/suffixes in the place's name such as "T/the" ("the Bahamas", "The Gambia", etc.).
|flagname = Flag of the Bahamas
7 prefix If the place's name is (sometimes) prefixed by a word such as "the" (e.g. "...of the British Virgin Islands"), set prefix to this word.
|prefix = the
8 flagsize
flagvariant
Use to alter the size or variant of the flag icon from the default settings (see {{flagicon}}).
9 titlename Provided for those occasions where a place carries disambiguation within Wikipedia (e.g. "Galicia (Spain)") but that disambiguation not desired in the template's title.
|region = Galicia (Spain)
|titlename = Galicia
10 _notopicsword Set to anything (usually "yes") to suppress the appearance of the word "topics" in the titlebar.
11 imagestyle Optional further CSS styling for image (if used).
12 image To include an image on the righthand side of template (usually the place's coat of arms). Use Wikipedia's standard syntax, e.g.
[[File:Image's filename.svg|120px|alt=This is a brief description of the image|link=Name of article to which image links]]
13 abovestyle Optional further CSS styling for the template's "above" line (between the template's titlebar and main body).
14 above To add an "above" line (as with a standard Navbox).
|above = Capital: [[Hefei]]
15 history For a list or listsa of links addressing the place's history. See where this template occurs in Wikipedia for examples.
16 custom1
list1
For a custom-named (custom1) list (list1) after the list of history topics (if provided) and before anything else.
17 geography
(subdivisions
(subdivisions_link))
For a list or listsa of links addressing the place's geography. See where this template occurs in Wikipedia for examples.
subdivisions can be used for a separate list of topics about the place's administrative divisions. If, for the name "Subdivisions" preceding this list, the link "Administrative divisions of [Place]" doesn't exist or an alternative is desired, it can be given using subdivisions_link.
|subdivisions_link = Bhutan#Administrative divisions
18 custom2
list2
For a custom-named (custom2) list (list2) after the list of geography (and/or subdivision) topics (if provided) and before anything else.
19 politics
(politics_link)
(government
military)
For a list or listsa of links addressing the place's politics (government, military, etc.). See where this template occurs in Wikipedia for examples.
As links named "Politics of [Place]" don't tend to exist, politics_link can be used to provide a link for the name "Politics" that precedes the list.
|politics_link = Politics of Afghanistan

government and military are provided if a separate list or lists of topics about the place's government and/or military (armed forces) are desired.

20 custom3
list3
For a custom-named (custom3) list (list3) after the list of politics (and/or government/military) topics (if provided) and before anything else.
21 economy
(infrastructure
transport)
For a list or listsa of links addressing the place's economy. See where this template occurs in Wikipedia for examples.
infrastructure and transport are provided if separate lists of topics about the place's infrastructure and/or transport are desired.
22 custom4
list4
For a custom-named (custom4) list (list4) after the list of economy (and/or infrastructure) topics (if provided) and before anything else.
23 culture
(society
(adjective,
society_link)
demographics
religion
symbols
(symbols_link))
For a list or listsa of links addressing the place's culture. See where this template occurs in Wikipedia for examples.
society, demographics, religion and symbols are provided if a separate list or lists of topics about the place's social structure, demographics, religion and/or symbols are desired.
If society is used, then, if the place has a society category at Wikipedia that's named using a preceding adjective (e.g. "Category:Italian society"), adjective can be used to link the group's name "Society" to that category.
|adjective = Italian     (producing the link [[Category:Italian society|Society]])

Alternatively, society_link can be used to generate a relevant link, e.g.

|society_link = Social history of England     (producing the link [[Social history of England|Society]])

Similarly, if symbols is used and the template is unable to link its group name "Symbols"Template:Spaced ndashor, if it can but an alternative link is desiredTemplate:Spaced ndashthen symbols_link can be used to generate a link.

|symbols_link = Symbols of the United Kingdom, the Channel Islands and the Isle of Man#Bailiwick of Guernsey
24 custom5
list5
For a custom-named (custom5) list (list5) after the list of culture/society/etc. topics (if provided) and before anything else.
25 custom6
list6
For a custom-named (custom6) list (list6) after custom list5 (if provided) and before custom list7 (if provided) or the template's "below" line (if not suppressed).
26 custom7
list7
For a custom-named (custom7) list (list7) after custom list6 (if provided) and before the template's "below" line (if not suppressed).
27 belowstyle Optional further CSS styling for the template's "below" line (below the template's main body).
a Using e.g. {{Navbox |child |groupstyle=padding-left:0.5em;padding-right:0.5em;font-weight:normal; ...}}.

Tracking category