Template:Province-level divisions of China

From Wikipedia, the free encyclopedia
Jump to: navigation, search


Documentation icon Template documentation[view] [edit] [history] [purge]

This template allows for the quick creation of a navigational template for any group of articles which contains the names of the China Province-level divisions. It uses {{Navbox}} to create the navigation box.

Blank syntax

{{Province-level divisions of China
<!--passed through to Template:Navbox-->
| name       =
| state      = 
| title      = 
| titlestyle =
| bodystyle  = 
| groupstyle = 
<!--specific to Template:Province-level divisions of China-->
| prefix =
| suffix =
| exclude-wdc =
| exclude-ter =
| exclude-isl =
}}

Parameters

Mandatory

name
Mandatory when creating a new template.

One of the following combinations is needed to create the links:

prefix
Text to be placed before the China province-level division name.
suffix
Places text after the China province-level division name.
prefix and suffix
Places text before and after the China province-level division name.

Optional

state
How to manage this template's initial visibility

To manage this template's visibility when it first appears, add the parameter:

|state=collapsed to show the template in its collapsed state, i.e. hidden apart from its titlebar – e.g. {{Province-level divisions of China |state=collapsed}};
|state=expanded to show the template in its expanded state, i.e. fully visible – e.g. {{Province-level divisions of China |state=expanded}};
|state=autocollapse to show the template in its collapsed state but only if there is another template of the same type on the page – e.g. {{Province-level divisions of China |state=autocollapse}}.
Unless set otherwise (see the state parameter in the template's code), the template's default state is autocollapse.
title
Text that appears centered in the titlebar (the top bar). This is optional because the use of either prefix, suffix or both will automatically generate a title if the title parameter is not supplied. This parameter is not automatically wiki-linked.

Examples

Changing the navbox title

{{Province-level divisions of China
| title  = [[History of China]] by political division
| prefix = History of
}}

See also