User:Permjak/sandbox

{{{{{|safesubst:}}}#invoke:Unsubst||date=__DATE__ |$B= {{Infobox
 * headerstyle=background:#A3EEA3;
 * datastyle=padding:0.2em; line-height:1.3em; vertical-align:middle;
 * bodyclass=geography vcard
 * bodystyle=border-right-width:2px; border-bottom-width:2px; background-color: white; width:23em; text-align:left;

{{lang|ru|{{{ru_name}}}}} (Russian) }}{{#if:{{{loc_name1|}}}| {{{loc_name1}}} {{#if:{{{loc_lang1|}}}| ({{{loc_lang1}}}) }}}}{{#if:{{{loc_name2|}}}| {{{loc_name2}}} {{#if:{{{loc_lang2|}}}| ({{{loc_lang2}}}) }}}}{{#if:{{{loc_name3|}}}| {{{loc_name3}}} {{#if:{{{loc_lang3|}}}| ({{{loc_lang3}}}) }}}}{{#if:{{{loc_name4|}}}| {{{loc_name4}}} {{#if:{{{loc_lang4|}}}| ({{{loc_lang4}}}) }}}}{{#if:{{{other_name|}}}| {{{other_name}}} {{#if:{{{other_lang|}}} | ({{{other_lang}}}) }}}}
 * header1= {{{en_name|{{PAGENAMEBASE}}}}} {{#if:{{{ru_name|}}}|

{{{map_caption|}}} }}
 * data2={{#if:{{{image_map{{#if:{{{image_map|}}}|

({{#if:{{{latd|}}}|1|0}} AND {{#if:{{{longd|}}}|1|0}})|Coordinates: {{#switch:{{#ifexpr:({{#if:{{{latd|}}}|1|0}} AND {{#if:{{{longd|}}}|1|0}})=1|D}}{{#ifexpr:({{#if:{{{latm|}}}|1|0}} AND {{#if:{{{longm|}}}|1|0}})|M}}{{#ifexpr:({{#if:{{{lats|}}}|1|0}} AND {{#if:{{{longs|}}}|1|0}})|S}}|D={{coord|{{{latd|}}}|N|{{{longd|}}}|{{{longEW|E}}}|region:RU_type:adm2nd|display=inline,title}}|DM={{coord|{{{latd|}}}|{{{latm|}}}|N|{{{longd|}}}|{{{longm|}}}|{{{longEW|E}}}|region:RU_type:adm2nd|display=inline,title}}|DMS={{coord|{{{latd|}}}|{{{latm|}}}|{{{lats|}}}|N|{{{longd|}}}|{{{longm|}}}|{{{longs|}}}|{{{longEW|E}}}|region:RU_type:adm2nd|display=inline,title}}}}}}
 * rowstyle3=mergedrow
 * data3={{#ifexpr:

{{{image_caption|}}} }}
 * data4={{#if:{{{image_view|}}}|{{{image_view}}}}}{{#if:{{{image_view|}}}|

{{#if:{{wikidata|p41|{{{image_flag|}}}}}|{{!}}style="background:#f0f0f0;font-weight:bold; text-align: center;"{{!}}{{#if:{{{flag_caption|}}}|{{{flag_caption|}}}|{{#if:{{wikidata|p163|plain=true}}|{{wikidata|p163|text=Флаг}}}}}} {{#if:{{wikidata|p94|{{{image_coa|}}}}}|{{!}}style="background:#f0f0f0;font-weight:bold; text-align: center;"{{!}}{{#if:{{{coa_caption|}}}|}}}|{{#if:{{{вместо герба|}}}|{{{вместо герба|}}}|Герб}}|{{#if:{{wikidata|p237|plain=true}}|{{wikidata|p237|text={{#if:{{{вместо герба|}}}|{{{вместо герба|}}}|Герб}}}}|Герб}}}}}} {{!}}- {{#if:{{wikidata|p41|{{{image_flag|}}}|plain=true}}|{{!}}style="vertical-align:middle"{{!}}{{wikidata|p41[1]|{{{image_flag|}}}|size={{#if:{{{ширина флага|}}}|{{{ширина флага|}}}|160x160}}px|alt={{#if:{{{вместо флага|}}}|{{{вместо флага|}}}|Флаг}}}}}} {{#if:{{wikidata|p94|{{{image_coa|}}}|plain=true}}|{{!}}style="vertical-align:middle"{{!}}{{wikidata|p94[1]|{{{image_coa|}}}|size={{#if:{{{ширина герба|}}}|{{{ширина герба|}}}|90x160}}px|alt={{#if:{{{вместо герба|}}}|{{{вместо герба|}}}|Герб}}}}}} {{!}}} }}
 * data5= {{#if:{{wikidata|p94|{{{image_coa|}}}}}{{wikidata|p41|{{{image_flag|}}}}}|{{{!}}style="background:inherit;width:100%;display:table; text-align: center;"


 * rowclass6=mergedrow
 * label6={{#if:{{{image_coa|}}}|{{#if:{{{image_flag|}}}| {{#if:{{{coa_caption|}}}|{{{coa_caption}}}|Coat of arms}} }}}}
 * data6={{#if:{{{image_coa|}}}|{{#if:{{{image_flag|}}}| {{#if:{{{flag_caption|}}}|{{{flag_caption}}}|Flag}} | {{#if:{{{coa_caption|}}}|{{{coa_caption}}}|Coat of arms}} }}|{{#if:{{{image_flag|}}}| {{#if:{{{flag_caption|}}}|{{{flag_caption}}}|Flag}} }}}}


 * label7={{#if:{{{anthem|}}}|Anthem}}
 * data7={{#if:{{{anthem|}}}|{{{anthem}}}{{#if:{{{anthem_ref|}}}|{{{anthem_ref}}}|{{citation needed|date={{{date|}}}}}}}}}
 * rowclass7={{#if:{{{anthem|}}}|mergedrow}}
 * label8={{#if:{{{holiday|}}}|Holiday}}
 * data8={{#if:{{{holiday|}}}|{{{holiday}}}{{#if:{{{holiday_ref|}}}|{{{holiday_ref}}}|{{citation needed|date={{{date|}}}}}}}}}


 * header9=Location


 * label10=Country
 * data10=Russia


 * rowclass11=mergedrow
 * label11=Federal subject
 * data11={{{federal_subject|{{red|Mandatory parameter. Please, specify}}}}}{{{federal_subject_ref|}}}


 * header12={{#ifexpr:({{#if:{{{adm_data_as_of|}}}|1|0}} OR {{#if:{{{adm_ctr_name|}}}|1|0}} OR {{#if:{{{no_of_towns_of_district_significance|}}}|1|0}} OR {{#if:{{{no_of_urban-type_settlements_of_district_significance|}}}|1|0}} OR {{#if:{{{no_of_selsoviets_type1|}}}|1|0}} OR {{#if:{{{no_of_cities_towns|}}}|1|0}} OR {{#if:{{{no_of_urban-type_settlements|}}}|1|0}} OR {{#if:{{{no_of_rural_localities|}}}|1|0}})|Administrative structure{{#if:{{{adm_data_as_of|}}}| (as of {{{adm_data_as_of}}}) }}}}


 * label13={{#ifeq:{{{type|}}}|CD|City}}
 * data13={{#ifeq:{{{type|}}}|CD|{{{city|{{{city_ref|}}}}}}}}


 * rowclass14=mergedrow
 * label14={{#if:{{{adm_ctr_name|}}}|Administrative center}}
 * data14={{#if:{{{adm_ctr_type|}}}|{{{adm_ctr_type}}} of {{{adm_ctr_name|}}}{{#if:{{{adm_ctr_name|}}}|{{{adm_ctr_ref|{{citation needed|date={{{date|}}}}}}}}}}}}

in jurisdiction}}:{{#if:{{{counts_ref|}}}|{{{counts_ref}}}|{{citation needed|date={{{date|}}}}}}}'''}}
 * rowclass15=mergedrow
 * data15={{#if:{{{no_of_towns_of_district_significance|}}}{{{no_of_urban-type_settlements_of_district_significance|}}}{{{no_of_selsoviets_type1|}}}{{{no_of_selsoviets_type2|}}}|'''Administrative divisions{{#ifeq:{{{type|}}}|CD|


 * rowclass16=mergedrow
 * label16={{#if:{{{no_of_towns_of_district_significance|}}}| {{#if:{{{town_of_district_significance_type|}}}|{{{town_of_district_significance_type}}}|Towns of district significance}} }}
 * data16={{#if:{{{no_of_towns_of_district_significance|}}}| {{{no_of_towns_of_district_significance|}}} }}


 * rowclass17=mergedrow
 * label17={{#if:{{{no_of_urban-type_settlements_of_district_significance|}}}| {{#if:{{{urban-type_settlement_of_district_significance_type|}}}|{{{urban-type_settlement_of_district_significance_type}}}|Urban-type settlements of district significance}} }}
 * data17={{#if:{{{no_of_urban-type_settlements_of_district_significance|}}}| {{{no_of_urban-type_settlements_of_district_significance|}}} }}


 * rowclass18=mergedrow
 * label18={{#if:{{{no_of_selsoviets_type1|}}}| {{#if:{{{selsoviet_type1|}}}|{{{selsoviet_type1}}}|Selsoviets}} }}
 * data18={{#if:{{{no_of_selsoviets_type1|}}}| {{{no_of_selsoviets_type1}}} }}


 * rowclass19=mergedrow
 * label19={{#if:{{{no_of_selsoviets_type2|}}}| {{{selsoviet_type2|Other rural divisions}}} }}
 * data19={{#if:{{{no_of_selsoviets_type2|}}}| {{{no_of_selsoviets_type2}}} }}

in jurisdiction}}:{{#if:{{{counts_ref|}}}|{{{counts_ref}}}|{{citation needed|date={{{date|}}}}}}}'''}}
 * rowclass20=mergedrow
 * data20={{#if:{{{no_of_cities_towns|}}}{{{no_of_urban-type_settlements|}}}{{{no_of_rural_localities|}}}|'''Inhabited localities{{#ifeq:{{{type|}}}|CD|


 * rowclass21=mergedrow
 * label21={{#if:{{{no_of_cities_towns|}}}| Cities/towns }}
 * data21={{#if:{{{no_of_cities_towns|}}}| {{{no_of_cities_towns}}} }}


 * rowclass22=mergedrow
 * label22={{#if:{{{no_of_urban-type_settlements|}}}| Urban-type settlements }}
 * data22={{#if:{{{no_of_urban-type_settlements|}}}| {{{no_of_urban-type_settlements}}} }}


 * rowclass23=mergedrow
 * label23={{#if:{{{no_of_rural_localities|}}}| Rural localities }}
 * data23={{#if:{{{no_of_rural_localities|}}}| {{{no_of_rural_localities|}}} }}


 * header24={{#ifexpr:({{#if:{{{mun_formation1|}}}|1|0}} OR {{#if:{{{mun_formation2|}}}|1|0}})|Municipal structure{{#if:{{{mun_data_as_of|}}}| (as of {{{mun_data_as_of}}}) }}}}


 * rowclass25=mergedrow
 * label25={{#if:{{{mun_formation1|}}}|Municipally incorporated as}}
 * data25={{#if:{{{mun_formation1|}}}|{{{mun_formation1}}}{{{mun_formation1_ref|{{citation needed|date={{{date|}}}}}}}}}}


 * rowclass26=mergedrow
 * data26={{#if:{{{mun_formation1_no_of_urban_settlements|}}}{{{mun_formation1_no_of_rural_settlements|}}}|Municipal divisions:{{#if:{{{mun_formation1_counts_ref|}}}|{{{mun_formation1_counts_ref}}}|{{citation needed|date={{{date|}}}}}}}}}


 * rowclass27=mergedrow
 * label27={{#if:{{{mun_formation1_no_of_urban_settlements|}}}| Urban settlements }}
 * data27={{#if:{{{mun_formation1_no_of_urban_settlements|}}}| {{{mun_formation1_no_of_urban_settlements}}} }}


 * rowclass28=mergedrow
 * label28={{#if:{{{mun_formation1_no_of_rural_settlements|}}}| Rural settlements }}
 * data28={{#if:{{{mun_formation1_no_of_rural_settlements|}}}| {{{mun_formation1_no_of_rural_settlements}}} }}


 * rowclass299=mergedrow
 * data29={{#if:{{{mun_formation1_leader_name|}}}{{{mun_formation1_representative_body|}}}|Local government:}}


 * rowclass30=mergedrow
 * label30={{#if:{{{mun_formation1_leader_name|}}}| {{{mun_formation1_leader_title|Leader}}}{{#if:{{{mun_formation1_leader_title|}}}|{{{mun_formation1_leader_title_ref|{{citation needed|date={{{date|}}}}}}}} }}}}
 * data30={{#if:{{{mun_formation1_leader_name|}}}| {{{mun_formation1_leader_name|}}}{{{mun_formation1_leader_name_ref|{{citation needed|date={{{date|}}}}}}}} }}


 * rowclass31=mergedrow
 * label31={{#if:{{{mun_formation1_representative_body|}}}| Representative body }}
 * data31={{#if:{{{mun_formation1_representative_body|}}}| {{{mun_formation1_representative_body|}}}{{{mun_formation1_representative_body_ref|{{citation needed|date={{{date|}}}}}}}} }}


 * rowclass32={{#if:{{{mun_formation2|}}}|mergedtoprow}}
 * label32={{#if:{{{mun_formation2|}}}|Also municipally incorporated as}}
 * data32={{#if:{{{mun_formation2|}}}|{{{mun_formation2}}}{{{mun_formation2_ref|{{citation needed|date={{{date|}}}}}}}}}}


 * rowclass33=mergedrow
 * data33={{#if:{{{mun_formation2_no_of_urban_settlements|}}}{{{mun_formation2_no_of_rural_settlements|}}}|Municipal divisions:{{#if:{{{mun_formation2_counts_ref|}}}|{{{mun_formation2_counts_ref}}}|{{citation needed|date={{{date|}}}}}}}}}


 * rowclass34=mergedrow
 * label34={{#if:{{{mun_formation2_no_of_urban_settlements|}}}| Urban settlements }}
 * data34={{#if:{{{mun_formation2_no_of_urban_settlements|}}}| {{{mun_formation1_no_of_urban_settlements}}} }}


 * rowclass35=mergedrow
 * label35={{#if:{{{mun_formation2_no_of_rural_settlements|}}}| Rural settlements }}
 * data35={{#if:{{{mun_formation2_no_of_rural_settlements|}}}| {{{mun_formation2_no_of_rural_settlements}}} }}


 * rowclass36=mergedrow
 * data36={{#if:{{{mun_formation2_leader_name|}}}{{{mun_formation2_representative_body|}}}|Local government:}}


 * rowclass37=mergedrow
 * label37={{#if:{{{mun_formation2_leader_name|}}}| {{{mun_formation2_leader_title|Leader}}}{{#if:{{{mun_formation2_leader_title|}}}|{{{mun_formation2_leader_title_ref|{{citation needed|date={{{date|}}}}}}}} }}}}
 * data37={{#if:{{{mun_formation2_leader_name|}}}| {{{mun_formation2_leader_name|}}}{{{mun_formation2_leader_name_ref|{{citation needed|date={{{date|}}}}}}}} }}


 * rowclass38=mergedrow
 * label38={{#if:{{{mun_formation2_representative_body|}}}| Representative body }}
 * data38={{#if:{{{mun_formation2_representative_body|}}}| {{{mun_formation2_representative_body|}}}{{{mun_formation2_representative_body_ref|{{citation needed|date={{{date|}}}}}}}} }}


 * header39=Statistics


 * label40={{#if:{{{area_km2|}}}|{{#if:{{{area_of_what|}}}|Area ({{{area_of_what}}})|Area}}}} {{#if:{{{area_as_of|}}}| ({{{area_as_of}}}) }}
 * data40={{#if:{{{area_km2|}}}|{{convert|{{FORMATNUM:{{{area_km2}}}|R}}|km2|abbr=on}}{{#if:{{{area_km2_ref|}}}|{{{area_km2_ref}}}|{{citation needed|date={{{date|}}}}}}}}}


 * rowclass41={{#if:{{{area_km2|}}}|mergedrow}}
 * label41={{#if:{{{pop_2010census|}}}|Population (2010 Census) }}
 * data41={{#if:{{{pop_2010census|}}}|{{FORMATNUM:{{{pop_2010census}}}}} inhabitants{{#if:{{{pop_2010census_ref|}}}|{{{pop_2010census_ref}}}| }}}}


 * rowclass42=mergedrow
 * label42={{#if:{{{urban_pop_2010census|}}}| • Urban }}
 * data42={{#if:{{{urban_pop_2010census|}}}| {{{urban_pop_2010census}}} }}


 * rowclass43=mergedrow
 * label43={{#if:{{{rural_pop_2010census|}}}| • Rural }}
 * data43={{#if:{{{rural_pop_2010census|}}}| {{{rural_pop_2010census}}} }}


 * rowclass44=mergedrow
 * label44={{#if:{{{pop_latest|}}}|Population{{#if:{{{pop_latest_date|}}}| ({{{pop_latest_date}}} est.) | {{as of?|date={{{date|}}}}} }}}}
 * data44={{#if:{{{pop_latest|}}}|{{FORMATNUM:{{{pop_latest}}}}} inhabitants{{#if:{{{pop_latest_ref|}}}|{{{pop_latest_ref}}}|{{citation needed|date={{{date|}}}}}}}}}


 * rowclass45=mergedrow
 * label45={{#if:{{{pop_density|}}}|Density{{#if:{{{pop_density_as_of|}}}|&ensp; ({{{pop_density_as_of}}}) }}|{{#if:{{{area_km2|}}}|{{#if:{{{pop_2010census|{{{pop_latest|}}}}}}|Density{{#if:{{{pop_density_as_of|}}}|&ensp; ({{{pop_density_as_of}}}) }}}}}}}}
 * data45={{#if:{{{pop_density|}}}|{{convert|{{{pop_density}}}|/km2|/sqmi|abbr=on}}{{#if:{{{pop_density_ref|}}}|{{{pop_density_ref}}}|{{citation needed|date={{{date|}}}}}}}|{{#if:{{{area_km2|}}}|{{#if:{{{pop_2010census|{{{pop_latest|}}}}}}|{{convert|{{#expr:{{FORMATNUM:{{{pop_2010census|{{{pop_latest}}}}}}|R}}/{{FORMATNUM:{{{area_km2}}}|R}} round 2}}|/km2|/sqmi|precision=-2|abbr=on}}{{#tag:ref|The value of density was calculated automatically by dividing the {{#if:{{{pop_2010census|}}}|2010 Census population|{{#if:{{{pop_latest_date|}}}|{{{pop_latest_date}}} population estimate|most recent population estimate}}}} by the area specified in the infobox. Please note that this value is only approximate as the area specified in the infobox does not necessarily correspond to the area of the entity proper or is reported for the same year as the population.|name="Density"}}}}}}}}


 * rowclass46=mergedrow
 * label46=Time zone
 * data46={{#if:{{{federal_subject|}}}|{{#ifexpr:({{#ifeq:{{LC:{{{federal_subject|}}}}}|sakha|1|0}} OR {{#ifeq:{{LC:{{{federal_subject|}}}}}|sakha republic|1|0}} OR {{#ifeq:{{LC:{{{federal_subject|}}}}}|sakha (yakut) republic|1|0}} OR {{#ifeq:{{LC:{{{federal_subject|}}}}}|sakha (yakut) republic|1|0}} OR {{#ifeq:{{LC:{{{federal_subject|}}}}}|sakha republic|1|0}} OR {{#ifeq:{{LC:{{{federal_subject|}}}}}|yakutia|1|0}} OR {{#ifeq:{{LC:{{{federal_subject|}}}}}|yakutia|1|0}})|{{#if:{{{en_name|}}}|{{RussiaTimeZone|{{{en_name}}}|{{{time_zone_ref|}}}}}}}|{{RussiaTimeZone|{{{federal_subject}}}|{{{time_zone_ref|}}}}}}}}}


 * label47={{#if:{{{established_date|}}}|Established}}
 * data47={{#if:{{{established_date|}}}|{{nowrap|{{{established_date|}}}}}{{#if:{{{established_date_ref|}}}|{{{established_date_ref}}}|{{citation needed|date={{{date|}}}}}}}}}


 * rowstyle48={{#if:{{{established_date|}}}|mergedrow}}
 * label48={{#if:{{{prev_name1|}}}|Previous names}}
 * data48={{#if:{{{prev_name1|}}}|{{{prev_name1}}}{{#if:{{{prev_name1_date|}}}| (until {{{prev_name1_date}}})}}{{#if:{{{prev_name2|}}}|,}}{{#if:{{{prev_name1_ref|}}}|{{{prev_name1_ref|}}}|{{citation needed|date={{{date|}}}}}}}{{#if:{{{prev_name2|}}}| {{{prev_name2}}}{{#if:{{{prev_name2_date|}}}| (until {{{prev_name2_date}}})}}{{#if:{{{prev_name3|}}}|,}}{{#if:{{{prev_name2_ref|}}}|{{{prev_name2_ref|}}}|{{citation needed|date={{{date|}}}}}}}}}{{#if:{{{prev_name3|}}}| {{{prev_name3}}}{{#if:{{{prev_name3_date|}}}| (until {{{prev_name3_date}}})}}{{#if:{{{prev_name3_ref|}}}|{{{prev_name3_ref|}}}|{{citation needed|date={{{date|}}}}}}}}}}}


 * label49={{#if:{{{abolished_date|}}}|Abolished}}
 * data49={{#if:{{{abolished_date|}}}|{{nowrap|{{{abolished_date|}}}}}{{{abolished_date_ref|{{citation needed|date={{{date|}}}}}}}}}}


 * data50={{#if:{{{website|}}}|[{{{website}}} Official website]{{{website_ref|}}}}}

}} }} {{Intricate template}} {{Documentation}}
 * data51={{#if:{{{commonscat|}}}{{#property:Commons category|}}|}}}|{{{commonscat}}}|{{#property:Commons category}}}}|{{{en_name|{{PAGENAME}}}}} on WikiCommons}}