සැකිල්ල:Province-level divisions of China/ලේඛය

විකිපීඩියා වෙතින්
Jump to navigation Jump to search


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[සංස්කරණය]