Permanently protected template

Template:Province-level divisions of China

From Wikipedia, the free encyclopedia
Jump to: navigation, search
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
Initial visibility

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

  • |state=collapsed: {{Province-level divisions of China|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Province-level divisions of China|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Province-level divisions of China|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 is not set, the template's initial visibility is taken from the |default= parameter in the template. For this template, that currently evaluates to 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