Template:EasyInfobox administrative unit: Difference between revisions
Jump to navigation
Jump to search
Created page with "<includeonly>{{Infobox settlement |settlement_type = {{{type|}}} |name = {{{name|}}} |native_name = {{#if: {{{name_native|}}} | {{#ifeq: {{{name_native}}} | {{{name|}}} | | {{{name_native}}} }} }} |other_name = {{#if: {{{name_nickname|}}} | ''{{{name_nickname|}}}'' }} |official_name = {{{name_official|}}} |named_for = {{#if: {{{name_origin|}}} | {{{name_origin|}}} }} |motto = {{{motto|}}} |population_demon..." |
Hide seal by checking if the file exists instead of having to specify "none" |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{Infobox settlement | <includeonly>{{Infobox settlement | ||
|settlement_type = {{{type|}}} | | settlement_type = {{{type|}}} | ||
|name = {{{name|}}} | | name = {{{name|}}} | ||
|native_name = {{#if: {{{name_native|}}} | {{#ifeq: {{{name_native}}} | {{{name|}}} | | {{{name_native}}} }} }} | | native_name = {{#if: {{{name_native|}}} | {{#ifeq: {{{name_native}}} | {{{name|}}} | | {{{name_native}}} }} }} | ||
|other_name = {{#if: {{{name_nickname|}}} | ''{{{name_nickname|}}}'' }} | | other_name = {{#if: {{{name_nickname|}}} | ''{{{name_nickname|}}}'' }} | ||
|official_name = {{{name_official|}}} | | official_name = {{#if: {{{name_official|}}} | {{{name_official}}} | {{{name|}}} {{{type|}}} }} | ||
|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_flag = {{{image_flag|}}} | | image_flag = {{{image_flag|}}} | ||
|image_seal = {{# | | image_seal = {{#if: {{{seal_image|}}} | {{{seal_image|}}} | {{#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|}}} | ||
|leader_title = {{{leader_title|}}} | | leader_title = {{nowrap|{{#if: {{{leader_title|}}} | [[{{{leader_title}}}]] }}}} | ||
|leader_name = {{{leader_name|}}} | | leader_name = {{{leader_name|}}} | ||
|established_title1 = Established on | | established_title1 = Established on | ||
|established_date1 = {{#if: {{{established_date|}}} | {{Date|{{{established_date|}}}}} | }} | | established_date1 = {{#if: {{{established_date|}}} | {{Date|{{{established_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_date|}}} | {{Date|{{{population_date|}}}}} | }} | | population_as_of = {{#if: {{{population_date|}}} | {{Date|{{{population_date|}}}}} | }} | ||
|population = {{{population_total|}}} | | population = {{{population_total|}}} | ||
|timezone = {{{timezone|}}} | | timezone = {{{timezone|}}} | ||
}} | }} | ||
[[Category:Locations]] | |||
{{#if: {{{country|}}} | [[Category:Locations in {{{country}}}]] [[Category:{{{country}}}]] }} | |||
[[Category:Administrative units]] | [[Category:Administrative units]] | ||
{{#if: {{{country|}}} | [[Category:Administrative units in {{{country}}}]] [[Category:{{{country}}}]] }} | {{#if: {{{country|}}} | [[Category:Administrative units in {{{country}}}]] [[Category:{{{country}}}]] }} | ||
Line 42: | Line 44: | ||
[[Category:{{{type}}}s]] | [[Category:{{{type}}}s]] | ||
{{#if: {{{country|}}} | [[Category:{{{type}}}s in {{{country}}}]] }} | {{#if: {{{country|}}} | [[Category:{{{type}}}s in {{{country}}}]] }} | ||
}}}}}}</includeonly> |