Template:Infobox settlement: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Jonesey95
(Change span class=xxx to div to fix Linter div-span-flip error. Tested extensively in sandbox (see test case 10))
m (1,000 revisions imported)
 
(9 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{#ifeq:{{{short_description|}}}|no||{{short description|{{#invoke:Plain text|main|{{#if:{{{short_description|}}}|{{{short_description|}}}|{{#if:{{{subdivision_name|}}}|
{{Tfm/dated|page=Infobox settlement|otherpage=Infobox former subdivision|link=Wikipedia:Templates for discussion/Log/2019 February 6#Template:Infobox settlement|type=sidebar|help=off|bigbox={{#invoke:Noinclude|noinclude|text=yes}}}}<includeonly>{{#invoke:Settlement short description|main|{{{settlement_type|{{{type|}}}}}}|{{{short_description|}}}|{{{subdivision_name|}}}|{{{subdivision_name1|}}}|{{{subdivision_name2|}}}}}</includeonly>{{Infobox
{{{settlement_type|{{{type|Place}}}}}} in {{comma separated entries|{{#if:{{#invoke:String|match|{{#invoke:Plain text|main|{{{settlement_type|}}}}}|[nN]eighbo[u]?rhood|plain=false|ignore_errors=1}}|{{{subdivision_name2|}}}}}|{{{subdivision_name1|}}}|{{{subdivision_name|}}}}}|{{{settlement_type|{{{type|Place}}}}}}}}}}}}|noreplace}}}}
{{#if:{{#invoke:String|match|{{#invoke:Plain text|main|{{{settlement_type|{{{type|}}}}}}}}|{{#invoke:Plain text|main|{{{subdivision_name|}}}}}|plain=true|ignore_errors=1}}{{#if:{{{subdivision_name1|}}}|{{#invoke:String|match|{{#invoke:Plain text|main|{{{settlement_type|{{{type|}}}}}}}}|{{#invoke:Plain text|main|{{{subdivision_name1|}}}}}|plain=true|ignore_errors=1}}}}|[[Category:Infobox settlement pages with bad settlement type]]}}{{Infobox
| child = {{yesno|{{{embed|}}}}}
| child = {{yesno|{{{embed|}}}}}
| bodyclass = geography vcard
| bodyclass = geography vcard
Line 100: Line 98:
| 2 = {{#if:{{{image_seal|}}}|{{#invoke:InfoboxImage|InfoboxImage|image={{{image_seal|}}}|size={{{seal_size|}}}|sizedefault={{#if:{{both|{{{pushpin_map_narrow|}}}|{{{pushpin_map|}}}}}|85px|100px}}|alt={{{seal_alt|}}}|title=Official seal of {{#if:{{{name|}}}|{{{name}}}|{{{official_name}}}}}}}<br /><small>{{Infobox settlement/link|type={{#if:{{{seal_type|}}}|{{{seal_type}}}|Seal}}|link={{{seal_link|}}}|name={{{official_name}}}}}</small>}}
| 2 = {{#if:{{{image_seal|}}}|{{#invoke:InfoboxImage|InfoboxImage|image={{{image_seal|}}}|size={{{seal_size|}}}|sizedefault={{#if:{{both|{{{pushpin_map_narrow|}}}|{{{pushpin_map|}}}}}|85px|100px}}|alt={{{seal_alt|}}}|title=Official seal of {{#if:{{{name|}}}|{{{name}}}|{{{official_name}}}}}}}<br /><small>{{Infobox settlement/link|type={{#if:{{{seal_type|}}}|{{{seal_type}}}|Seal}}|link={{{seal_link|}}}|name={{{official_name}}}}}</small>}}
| 3 = {{#if:{{{image_shield|}}}|{{#invoke:InfoboxImage|InfoboxImage|image={{{image_shield|}}}||size={{{shield_size|}}}|sizedefault={{#if:{{both|{{{pushpin_map_narrow|}}}|{{{pushpin_map|}}}}}|85px|100px}}|alt={{{shield_alt|}}}|title=Coat of arms of {{#if:{{{name|}}}|{{{name}}}|{{{official_name}}}}}}}<br /><small>{{Infobox settlement/link|type=Coat of arms|link={{{shield_link|}}}|name={{{official_name}}}}}</small>}}
| 3 = {{#if:{{{image_shield|}}}|{{#invoke:InfoboxImage|InfoboxImage|image={{{image_shield|}}}||size={{{shield_size|}}}|sizedefault={{#if:{{both|{{{pushpin_map_narrow|}}}|{{{pushpin_map|}}}}}|85px|100px}}|alt={{{shield_alt|}}}|title=Coat of arms of {{#if:{{{name|}}}|{{{name}}}|{{{official_name}}}}}}}<br /><small>{{Infobox settlement/link|type=Coat of arms|link={{{shield_link|}}}|name={{{official_name}}}}}</small>}}
| 4 = {{#if:{{{image_blank_emblem|}}}|{{#invoke:InfoboxImage|InfoboxImage|image={{{image_blank_emblem|}}}|size={{{blank_emblem_size|}}}|sizedefault={{#if:{{both|{{{pushpin_map_narrow|}}}|{{{pushpin_map|}}}}}|85px|100px}}|alt={{{blank_emblem_alt|}}}|title=Official logo of {{#if:{{{name|}}}|{{{name}}}|{{{official_name}}}}}}}<br /><small>{{Infobox settlement/link|type={{#if:{{{blank_emblem_type|}}}|{{{blank_emblem_type}}}|Logo}}|link={{{blank_emblem_link|}}}|name={{{official_name}}}}}</small>}}
| 4 = {{#if:{{{image_blank_emblem|}}}|{{#invoke:InfoboxImage|InfoboxImage|image={{{image_blank_emblem|}}}|size={{{blank_emblem_size|}}}|sizedefault={{#if:{{both|{{{pushpin_map_narrow|}}}|{{{pushpin_map|}}}}}|85px|100px}}|alt={{{blank_emblem_alt|}}}|title=Official logo of {{#if:{{{name|}}}|{{{name}}}|{{{official_name}}}}}}}<br /><small>{{Infobox settlement/link|type={{#if:{{{blank_emblem_type|}}}|{{{blank_emblem_type}}}}}|link={{{blank_emblem_link|}}}|name={{{official_name}}}}}</small>}}
| 5 = {{#if:{{{image_map|}}}|{{#invoke:InfoboxImage|InfoboxImage|image={{{image_map}}}|size={{{mapsize|}}}|sizedefault=100px|alt={{{map_alt|}}}|title={{{map_caption|Location of {{#if:{{{name|}}}|{{{name}}}|{{{official_name}}}}}}}}}}{{#if:{{{map_caption|}}}|<div style="padding:0.4em 0 0 0;">{{{map_caption}}}}}</div>}}
| 5 = {{#if:{{{image_map|}}}|{{#invoke:InfoboxImage|InfoboxImage|image={{{image_map}}}|size={{{mapsize|}}}|sizedefault=100px|alt={{{map_alt|}}}|title={{{map_caption|Location of {{#if:{{{name|}}}|{{{name}}}|{{{official_name}}}}}}}}}}{{#if:{{{map_caption|}}}|<div style="padding:0.4em 0 0 0;">{{{map_caption}}}}}</div>}}
| 0 = {{#if:{{{pushpin_map_narrow|}}}|{{#if:{{both| {{{pushpin_map|}}} | {{{coordinates|}}} }}|
| 0 = {{#if:{{{pushpin_map_narrow|}}}|{{#if:{{both| {{{pushpin_map|}}} | {{{coordinates|}}} }}|
Line 106: Line 104:
  |border = infobox
  |border = infobox
  |alt = {{{pushpin_map_alt|}}}
  |alt = {{{pushpin_map_alt|}}}
  |caption ={{#if:{{{pushpin_map_caption_notsmall|}}}|{{{pushpin_map_caption_notsmall|}}}|{{#if:{{{pushpin_map_caption|}}}|<small>{{{pushpin_map_caption}}}</small>|{{#if:{{{map_caption|}}}|<small>{{{map_caption}}}</small>}}}}}}
  |caption ={{#if:{{{pushpin_map_caption_notsmall|}}}|{{{pushpin_map_caption_notsmall|}}}|{{#if:{{{pushpin_map_caption|}}}|{{{pushpin_map_caption}}}|{{#if:{{{map_caption|}}}|{{{map_caption}}}}}}}}}
  |float = center
  |float = center
  |width = {{#if:{{{pushpin_mapsize|}}}|{{{pushpin_mapsize}}}|150}}
  |width = {{#if:{{{pushpin_mapsize|}}}|{{{pushpin_mapsize}}}|150}}
Line 127: Line 125:
<!-- ***Nickname*** -->
<!-- ***Nickname*** -->
| rowclass21 = {{#if:{{{etymology|}}}|mergedrow|mergedtoprow}}
| rowclass21 = {{#if:{{{etymology|}}}|mergedrow|mergedtoprow}}
|  data21 = {{#if:{{{nickname|}}}|Nickname(s):|{{#if:{{{nicknames|}}}|Nicknames:}}}}{{#if:{{{nickname|}}}{{{nicknames|}}}|&nbsp;<div style="display:inline" class="nickname">{{if empty|{{{nickname|}}}|{{{nicknames|}}}}}</div>}}{{#if:{{detect singular|{{{nickname|}}}}}||[[Category:Pages using infobox settlement with possible nickname list]]}}
|  data21 = {{#if:{{{nickname|}}}|Nickname(s):|{{#if:{{{nicknames|}}}|Nicknames:}}}}{{#if:{{{nickname|}}}{{{nicknames|}}}|&nbsp;<div style="display:inline" class="nickname">{{if empty|{{{nickname|}}}|{{{nicknames|}}}}}</div>}}{{#if:{{detect singular|{{{nickname|}}}}}||{{Main other|[[Category:Pages using infobox settlement with possible nickname list]]}}}}
<!-- ***Motto*** -->
<!-- ***Motto*** -->
| rowclass22 = {{#if:{{{etymology|}}}{{{nickname|}}}{{{nicknames|}}}|mergedrow|mergedtoprow}}
| rowclass22 = {{#if:{{{etymology|}}}{{{nickname|}}}{{{nicknames|}}}|mergedrow|mergedtoprow}}
|  data22 = {{#if:{{{motto|}}}|Motto(s):|{{#if:{{{mottoes|}}}|Mottoes:}}}}{{#if:{{{motto|}}}{{{mottoes|}}}|&nbsp;<div style="display:inline"  class="nickname">{{if empty|{{{motto|}}}|{{{mottoes|}}}}}</div>}}{{#if:{{detect singular|{{{motto|}}}}}||[[Category:Pages using infobox settlement with possible motto list]]}}
|  data22 = {{#if:{{{motto|}}}|Motto(s):|{{#if:{{{mottoes|}}}|Mottoes:}}}}{{#if:{{{motto|}}}{{{mottoes|}}}|&nbsp;<div style="display:inline"  class="nickname">{{if empty|{{{motto|}}}|{{{mottoes|}}}}}</div>}}{{#if:{{detect singular|{{{motto|}}}}}||{{Main other|[[Category:Pages using infobox settlement with possible motto list]]}}}}
<!-- ***Anthem*** -->
<!-- ***Anthem*** -->
| rowclass23 = {{#if:{{{etymology|}}}{{{nickname|}}}{{{nicknames|}}}{{{motto|}}}{{{mottoes|}}}|mergedrow|mergedtoprow}}
| rowclass23 = {{#if:{{{etymology|}}}{{{nickname|}}}{{{nicknames|}}}{{{motto|}}}{{{mottoes|}}}|mergedrow|mergedtoprow}}
Line 137: Line 135:
| rowclass24 = mergedtoprow
| rowclass24 = mergedtoprow
|  data24 = {{#if:{{both|{{{pushpin_map_narrow|}}}|{{{pushpin_map|}}}}}||{{#if:{{{image_map|}}}
|  data24 = {{#if:{{both|{{{pushpin_map_narrow|}}}|{{{pushpin_map|}}}}}||{{#if:{{{image_map|}}}
|{{#invoke:InfoboxImage|InfoboxImage|image={{{image_map}}}|size={{{mapsize|}}}|sizedefault=250px|alt={{{map_alt|}}}|title={{{map_caption|Location of {{#if:{{{name|}}}|{{{name}}}|{{{official_name}}}}}}}}}}{{#if:{{{map_caption|}}}|<div style="padding:0.3em 0 0 0;"><small>{{{map_caption}}}</small></div>}}
|{{#invoke:InfoboxImage|InfoboxImage|image={{{image_map}}}|size={{{mapsize|}}}|sizedefault=250px|alt={{{map_alt|}}}|title={{{map_caption|Location of {{#if:{{{name|}}}|{{{name}}}|{{{official_name}}}}}}}}}}{{#if:{{{map_caption|}}}|<div style="padding:0.3em 0 0 0;">{{{map_caption}}}</div>}}
}}}}
}}}}
| rowclass25 = mergedrow
| rowclass25 = mergedrow
|  data25 = {{#if:{{{image_map1|}}}|{{#invoke:InfoboxImage|InfoboxImage|image={{{image_map1}}}|size={{{mapsize1|}}}|sizedefault=250px|alt={{{map_alt1|}}}|title={{{map_caption1|Location of {{#if:{{{name|}}}|{{{name}}}|{{{official_name}}}}}}}}}}{{#if:{{{map_caption1|}}}|<div style="padding:0.3em 0 0 0;"><small>{{{map_caption1}}}</small></div>}} }}
|  data25 = {{#if:{{{image_map1|}}}|{{#invoke:InfoboxImage|InfoboxImage|image={{{image_map1}}}|size={{{mapsize1|}}}|sizedefault=250px|alt={{{map_alt1|}}}|title={{{map_caption1|Location of {{#if:{{{name|}}}|{{{name}}}|{{{official_name}}}}}}}}}}{{#if:{{{map_caption1|}}}|<div style="padding:0.3em 0 0 0;">{{{map_caption1}}}</div>}} }}


<!-- ***Pushpin Map*** -->
<!-- ***Pushpin Map*** -->
Line 148: Line 146:
  |border = infobox
  |border = infobox
  |alt = {{{pushpin_map_alt|}}}
  |alt = {{{pushpin_map_alt|}}}
  |caption ={{#if:{{{pushpin_map_caption_notsmall|}}}|{{{pushpin_map_caption_notsmall|}}}|{{#if:{{{pushpin_map_caption|}}}|<small>{{{pushpin_map_caption}}}</small>|{{#if:{{{map_caption|}}}|<small>{{{map_caption}}}</small>}}}}}}
  |caption ={{#if:{{{pushpin_map_caption_notsmall|}}}|{{{pushpin_map_caption_notsmall|}}}|{{#if:{{{pushpin_map_caption|}}}|{{{pushpin_map_caption}}}|{{#if:{{{map_caption|}}}|{{{map_caption}}}}}}}}}
  |float = center
  |float = center
  |width = {{{pushpin_mapsize|}}}
  |width = {{{pushpin_mapsize|}}}
Line 659: Line 657:
| rowclass95 = mergedtoprow
| rowclass95 = mergedtoprow
| label95 = {{#if:{{{population_demonym|}}}|[[Demonym|Demonym(s)]]|{{#if:{{{population_demonyms|}}}|[[Demonym]]s}}}}
| label95 = {{#if:{{{population_demonym|}}}|[[Demonym|Demonym(s)]]|{{#if:{{{population_demonyms|}}}|[[Demonym]]s}}}}
|  data95 = {{if empty|{{{population_demonym|}}}|{{{population_demonyms|}}}}}{{#if:{{detect singular|{{{population_demonym|}}}}}||[[Category:Pages using infobox settlement with possible demonym list]]}}
|  data95 = {{if empty|{{{population_demonym|}}}|{{{population_demonyms|}}}}}{{#if:{{detect singular|{{{population_demonym|}}}}}||{{Main other|[[Category:Pages using infobox settlement with possible demonym list]]}}}}


<!-- ***Demographics 1*** -->
<!-- ***Demographics 1*** -->
Line 801: Line 799:
| rowclass124 = {{#if:{{#if:{{{postal_code_type|}}}|{{#if:{{{postal_code|}}}|1}}}}{{#if:{{{postal_code_type|}}}|{{#if:{{{postal2_code_type|}}}|{{#if:{{{postal2_code|}}}|1}}}}}}|mergedrow|mergedtoprow}}
| rowclass124 = {{#if:{{#if:{{{postal_code_type|}}}|{{#if:{{{postal_code|}}}|1}}}}{{#if:{{{postal_code_type|}}}|{{#if:{{{postal2_code_type|}}}|{{#if:{{{postal2_code|}}}|1}}}}}}|mergedrow|mergedtoprow}}
| label124 = {{#if:{{{area_code_type|}}}|{{{area_code_type}}}|{{#if:{{{area_code|}}}|[[Telephone numbering plan|Area code(s)]]|{{#if:{{{area_codes|}}}|[[Telephone numbering plan|Area codes]]}}}}}}
| label124 = {{#if:{{{area_code_type|}}}|{{{area_code_type}}}|{{#if:{{{area_code|}}}|[[Telephone numbering plan|Area code(s)]]|{{#if:{{{area_codes|}}}|[[Telephone numbering plan|Area codes]]}}}}}}
|  data124 = {{if empty|{{{area_code|}}}|{{{area_codes|}}}}}{{#if:{{{area_code_type|}}}||{{#if:{{detect singular|{{{area_code|}}}}}||[[Category:Pages using infobox settlement with possible area code list]]}}}}
|  data124 = {{if empty|{{{area_code|}}}|{{{area_codes|}}}}}{{#if:{{{area_code_type|}}}||{{#if:{{detect singular|{{{area_code|}}}}}||{{Main other|[[Category:Pages using infobox settlement with possible area code list]]}}}}}}


<!-- Geocode-->
<!-- Geocode-->

Latest revision as of 22:54, 3 September 2020

Infobox settlement