Template:Infobox Indian jurisdiction/sandbox

{{#if:{{{division|}}}| {{!}} {{!}} }}}|Division {{!}} {{!}} {{#ifexist:{{{division}}} division|{{{division}}} division{{!}} {{{division}}}|{{Auto link|{{{division}}}}}}} }} {{#if:{{{district|}}}| {{!}} {{!}} District(s) {{!}} {{!}} {{#ifexist:{{{district}}} district|{{{district}}} district{{!}} {{{district}}}|{{Auto link|{{{district}}}}}}} }} {{#if:{{{districts|}}}| {{!}} {{!}} District(s) {{!}} {{!}} {{{districts|}}} }} {{#if:{{{taluk_names|}}}| {{!}} {{!}} Subdistrict(s) {{!}} {{!}} {{Auto link|{{{taluk_names}}}}} }} {{#if:{{{established_date|}}}| {{!}} {{!}} {{{established_title|{{IIJ/P|CT|established_date|{{{type|}}}}}}}} {{!}} {{!}} {{{established_date|}}} }} {{#if:{{{capital|}}}| {{!}} {{!}} Capital {{!}} {{!}} {{Auto link|{{{capital|}}}}} {{#if:{{{hq|}}}| {{!}} {{!}} Headquarters {{!}} {{!}} {{Auto link|{{{hq|}}}}} }} {{#if:{{{largest_city|}}}| {{!}} {{!}} Largest city {{!}} {{!}} {{Auto link|{{{largest_city|}}}}} }} {{#if:{{{largest_metro|}}}| {{!}} {{!}} Largest metro {{!}} {{!}} {{Auto link|{{{largest_metro|}}}}} }} {{#if:{{{nearest_city|}}}| {{!}} {{!}} Nearest city {{!}} {{!}} {{Auto link|{{{nearest_city|}}}}} }} {{#if:{{{leader_title_1|{{{leader_title|}}}}}}| {{!}} {{!}} {{{leader_title_1|{{{leader_title|}}}}}} {{!}} {{!}} {{Auto link|{{{leader_name_1|{{{leader_name|}}}}}}}} }} {{#if:{{{leader_title_2|}}}| {{!}} {{!}} {{{leader_title_2|}}} {{!}} {{!}} {{Auto link|{{{leader_name_2|}}}}} {{#if:{{{leader_title_3|}}}| {{!}} {{!}} {{{leader_title_3|}}} {{!}} {{!}} {{Auto link|{{{leader_name_3|}}}}} {{#if:{{{legislature_type|}}}| {{!}} {{!}} }}}|Legislature (seats) {{!}} {{!}} {{Auto link|{{{legislature_type|}}}}} ({{{legislature_strength|}}}) }} {{#if:{{{parliament_const|}}}| {{!}} {{!}} Parliamentary constituency {{!}} {{!}} {{Auto link|{{{parliament_const|}}} (Lok Sabha constituency)|{{{parliament_const|}}}}} {{#if:{{{assembly_const|}}}| {{!}} {{!}} Assembly constituency {{!}} {{!}} {{{assembly_const|}}} {{#if:{{{planning_agency|}}}| {{!}} {{!}} Planning Agency {{!}} {{!}} {{Auto link|{{{planning_agency|{{IIJ/P|CT|planning_agency_name|{{{metro|}}}}}}}}}} {{#if:{{{civic_agency|}}}| {{!}} {{!}} Civic agency {{!}} {{!}} {{Auto link|{{{civic_agency}}}}} {{#if:{{{corp_zone|}}}| {{!}} {{!}} Chennai}}} Corporation wards|Zone {{!}} {{!}} {{{corp_zone|}}} {{#if:{{{corp_ward|}}}| {{!}} {{!}} Chennai}}} Corporation wards|Ward {{!}} {{!}} {{Auto link|{{{corp_ward|}}}}} {{#if:{{{jurisdiction_title_1|}}}| {{!}} {{!}} {{{jurisdiction_title_1|}}} {{!}} {{!}} {{Auto link|{{{jurisdiction_name_1|}}}}} {{#if:{{{jurisdiction_title_2|}}}| {{!}} {{!}} {{{jurisdiction_title_2|}}} {{!}} {{!}} {{Auto link|{{{jurisdiction_name_2|}}}}} {{#if:{{{jurisdiction_title_3|}}}| {{!}} {{!}} {{{jurisdiction_title_3|}}} {{!}} {{!}} {{Auto link|{{{jurisdiction_name_3|}}}}} {{#ifexpr: {{#expr: {{#if:{{{population_total|}}}|1|0}} + {{#if:{{{population_density|}}}|1|0}} + {{#if:{{{population_metro|}}}|1|0}} }} > 0| {{!}} {{!}} Population{{#ifexpr: {{#if:{{{population_density|}}}|1|0}} + ({{#if:{{{population_total|}}}|1|0}} * {{#if:{{{area_total|}}}|1|0}}) |
 * - class=mergedrow
 * - class=mergedrow
 * - class=mergedrow
 * - class=mergedrow
 * - class=mergedrow
 * }}
 * - class=mergedrow
 * - class=mergedrow
 * - class=mergedrow
 * - class=mergedrow
 * - class=mergedrow
 * }}
 * - class=mergedrow
 * }}
 * - class=mergedrow
 * - class=mergedrow
 * }}
 * - class=mergedrow
 * }}
 * - class=mergedrow
 * }}
 * - class=mergedrow
 * }}
 * - class=mergedrow
 * }}
 * - class=mergedrow
 * }}
 * - class=mergedrow
 * }}
 * - class=mergedrow
 * }}
 * - class=mergedrow
 * }}
 * - style="white-space: nowrap"

• Density|}}{{#if:{{{population_metro|}}}|

• Metro|}}{{#if:{{{population_urban|}}}|

• Urban|}} {{!}} {{!}} {{#if:{{{population_total|}}}| {{formatnum:{{{population_total}}}}} |}}{{#if:{{{population_total_cite|}}}| {{{population_total_cite|}}} |}}{{#if:{{{population_rank|}}}| (CT|population_rank|{{{type|}}}}}|{{{population_rank|}}}) |}}{{#if:{{{population_as_of|}}}| ({{as of|{{{population_as_of|}}}|alt={{{population_as_of|}}}}}) |}}{{#if:{{{population_density|}}}|

• {{convert|{{{population_density|}}}|/km2|0|abbr=on}} | {{#if:{{{area_total|}}}| {{#if:{{{population_total|}}}|

• {{convert|{{#expr: {{{population_total|}}}/{{{area_total|}}} round 0 }}|/km2|0|abbr=on}} | }}| }} }}{{#if:{{{population_density_cite|}}}| {{{population_density_cite|}}} |}}{{#if:{{{population_metro|}}}|

• {{formatnum:{{{population_metro|}}}}} |}}{{#if:{{{population_metro_cite|}}}| {{{population_metro_cite|}}} |}}{{#if:{{{population_metro_rank|}}}| ({{{population_metro_rank|}}}) |}}{{#if:{{{population_metro_as_of|}}}| ({{as of|{{{population_metro_as_of|}}}|alt={{{population_metro_as_of|}}}}}) |}}{{#if:{{{population_urban|}}}|

• {{{population_urban|}}} |}} }} {{#if:{{{sex_ratio|}}}| {{!}} {{!}} Sex ratio {{!}} {{!}} {{{sex_ratio|}}} ♂/♀ }} {{#if:{{{HDI|}}}| {{!}} {{!}}HDI {{#if:{{{HDI_year|}}} |({{{HDI_year|}}}) }} {{!}} {{!}}{{{HDI}}} {{#if:{{{HDI_category|}}}|({{{HDI_category|}}}) }}{{#if:{{{HDI_rank|}}}    |({{{HDI_rank}}}) }} }} {{#if:{{{literacy|}}}| {{!}} {{!}} Literacy{{#if:{{{literacy_male|}}}|
 * - class=mergedrow
 * - class=mergedrow
 * - class=mergedrow

• Male|}}{{#if:{{{literacy_female|}}}|

• Female|}} {{!}} {{!}} {{{literacy|}}}% {{#if:{{{literacy_rank|}}}|({{{literacy_rank}}})}}{{#if:{{{literacy_male|}}}|

• {{{literacy_male|}}}%|}}{{#if:{{{literacy_female|}}}|

• {{{literacy_female|}}}%|}} }} {{#if:{{{official_languages|}}}| Official languages {{{official_languages|}}} {{#if:{{{regional_languages|}}}|  Regional languages {{{regional_languages|}}} }}}}{{#if:{{{languages|}}}| {{{languages_type|Language(s)}}} {{{languages|}}} }}{{#if:{{{ethnic_groups|}}}| Ethnic groups {{#if:{{{ethnic_groups_year|}}}|({{{ethnic_groups_year}}}) }} {{{ethnic_groups}}} }} {{!}} {{!}} Time zone {{!}} {{!}} IST (UTC+5:30) {{#ifexpr: {{#expr: {{#if:{{{area_total|}}}|1|0}} + {{#if:{{{area_metro|}}}|1|0}} + {{#if:{{{altitude|}}}|1|0}} + {{#if:{{{districts|}}}|1|0}} + {{#if:{{{coastline|}}}|1|0}} }} > 0| {{!}} {{!}} Area{{#if:{{{area_metro|}}}|
 * - class=mergedrow
 * - class=mergedrow
 * - style="white-space: nowrap"

• Metro|}}{{#if:{{{altitude|}}}|

• Elevation|}}{{#if:{{{coastline|}}}|

• Coastline|}} {{!}} {{!}} {{#if:{{{area_total|}}}| {{#ifexist:1_E+{{{area_magnitude}}}_m²| }}}_m²|{{{area_total|}}} km{{sup|2}} ({{#expr:0.386102159*{{{area_total|}}} round 0}} sq mi) | {{Convert|{{{area_total|}}}|km2|sqmi}} {{#if:{{{area_rank|}}}| (CT|area_rank|{{{type|}}}}}|{{{area_rank|}}}) |}}|}} }}{{#if:{{{area_total_cite|}}}| {{{area_total_cite|}}} |}}{{#if:{{{area_metro|}}}|

• {{Convert|{{{area_metro|}}}|km2|sqmi}} |}}{{#if:{{{area_metro_cite|}}}| {{{area_metro_cite|}}} |}}{{#if:{{{altitude|}}}|

• {{Convert|{{{altitude|}}}|m|ft}} |}}{{#if:{{{altitude_cite|}}}| {{{altitude_cite|}}} |}}{{#if:{{{coastline|}}}|

• {{Convert|{{{coastline|}}}|km|mi}} |}} }} {{#if:{{{precip|}}}{{{temp_winter|}}}{{{temp_summer|}}}| {{!}} {{!}} Climate{{#if:{{{precip|}}}|
 * - class=mergedrow style="white-space: nowrap"

• Precipitation|}}{{#if:{{{temp_annual|}}}{{{temp_winter|}}}{{{temp_summer|}}}|

Temperature|}}{{#if:{{{temp_summer|}}}|

• Summer|}}{{#if:{{{temp_winter|}}}|

• Winter|}} {{!}} {{!}} {{#if:{{{climate|}}}|{{{climate|}}} (Köppen) |}}{{#if:{{{precip|}}}|

• {{legend0|{{IIJ/P/TC{{!}} {{{precip|}}}}}|{{Convert|{{{precip|}}}|mm|in|abbr=on}}|border=1px solid gray}}|}}{{#if:{{{temp_annual|}}}{{{temp_winter|}}}{{{temp_summer|}}}|}}{{#if:{{{temp_annual|}}}|

• {{legend0|{{IIJ/P/TC{{!}} {{{temp_annual|}}}}}|{{Convert|{{{temp_annual|}}}|C|F}}|border=1px solid gray}}|

}}{{#if:{{{temp_summer|}}}|

• {{legend0|{{IIJ/P/TC{{!}} {{{temp_summer|}}}}}|{{Convert|{{{temp_summer|}}}|C|F}}|border=1px solid gray}}|}}{{#if:{{{temp_winter|}}}|

• {{legend0|{{IIJ/P/TC{{!}} {{{temp_winter|}}}}}|{{Convert|{{{temp_winter|}}}|C|F}}|border=1px solid gray}}|}} }} {{#if:{{{distance_1|}}}| {{!}} colspan=2 {{!}} {{collapsible list |state=collapsed |title=Distance(s)| {{{!}} {{!}}- {{#if:{{{distance_1|}}}| {{!}} style="width: 85px" {{!}} • From {{Auto link|{{{destination_1|}}}}} {{!}} • {{Convert|{{{distance_1}}}|km|mi}} {{{direction_1|}}} {{#if:{{{mode_1|}}}| ({{{mode_1|}}}) |}} {{!}}- {{#if:{{{distance_2|}}}| {{!}} style="width: 85px" {{!}} • From {{Auto link|{{{destination_2|}}}}} {{!}} • {{Convert|{{{distance_2}}}|km|mi}} {{{direction_2|}}} {{#if:{{{mode_2|}}}| ({{{mode_2|}}}) |}} {{!}}- {{#if:{{{distance_3|}}}| {{!}} style="width: 85px" {{!}} • From {{Auto link|{{{destination_3|}}}}} {{!}} • {{Convert|{{{distance_3}}}|km|mi}} {{{direction_3|}}} {{#if:{{{mode_3|}}}| ({{{mode_3|}}}) |}} {{!}}- {{#if:{{{distance_4|}}}| {{!}} style="width: 85px" {{!}} • From {{Auto link|{{{destination_4|}}}}} {{!}} • {{Convert|{{{distance_4}}}|km|mi}} {{{direction_4|}}} {{#if:{{{mode_4|}}}| ({{{mode_4|}}}) |}} {{!}}} }} {{#if:{{{blank_title_1|}}}| {{!}} {{!}} {{{blank_title_1|}}} {{!}} {{!}} {{Auto link|{{{blank_value_1|}}}}} {{#if:{{{blank_title_2|}}}| {{!}} {{!}} {{{blank_title_2|}}} {{!}} {{!}} {{Auto link|{{{blank_value_2|}}}}} {{#if:{{{blank_title_3|}}}| {{!}} {{!}} {{{blank_title_3|}}} {{!}} {{!}} {{Auto link|{{{blank_value_3|}}}}} {{#if:{{{blank_title_4|}}}| {{!}} {{!}} {{{blank_title_4|}}} {{!}} {{!}} {{Auto link|{{{blank_value_4|}}}}} {{#ifexpr: {{#expr: {{#if:{{{postal_code|}}}|1|0}} + {{#if:{{{area_telephone|}}}|1|0}} + {{#if:{{{vehicle_code_range|}}}|1|0}} }} > 0| {{!}} colspan=2 {{!}} {{collapsible list |state=autocollapse |title=Codes| {{{!}} {{!}}- {{#if:{{{postal_code|}}}| {{!}} style="width: 85px" {{!}} • Pincode {{!}} • {{{postal_code|}}} {{!}}- {{#if:{{{area_telephone|}}}| {{!}} style="width: 85px" {{!}} • Telephone {{!}} • +{{{area_telephone|}}} {{!}}- {{#if:{{{unlocode|}}}| {{!}} style="width: 85px" {{!}} • UN/LOCODE {{!}} • {{{unlocode|}}} {{!}}- {{#if:{{{vehicle_code_range|}}}| {{!}} style="width: 85px" {{!}} • Vehicle {{!}} • {{{vehicle_code_range|}}} {{!}}} }} {{#if:{{{abbreviation|}}}| {{!}} {{!}} ISO 3166-2 {{!}} {{!}} {{{abbreviation|}}} {{#if:{{{portal|}}}| {{!}} colspan=2 style="text-align: center" {{!}} {{icon|Portal}} Portal: }}}|{{{portal|}}} {{#if:{{{footnotes|}}}| {{!}} colspan=2 {{!}} {{collapsible list |state=collapsed |title=Footnotes| {{{footnotes|}}} }} {{#if:{{{website|}}}| {{!}} {{!}} Website {{!}} {{!}} |}}} {{{website_caption|{{{website|}}}}}} {{#if:{{{seal|}}}| {{!}} colspan=2 style="text-align: center" {{!}}   {{{seal_caption|Seal of {{{native_name|}}}}}}
 * - style="white-space: nowrap"
 * }}
 * }}
 * }}
 * }}
 * }}
 * }}
 * - class=mergedrow
 * }}
 * - class=mergedrow
 * }}
 * - class=mergedrow
 * }}
 * }}
 * }}
 * }}
 * }}
 * }}
 * }}
 * }}
 * }}
 * }}
 * }}
 * }{{#ifeq:{{NAMESPACE}}|{{NS:0}}|{{#switch:{{lc:{{{type|}}}}}
 * state|union territory|region|division|district|subdistrict|taluk|tehsil|mandal|community development block|capital|hq|metropolitan city|city|town|neighbourhood|suburb|village|nature reserve|wilderness area|national park|natural monument|wildlife sanctuary|protected landscape|protected seascape|protected resources|village and mandal=
 * default=}}}}