Difference between revisions of "Template:ISO 3166"

From blackwiki
Jump to navigation Jump to search
imported>Lfdder
imported>Sardanaphalus
(state handling, title and groupname formatting (including ISO 3166-3 link alignment), no unlinked text within linklists, list3 div to ensure padding,moved category etc to {{documentation}})
Line 1: Line 1:
 
{{Navbox
 
{{Navbox
| name   = ISO 3166
+
| name = ISO 3166
| title = [[ISO 3166]] <small>– codes for the names of countries and their subdivisions</small>
+
| state = {{{state|{{{1|expanded}}}}}}
| state  = {{{state|uncollapsed}}}
+
| title = [[ISO 3166]] codes for the names of countries and their subdivisions</small>
 +
| groupstyle = text-align:left;
 
| listclass = hlist
 
| listclass = hlist
  
| group1 = [[ISO 3166-1]]<br />{{nobold|country codes}}
+
| above = [[International Organization for Standardization|ISO]] codes for the names of countries and their ([[Administrative division|administrative]]) subdivisions
| list1 =
+
 
 +
| group1 = [[ISO 3166-1]]<br/>{{nobold|country codes}}
 +
| list1 =
 
* [[ISO 3166-1 alpha-2|alpha-2]]
 
* [[ISO 3166-1 alpha-2|alpha-2]]
 
* [[ISO 3166-1 alpha-3|alpha-3]]
 
* [[ISO 3166-1 alpha-3|alpha-3]]
 
* [[ISO 3166-1 numeric|numeric]]
 
* [[ISO 3166-1 numeric|numeric]]
  
| group2 = [[ISO 3166-2]]<br />{{nobold|country subdivision codes}}
+
| group2 = [[ISO 3166-2]]<br/>{{nobold|country subdivision codes}}
| list2  = {{Navbox|child
+
| list2 =
 +
  {{Navbox |child |groupstyle=font-weight:normal;
 
  | list1 =
 
  | list1 =
 
* [[ISO 3166-2:AD|AD]]
 
* [[ISO 3166-2:AD|AD]]
Line 234: Line 238:
 
* [[ISO 3166-2:TJ|TJ]]
 
* [[ISO 3166-2:TJ|TJ]]
 
* [[ISO 3166-2:TK|TK]]
 
* [[ISO 3166-2:TK|TK]]
* [[ISO 3166-2:TL|TL]] (changed from TP)
+
* [[ISO 3166-2:TL|TL]]{{sup|a}}
 
* [[ISO 3166-2:TM|TM]]
 
* [[ISO 3166-2:TM|TM]]
 
* [[ISO 3166-2:TN|TN]]
 
* [[ISO 3166-2:TN|TN]]
Line 264: Line 268:
 
* [[ISO 3166-2:ZW|ZW]]
 
* [[ISO 3166-2:ZW|ZW]]
  
| group2 = {{nobold|Deleted}}
+
  | group2 = Deleted
| list2 =
+
  | list2 =
 
* [[ISO 3166-2:AN|AN]]
 
* [[ISO 3166-2:AN|AN]]
* [[ISO 3166-2:CS|CS]] (changed from YU)
+
* [[ISO 3166-2:CS|CS]]{{sup|b}}
 
  }}
 
  }}
  
| list3 = [[ISO 3166-3]]<br />{{nobold|codes for formerly used names of countries}}
+
| list3style = background:#ddddff;text-align:left;line-height:1.1em;font-weight:bold;
| list3style = background: #ddddff; padding: 0.25em 1em; font-weight: bold; line-height: 1.5em;
+
| list3 = <div style="padding:0.15em 0.8em;">[[ISO 3166-3]]<br/>{{nobold|codes for former names of countries}}</div>
 +
 
 +
| belowclass = hlist
 +
| below =
 +
* {{sup|a}} Changed from TP
 +
* {{sup|b}} Changed from YU
 +
 
 
}}
 
}}
 
{{ISO standards}}<noinclude>
 
{{ISO standards}}<noinclude>
 +
 
{{documentation}}
 
{{documentation}}
[[Category:ISO 3166|Template:ISO 3166]]
 
[[fr:Modèle:ISO 3166]]
 
 
</noinclude>
 
</noinclude>

Revision as of 21:17, 7 April 2014

50px Template documentation[view] [edit] [history] [purge]

Initial visibility: currently defaults to expanded

To set this template's initial visibility, the |state= parameter may be used:

  • |state=collapsed: {{ISO 3166|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{ISO 3166|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{ISO 3166|state=autocollapse}}
    • shows the template collapsed to the title bar if there is a {{navbar}}, a {{sidebar}}, or some other table on the page with the collapsible attribute
    • shows the template in its expanded state if there are no other collapsible items on the page

If the |state= parameter in the template on this page is not set, the template's initial visibility is taken from the |default= parameter in the Collapsible option template. For the template on this page, that currently evaluates to expanded.

See also