Difference between revisions of "Template:India census population"

From blackwiki
Jump to navigation Jump to search
imported>Waterbuck
(why should this be pink?)
imported>TonyTheTiger
(adding {{collapsible option}} and/or {{{state}}})
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 +
{{collapsible option}}
 
{{intricate template}}
 
{{intricate template}}
 
'''{{tld|India census population}}''' is used as an information box on pages, showing each census year with a population, and a percent gain/loss comparison. See [[Pilibhit]] or [[Delhi#Demographics|Delhi]] as an example of how this template is rendered.
 
'''{{tld|India census population}}''' is used as an information box on pages, showing each census year with a population, and a percent gain/loss comparison. See [[Pilibhit]] or [[Delhi#Demographics|Delhi]] as an example of how this template is rendered.

Revision as of 19:27, 25 February 2013

Initial visibility: currently defaults to autocollapse

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

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

{{India census population}} is used as an information box on pages, showing each census year with a population, and a percent gain/loss comparison. See Pilibhit or Delhi as an example of how this template is rendered.

The template is rendered in a collapsed state, by default. To display the template in an expanded state, include the argument |state= (without any values).

{{India census population
| title = 
| state = 
| align = 
| 1791 = 
| 1801 =	
| 1811 =	
| 1821 =	
| 1831 =	
| 1841 =	
| 1851 =	
| 1861 =	
| 1871 =	
| 1881 =	
| 1891 =	
| 1901 =	
| 1911 =	
| 1921 =	
| 1931 =	
| 1941 =	
| 1951 =	
| 1961 =	
| 1971 =	
| 1981 =	
| 1991 =	
| 2001 =	
| estimate = 
| estyear = 
| estref = 
| footnote = 
}}