Template:Province-level divisions of China/doc
Appearance
This is a documentation subpage for Template:Province-level divisions of China. It may contain usage information, categories and other content that is not part of the original template page. |
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
[edit]{{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
[edit]Mandatory
[edit]- 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
[edit]- state
- This template's initial visibility currently defaults to
autocollapse
, meaning that if there is another collapsible item on the page (a navbox, sidebar, or table with the collapsible attribute), it is hidden apart from its title bar; if not, it is fully visible.
To change this template's initial visibility, the |state=
parameter may be used:
{{Province-level divisions of China|state=collapsed}}
will show the template collapsed, i.e. hidden apart from its title bar.{{Province-level divisions of China|state=expanded}}
will show the template expanded, i.e. fully visible.
- 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
[edit]Changing the navbox title
[edit]{{Province-level divisions of China
| title = [[History of China]] by political division
| prefix = History of
}}
See also
[edit]