Template:EasyInfobox settlement: Difference between revisions
Jump to navigation
Jump to search
Only display aerial view and seal if they exist |
m Add Category:{{{name}}} |
||
(2 intermediate revisions by the same user not shown) | |||
Line 12: | Line 12: | ||
| 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|}}} | {{#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 }} | ||
Line 33: | Line 33: | ||
| population = {{{population|}}} | | population = {{{population|}}} | ||
| timezone = {{{timezone|}}} | | timezone = {{{timezone|}}} | ||
}} | }}<!-- | ||
[[Category:Locations]] | -->[[Category:Locations]]<!-- | ||
{{#if: {{{country|}}} | [[Category:Locations in | -->{{#if: {{{country|}}} | [[Category:Locations in {{{country}}}]] }}<!-- | ||
[[Category:Settlements]] | -->[[Category:Settlements]]<!-- | ||
{{#if: {{{country|}}} | [[Category:Settlements in | -->{{#if: {{{country|}}} | [[Category:Settlements in {{{country}}}]] }}<!-- | ||
{{#if: {{{type|}}} | {{#ifeq: {{{type}}} | Capital | | -->{{#if: {{{type|}}} | {{#ifeq: {{{type}}} | Capital | | ||
[[Category:Capitals]] | [[Category:Capitals]] | ||
| {{#ifeq: {{{type}}} | City | | | {{#ifeq: {{{type}}} | City | | ||
Line 49: | 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> |