Difference between revisions of "Template:Hainan"

From blackwiki
Jump to navigation Jump to search
imported>Cattus
(corrected link)
Line 1: Line 1:
 
{{Navbox
 
{{Navbox
|name=Hainan
+
|name = Hainan
|title= [[List of administrative divisions of Hainan|Prefecture and county level divisions]] of [[Hainan]]
+
|title = [[List of administrative divisions of Hainan|Prefecture and county level divisions]] of [[Hainan]]
|state   = {{{state|autocollapse}}}
+
|state = {{{state|autocollapse}}}
 
|listclass = hlist
 
|listclass = hlist
| above   = [[Haikou]] <small>([[List of current and former capitals of subnational entities of China|capital]])</small>
+
|above = [[Haikou]] <small>([[List of current and former capitals of subnational entities of China|capital]])</small>
| image = [[Image:China Hainan.svg|150px|right|Hainan in China]]
+
|image = [[Image:China Hainan.svg|150px|right|Hainan in China]]
  
 
|group1=[[Administrative divisions of the People's Republic of China#Prefecture level|Prefecture level]]
 
|group1=[[Administrative divisions of the People's Republic of China#Prefecture level|Prefecture level]]
 
|list1= {{Navbox subgroup
 
|list1= {{Navbox subgroup
   | style  = height:4em;
+
   |style  = height:4em;
   | groupstyle = line-height:1.2em;
+
   |groupstyle = line-height:1.2em;
   | group1 = [[Prefecture-level city|Prefecture-level<br />cities]]
+
   |group1 = [[Prefecture-level city|Prefecture-level<br />cities]]
 
    
 
    
   | list1  = {{Navbox subgroup
+
   |list1  = {{Navbox subgroup
 
       | style  = height:4em;
 
       | style  = height:4em;
 
       | groupstyle = line-height:1.2em;
 
       | groupstyle = line-height:1.2em;
Line 25: Line 25:
 
| group2 = [[Sansha]]
 
| group2 = [[Sansha]]
 
       | list2  =  
 
       | list2  =  
* [[Paracel Islands|Xisha District (Xisha Islands)]]
+
* [[Paracel Islands|Xisha District (Xisha Islands, Reefs, and Waters)]]
* [[Spratly Islands|Nansha District (Nansha Islands)]]
+
* [[Spratly Islands|Nansha District (Nansha Islands, Reefs, and Waters)]]
 
* [[Zhongsha Islands|Zhongsha District (Zhongsha Islands, Reefs, and Waters)]]
 
* [[Zhongsha Islands|Zhongsha District (Zhongsha Islands, Reefs, and Waters)]]
 
       | group3 = [[Sanya]]
 
       | group3 = [[Sanya]]
Line 36: Line 36:
 
   }}}}
 
   }}}}
  
|group4= [[Administrative divisions of the People's Republic of China#County level|County level]]<br />
+
|group4 = [[Administrative divisions of the People's Republic of China#County level|County level]]<br />
|list4= {{Navbox subgroup
+
|list4 = {{Navbox subgroup
 
   | style  = height:4em;
 
   | style  = height:4em;
 
   | groupstyle = line-height:1.2em;
 
   | groupstyle = line-height:1.2em;
Line 57: Line 57:
 
* [[Danzhou]]  
 
* [[Danzhou]]  
  
   | group3=[[Autonomous areas of China|Autonomous counties]]
+
   |group3 = [[Autonomous areas of China|Autonomous counties]]
   | list3=  
+
   |list3 =
 
* [[Baisha Li Autonomous County|Baisha]]
 
* [[Baisha Li Autonomous County|Baisha]]
 
* [[Baoting Li and Miao Autonomous County|Baoting]]
 
* [[Baoting Li and Miao Autonomous County|Baoting]]
Line 66: Line 66:
 
* [[Qiongzhong Li and Miao Autonomous County|Qiongzhong]]  
 
* [[Qiongzhong Li and Miao Autonomous County|Qiongzhong]]  
  
   | group4= '''Economic development zone'''
+
   |group4 = '''Economic development zone'''
   | list4=
+
   |list4 =
 
* [[Yangpu Economic Development Zone]]
 
* [[Yangpu Economic Development Zone]]
 
   }}
 
   }}
  
|below=See also: [[Politics of Hainan]]
+
|below = See also: [[Politics of Hainan]]
 
}}<noinclude>
 
}}<noinclude>
 +
 
{{collapsible option}}
 
{{collapsible option}}
  
 
[[Category:Hainan templates]]
 
[[Category:Hainan templates]]
 
[[Category:People's Republic of China province-level subdivision templates]]
 
[[Category:People's Republic of China province-level subdivision templates]]
 
 
</noinclude>
 
</noinclude>

Revision as of 01:23, 20 December 2014

Initial visibility: currently defaults to autocollapse

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

  • |state=collapsed: {{Hainan|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Hainan|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Hainan|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 autocollapse.