Difference between revisions of "Template:India census population"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
(mixed html + wikicode -> html)
imported>Frietjes
(float)
Line 37: Line 37:
 
| footnote=
 
| footnote=
 
}}</pre>
 
}}</pre>
</noinclude><table class="toccolours collapsible {{{state|collapsed}}}" align="{{{align|right}}}" cellpadding="1" cellspacing="0" style="margin:0 0 1em 1em; clear:right; text-align:right">
+
</noinclude><table class="infobox collapsible {{{state|collapsed}}}" cellpadding="1" cellspacing="0" style="{{#switch:{{{align|right}}}
 +
|left=float: left; margin-left: 0; margin-right: 1em;
 +
|right=float: right;
 +
|center=float: none; margin-left: auto; margin-right: auto;
 +
|none=float: none;
 +
}} text-align:right">
 
<tr>
 
<tr>
 
<th colspan="4" style="background-color:#ffccaa; padding-right:3px; padding-left:3px; text-align:center; font-size: 110%;">{{{title|[[Demographics of India]]}}}&nbsp;</th></tr>
 
<th colspan="4" style="background-color:#ffccaa; padding-right:3px; padding-left:3px; text-align:center; font-size: 110%;">{{{title|[[Demographics of India]]}}}&nbsp;</th></tr>

Revision as of 16:07, 28 March 2011

Template:IndiaCensusPop 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).

{{IndiaCensusPop
| 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=
}}