Template:EasyInfobox settlement: Difference between revisions
Jump to navigation
Jump to search
m Added the `name_origin` parameter |
m Add Category:{{{name}}} |
||
(6 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|}}}'' }} | ||
|named_for = {{#if: {{{name_origin|}}} | {{{name_origin|}}} }} | | named_for = {{#if: {{{name_origin|}}} | {{{name_origin|}}} }} | ||
|motto = {{{motto|}}} | | motto = {{{motto|}}} | ||
|population_demonym = {{{demonym|}}} | | population_demonym = {{{demonym|}}} | ||
|population_demonyms = {{{demonyms|}}} | | population_demonyms = {{{demonyms|}}} | ||
|image_skyline = {{#if: {{{image_skyline|}}} | {{{image_skyline|}}} | Aerial view of {{{name}}}.png }} | | image_skyline = {{#if: {{{image_skyline|}}} | {{{image_skyline|}}} | {{#ifexist: File:Aerial view of {{{name|{{PAGENAMEBASE}}}}}.png | Aerial view of {{{name|{{PAGENAMEBASE}}}}}.png }} }} | ||
|image_caption = {{#if: {{{image_caption|}}} | {{{image_caption|}}} | Aerial view }} | | image_caption = {{#if: {{{image_caption|}}} | {{{image_caption|}}} | Aerial view }} | ||
|image_flag = {{{image_flag|}}} | | image_flag = {{{image_flag|}}} | ||
|image_seal = {{#if: {{{image_seal|}}} | {{{image_seal|}}} | Seal of {{{name}}}.png }} | | image_seal = {{#if: {{{image_seal|}}} | {{{image_seal|}}} | {{#ifexist: File:Seal of {{{name|{{PAGENAMEBASE}}}}}.png | Seal of {{{name|{{PAGENAMEBASE}}}}}.png }} }} | ||
|subdivision_type = [[wikipedia:Country|Country]] | | subdivision_type = [[wikipedia:Country|Country]] | ||
|subdivision_name = {{#if: {{{country|}}} | {{flag|{{{country|}}}}} | Unknown }} | | subdivision_name = {{#if: {{{country|}}} | {{flag|{{{country|}}}}} | Unknown }} | ||
|subdivision_type1 = {{{subdivision_type1|}}} | | subdivision_type1 = {{{subdivision_type1|}}} | ||
|subdivision_name1 = {{{subdivision_name1|}}} | | subdivision_name1 = {{{subdivision_name1|}}} | ||
|subdivision_type2 = {{{subdivision_type2|}}} | | subdivision_type2 = {{{subdivision_type2|}}} | ||
|subdivision_name2 = {{{subdivision_name2|}}} | | subdivision_name2 = {{{subdivision_name2|}}} | ||
|subdivision_type3 = {{{subdivision_type3|}}} | | subdivision_type3 = {{{subdivision_type3|}}} | ||
|subdivision_name3 = {{{subdivision_name3|}}} | | subdivision_name3 = {{{subdivision_name3|}}} | ||
|founder = {{{founded_by|}}} | | founder = {{{founded_by|}}} | ||
|leader_title = {{{leader_title|}}} | | leader_title = {{nowrap|{{#if: {{{leader_title|}}} | [[{{{leader_title}}}]] }}}} | ||
|leader_name = {{{leader_name|}}} | | leader_name = {{{leader_name|}}} | ||
|established_title1 = {{#if: {{{founded_title|}}} | {{{founded_title|}}} | Founded on }} | | established_title1 = {{#if: {{{founded_title|}}} | {{{founded_title|}}} | Founded on }} | ||
|established_date1 = {{#if: {{{founded_date|}}} | {{Date|{{{founded_date|}}}}} | }} | | established_date1 = {{#if: {{{founded_date|}}} | {{Date|{{{founded_date|}}}}} | }} | ||
|established_title2 = {{{established_title1|}}} | | established_title2 = {{{established_title1|}}} | ||
|established_date2 = {{#if: {{{established_date1|}}} | {{Date|{{{established_date1|}}}}} | }} | | established_date2 = {{#if: {{{established_date1|}}} | {{Date|{{{established_date1|}}}}} | }} | ||
|established_title3 = {{{established_title2|}}} | | established_title3 = {{{established_title2|}}} | ||
|established_date3 = {{#if: {{{established_date2|}}} | {{Date|{{{established_date2|}}}}} | }} | | established_date3 = {{#if: {{{established_date2|}}} | {{Date|{{{established_date2|}}}}} | }} | ||
|population_as_of = {{#if: {{{population_as_of|}}} | {{Date|{{{population_as_of|}}}}} | }} | | population_as_of = {{#if: {{{population_as_of|}}} | {{Date|{{{population_as_of|}}}}} | }} | ||
|population = {{{population|}}} | | population = {{{population|}}} | ||
|timezone = {{{timezone|}}} | | timezone = {{{timezone|}}} | ||
}} | }}<!-- | ||
[[Category: | -->[[Category:Locations]]<!-- | ||
{{#if: {{{country|}}} | [[Category: | -->{{#if: {{{country|}}} | [[Category:Locations in {{{country}}}]] }}<!-- | ||
{{#if: {{{type|}}} | {{#ifeq: {{{type}}} | Capital | | -->[[Category:Settlements]]<!-- | ||
-->{{#if: {{{country|}}} | [[Category:Settlements in {{{country}}}]] }}<!-- | |||
-->{{#if: {{{type|}}} | {{#ifeq: {{{type}}} | Capital | | |||
[[Category:Capitals]] | [[Category:Capitals]] | ||
| {{#ifeq: {{{type}}} | City | | | {{#ifeq: {{{type}}} | City | | ||
Line 47: | 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> |