Template:EasyInfobox settlement: Difference between revisions

From The Pinched Universe
Jump to navigation Jump to search
m Only display the native name if it is different from the regular name
m Add Category:{{{name}}}
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{Infobox settlement
<includeonly>{{Infobox settlement
|settlement_type    = {{{type|}}}
| settlement_type    = {{{type|}}}
|official_name      = {{{official_name|}}}
| official_name      = {{{official_name|}}}
|name                = {{{name|}}}
| name                = {{{name|{{PAGENAMEBASE}}}}}
|native_name        = {{#if: {{{native_name|}}} | {{#ifeq: {{{native_name}}} | {{{name|}}} | | {{{native_name}}} }}
| native_name        = {{#if: {{{native_name|}}} | {{#ifeq: {{{native_name}}} | {{{name|{{PAGENAMEBASE}}}}} | | {{{native_name}}} }} }}
|other_name          = {{#if: {{{nickname|}}} | ''{{{nickname|}}}'' }}
| other_name          = {{#if: {{{nickname|}}} | ''{{{nickname|}}}'' }}
|motto              = {{{motto|}}}
| named_for          = {{#if: {{{name_origin|}}} | {{{name_origin|}}} }}
|population_demonym = {{{demonym|}}}
| motto              = {{{motto|}}}
|population_demonyms = {{{demonyms|}}}
| population_demonym = {{{demonym|}}}
|image_skyline      = {{#if: {{{image_skyline|}}} | {{{image_skyline|}}} | Aerial view of {{{name}}}.png }}
| population_demonyms = {{{demonyms|}}}
|image_caption      = {{#if: {{{image_caption|}}} | {{{image_caption|}}} | Aerial view }}
| image_skyline      = {{#if: {{{image_skyline|}}} | {{{image_skyline|}}} | {{#ifexist: File:Aerial view of {{{name|{{PAGENAMEBASE}}}}}.png | Aerial view of {{{name|{{PAGENAMEBASE}}}}}.png }} }}
|image_flag          = {{{image_flag|}}}
| image_caption      = {{#if: {{{image_caption|}}} | {{{image_caption|}}} | Aerial view }}
|image_seal          = {{#if: {{{image_seal|}}} | {{{image_seal|}}} | Seal of {{{name}}}.png }}
| image_flag          = {{{image_flag|}}}
|subdivision_type    = [[wikipedia:Country|Country]]
| image_seal          = {{#if: {{{image_seal|}}} | {{{image_seal|}}} | {{#ifexist: File:Seal of {{{name|{{PAGENAMEBASE}}}}}.png | Seal of {{{name|{{PAGENAMEBASE}}}}}.png }} }}
|subdivision_name    = {{#if: {{{country|}}} | {{flag|{{{country|}}}}} | Unknown }}
| subdivision_type    = [[wikipedia:Country|Country]]
|subdivision_type1  = {{{subdivision_type1|}}}
| subdivision_name    = {{#if: {{{country|}}} | {{flag|{{{country|}}}}} | Unknown }}
|subdivision_name1  = {{{subdivision_name1|}}}
| subdivision_type1  = {{{subdivision_type1|}}}
|subdivision_type2  = {{{subdivision_type2|}}}
| subdivision_name1  = {{{subdivision_name1|}}}
|subdivision_name2  = {{{subdivision_name2|}}}
| subdivision_type2  = {{{subdivision_type2|}}}
|subdivision_type3  = {{{subdivision_type3|}}}
| subdivision_name2  = {{{subdivision_name2|}}}
|subdivision_name3  = {{{subdivision_name3|}}}
| subdivision_type3  = {{{subdivision_type3|}}}
|founder            = {{{founder|}}}
| subdivision_name3  = {{{subdivision_name3|}}}
|leader_title        = {{{leader_title|}}}
| founder            = {{{founded_by|}}}
|leader_name        = {{{leader_name|}}}
| leader_title        = {{nowrap|{{#if: {{{leader_title|}}} | [[{{{leader_title}}}]] }}}}
|established_title1  = {{{established_title1|}}}
| leader_name        = {{{leader_name|}}}
|established_date1   = {{#if: {{{established_date1|}}} | {{Date|{{{established_date1|}}}}} | }}
| established_title1 = {{#if: {{{founded_title|}}} | {{{founded_title|}}} | Founded on }}
|established_title2 = {{{established_title2|}}}
| established_date1  = {{#if: {{{founded_date|}}} | {{Date|{{{founded_date|}}}}} | }}
|established_date2   = {{#if: {{{established_date2|}}} | {{Date|{{{established_date2|}}}}} | }}
| established_title2 = {{{established_title1|}}}
|population_as_of    = {{#if: {{{population_as_of|}}} | {{Date|{{{population_as_of|}}}}} | }}
| established_date2   = {{#if: {{{established_date1|}}} | {{Date|{{{established_date1|}}}}} | }}
|population          = {{{population|}}}
| established_title3 = {{{established_title2|}}}
|timezone            = {{{timezone|}}}
| established_date3   = {{#if: {{{established_date2|}}} | {{Date|{{{established_date2|}}}}} | }}
}}
| population_as_of    = {{#if: {{{population_as_of|}}} | {{Date|{{{population_as_of|}}}}} | }}
[[Category:Settlements]]
| population          = {{{population|}}}
{{#if: {{{country|}}} | [[Category:Settlements in {{{country}}}]] [[Category:{{{country}}}]] }}
| timezone            = {{{timezone|}}}
{{#if: {{{type|}}} | {{#ifeq: {{{type}}} | Capital |  
}}<!--
-->[[Category:Locations]]<!--
-->{{#if: {{{country|}}} | [[Category:Locations in {{{country}}}]] }}<!--
-->[[Category:Settlements]]<!--
-->{{#if: {{{country|}}} | [[Category:Settlements in {{{country}}}]] }}<!--
-->{{#if: {{{type|}}} | {{#ifeq: {{{type}}} | Capital |  
   [[Category:Capitals]]
   [[Category:Capitals]]
| {{#ifeq: {{{type}}} | City |
| {{#ifeq: {{{type}}} | City |
Line 44: Line 49:
   [[Category:{{{type}}}s]]
   [[Category:{{{type}}}s]]
   {{#if: {{{country|}}} | [[Category:{{{type}}}s in {{{country}}}]] }}
   {{#if: {{{country|}}} | [[Category:{{{type}}}s in {{{country}}}]] }}
}}}}}} }}</includeonly>
}}}}}} }}<!--
-->{{#if: {{{country|}}} | [[Category:{{{country}}}]] }}<!--
-->[[Category:{{{name|{{PAGENAMEBASE}}}}}]]</includeonly>

Latest revision as of 17:02, 1 July 2024