Відмінності між версіями «Шаблон:Місто»
Перейти до навігації
Перейти до пошуку
(Створена сторінка: <noinclude> Цей шаблон може бути використаний для отримання Infobox для населених пунктів (міст,...) |
|||
Рядок 1: | Рядок 1: | ||
− | + | Searching 1 file for "назва" | |
− | |||
− | + | <untitled 25>: | |
− | + | 7 <pre> | |
− | + | 8 {{Інфо Розташування | |
− | <pre> | + | 9: |назва = |
− | {{ | + | 10: |місцева_назва = |
− | |назва = | + | 11 |symbol = |
− | |місцева_назва = | + | 12 |країна = |
− | |symbol = | + | .. |
− | |країна = | + | 14 |state_symbol = |
− | + | 15 |subdivision_type = | |
− | |state_symbol = | + | 16: |subdivision_назва = |
− | |subdivision_type = | + | 17 |subdivision_symbol = |
− | |subdivision_назва = | + | 18 |регіон = |
− | |subdivision_symbol = | + | 19 |регіон_symbol = |
− | |регіон = | + | 20 |subdivision2_type = |
− | |регіон_symbol = | + | 21: |subdivision2_назва = |
− | |subdivision2_type = | + | 22 |subdivision2_symbol = |
− | |subdivision2_назва = | + | 23 |мапа = |
− | |subdivision2_symbol = | + | .. |
− | |мапа = | + | 29 }} |
− | + | 30 </pre> | |
− | + | 31: You have to specify in which ''країна'' the location is. Other parameters are optional. You can use ''state'' and ''регіон''. For specifying different administrative divisions such a province, county etc. use parameters ''subdivision_type'' with ''subdivision назва'' (considered smaller than ''state'' and bigger than ''регіон'') and ''subdivision2_type'' with ''subdivision2_назва'' (considered smaller than регіон). All of the above parameters are used for page categorization and breadcrumb navigation so write them correctly and as a plain text. You don't have to use <code><nowiki>[[Category:somearea]]</nowiki></code> nor <code><nowiki>{{IsIn|somearea}}</nowiki></code> in a page itself. In fact it's better to delete them from a page if template works as intended. | |
− | + | 32 | |
− | + | 33: Normally the heading of infobox is the same as PAGENAME (which should be in English if possible). If for some reason you need to have different heading use ''назва'' parameter. For location назва in native language use parameter ''місцева_назва'' - that will be showed somewhat smaller under main heading. | |
− | + | 34 | |
− | + | 35: You can as well specify various symbols (flags, coat of arms) by parameters ''symbol'', ''state_symbol'', ''subdivision_symbol'', ''регіон_symbol'' and ''subdivision2_symbol''. Just find appropriate picture at wikimedia or upload it to hitchwiki and write its назва e.g. <code><nowiki>|state_symbol = Flag of Texas.svg</nowiki></code> | |
− | </pre> | + | 36 |
− | You have to specify in which ''країна'' the location is. Other parameters are optional. You can use ''state'' and ''регіон''. For specifying different administrative divisions such a province, county etc. use parameters ''subdivision_type'' with ''subdivision назва'' (considered smaller than ''state'' and bigger than ''регіон'') and ''subdivision2_type'' with ''subdivision2_назва'' (considered smaller than регіон). All of the above parameters are used for page categorization and breadcrumb navigation so write them correctly and as a plain text. You don't have to use <code><nowiki>[[Category:somearea]]</nowiki></code> nor <code><nowiki>{{IsIn|somearea}}</nowiki></code> in a page itself. In fact it's better to delete them from a page if template works as intended. | + | 37 ''мапа'' is in format like this: <code><nowiki><map lat='51.2' lng='3.2' zoom='11' /></nowiki></code>; |
− | + | .. | |
− | Normally the heading of infobox is the same as PAGENAME (which should be in English if possible). If for some reason you need to have different heading use ''назва'' parameter. For location назва in native language use parameter ''місцева_назва'' - that will be showed somewhat smaller under main heading. | + | 48 ! Result |
− | + | 49 |- | |
− | You can as well specify various symbols (flags, coat of arms) by parameters ''symbol'', ''state_symbol'', ''subdivision_symbol'', ''регіон_symbol'' and ''subdivision2_symbol''. Just find appropriate picture at wikimedia or upload it to hitchwiki and write its назва e.g. <code><nowiki>|state_symbol = Flag of Texas.svg</nowiki></code> | + | 50: | In page назваd Bruges:<pre>{{Infobox Location |
− | + | 51 |країна = Belgium | |
− | ''мапа'' is in format like this: <code><nowiki><map lat='51.2' lng='3.2' zoom='11' /></nowiki></code>; | + | 52: |місцева_назва = Brugge |
− | + | 53 |регіон = Vlaanderen | |
− | + | 54 |subdivision2_type = province | |
− | + | 55: |subdivision2_назва = West-Vlaanderen | |
− | + | 56 |мапа = <map lat='51.2' lng='3.2' zoom='11' /> | |
− | + | 57 |населення = 117073 | |
− | + | .. | |
− | + | 59 }}</pre> | |
− | = | + | 60 | {{Інфо Розташування |
− | + | 61: |назва = Bruges | |
− | + | 62: |місцева_назва = Brugge | |
− | + | 63 |країна = Belgium | |
− | + | 64 |регіон = Vlaanderen | |
− | | | + | 65 |subdivision2_type = province |
− | | | + | 66: |subdivision2_назва = West-Vlaanderen |
− | | | + | 67 |мапа = <map lat='51.2' lng='3.2' zoom='11' /> |
− | | | + | 68 |населення = 117073 |
− | | | + | .. |
− | | | + | 82 |- |
− | | | + | 83 | <pre>{{Інфо Розташування |
− | | | + | 84: |назва = Nuremberg |
− | + | 85: |місцева_назва = Nürnberg | |
− | }}</pre> | + | 86 |symbol = Wappen von Nürnberg.svg |
− | | {{ | + | 87 |країна = Germany |
− | |назва = | + | .. |
− | |місцева_назва = | + | 96 }}</pre> |
− | | | + | 97 | {{Інфо Розташування |
− | | | + | 98: |назва = Nuremberg |
− | | | + | 99: |місцева_назва = Nürnberg |
− | + | 100 |symbol = Wappen von Nürnberg.svg | |
− | + | 101 |країна = Germany | |
− | + | ... | |
− | + | 111 |} | |
− | }} | + | 112 |
− | | | + | 113: </noinclude><includeonly>{{#ifeq:{{NAMESPACE}}|{{ns:0}}|{{Category|{{{країна}}}|{{{state}}}|{{{subdivision_назва}}}|{{{регіон}}}|{{{subdivision2_назва}}}}}|<!-- Don't categorize when not in main (article) space. -->}} |
− | + | 114 {| class="infobox mw-collapsible" | |
− | + | 115: ! colspan="2" class="infobox-h1" | <div>{{#if: {{{symbol|}}} | [[File:{{{symbol}}}|x20px]] }}{{#if: {{{назва|}}} | {{{назва}}} | {{PAGENAME}} }}</div>{{#if:{{{місцева_назва|}}} | ''{{{місцева_назва|}}}'' }} | |
− | + | 116 |- | |
− | + | 117 | colspan="2" class="infobox-мапа" | {{{мапа|}}} | |
− | }} | + | ... |
− | | {{ | + | 125 {{!}} [[{{{state}}}]] }} |
− | + | 126 |- | |
− | + | 127: {{#if: {{{subdivision_type|}}} | {{#if: {{{subdivision_назва|}}}| ! {{ucfirst:{{{subdivision_type}}}}}: {{#if: {{{subdivision_symbol|}}} | [[File:{{{subdivision_symbol}}}|x18px|right]] }} {{#ifeq: {{PAGENAME:{{{subdivision_назва}}}}} | {{PAGENAME}} || {{#ifexist: {{{subdivision_назва}}} | {{IsIn|{{{subdivision_назва}}}}} | {{#ifexist: Category:{{{subdivision_назва}}} | {{IsIn|Category:{{{subdivision_назва}}}}} }} }} }} | |
− | + | 128: {{!}} [[{{{subdivision_назва}}}]] }} }} | |
− | }} | + | 129 |- |
− | | | + | 130 {{#if: {{{регіон|}}} | ! регіон: {{#if: {{{регіон_symbol|}}} | [[File:{{{регіон_symbol}}}|x18px|right]] }} {{#ifeq: {{PAGENAME:{{{регіон}}}}} | {{PAGENAME}} || {{#ifexist: {{{регіон}}} | {{IsIn|{{{регіон}}}}} | {{#ifexist: Category:{{{регіон}}} | {{IsIn|Category:{{{регіон}}}}} }} }} }} |
− | + | 131 {{!}} [[{{{регіон}}}]] }} | |
− | | | + | 132 |- |
− | | | + | 133: {{#if: {{{subdivision2_type|}}} | {{#if: {{{subdivision2_назва|}}}| ! {{ucfirst:{{{subdivision2_type}}}}}: {{#if: {{{subdivision2_symbol|}}} | [[File:{{{subdivision2_symbol}}}|x18px|right]] }} {{#ifeq: {{PAGENAME:{{{subdivision2_назва}}}}} | {{PAGENAME}} || {{#ifexist: {{{subdivision2_назва}}} | {{IsIn|{{{subdivision2_назва}}}}} | {{#ifexist: Category:{{{subdivision2_назва}}} | {{IsIn|Category:{{{subdivision2_назва}}}}} }} }} }} |
− | + | 134: {{!}} [[{{{subdivision2_назва}}}]] }} }} | |
− | | | + | 135 |- |
− | + | 136 {{#if: {{{населення|}}} | ! населення: | |
− | | | ||
− | | | ||
− | |||
− | |||
− | |||
− | | | ||
− | | | ||
− | }}</ | ||
− | |||
− | | | ||
− | |місцева_назва | ||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | |||
− | |||
− | |||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | { | ||
− | |||
− | |- | ||
− | |||
− | | | ||
− | ! | ||
− | | | ||
− | |||
− | | | ||
− | | | ||
− | {{# | ||
− | {{ | ||
− | |||
− | {{# | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Версія за 17:57, 29 серпня 2016
Searching 1 file for "назва"
<untitled 25>:
7
8 {{Інфо Розташування 9: |назва = 10: |місцева_назва = 11 |symbol = 12 |країна = .. 14 |state_symbol = 15 |subdivision_type = 16: |subdivision_назва = 17 |subdivision_symbol = 18 |регіон = 19 |регіон_symbol = 20 |subdivision2_type = 21: |subdivision2_назва = 22 |subdivision2_symbol = 23 |мапа = .. 29 }} 30
31: You have to specify in which країна the location is. Other parameters are optional. You can use state and регіон. For specifying different administrative divisions such a province, county etc. use parameters subdivision_type with subdivision назва (considered smaller than state and bigger than регіон) and subdivision2_type with subdivision2_назва (considered smaller than регіон). All of the above parameters are used for page categorization and breadcrumb navigation so write them correctly and as a plain text. You don't have to use[[Category:somearea]]
nor{{IsIn|somearea}}
in a page itself. In fact it's better to delete them from a page if template works as intended. 32 33: Normally the heading of infobox is the same as PAGENAME (which should be in English if possible). If for some reason you need to have different heading use назва parameter. For location назва in native language use parameter місцева_назва - that will be showed somewhat smaller under main heading. 34 35: You can as well specify various symbols (flags, coat of arms) by parameters symbol, state_symbol, subdivision_symbol, регіон_symbol and subdivision2_symbol. Just find appropriate picture at wikimedia or upload it to hitchwiki and write its назва e.g.|state_symbol = Flag of Texas.svg
36 37 мапа is in format like this:<map lat='51.2' lng='3.2' zoom='11' />
; .. 48 ! Result 49 |-
50: | In page назваd Bruges:
{{Infobox Location 51 |країна = Belgium 52: |місцева_назва = Brugge 53 |регіон = Vlaanderen 54 |subdivision2_type = province 55: |subdivision2_назва = West-Vlaanderen 56 |мапа = <map lat='51.2' lng='3.2' zoom='11' /> 57 |населення = 117073 .. 59 }}
60 | {{Інфо Розташування 61: |назва = Bruges 62: |місцева_назва = Brugge 63 |країна = Belgium 64 |регіон = Vlaanderen 65 |subdivision2_type = province 66: |subdivision2_назва = West-Vlaanderen 67 |мапа = <map lat='51.2' lng='3.2' zoom='11' /> 68 |населення = 117073 .. 82 |-
83 |
{{Інфо Розташування 84: |назва = Nuremberg 85: |місцева_назва = Nürnberg 86 |symbol = Wappen von Nürnberg.svg 87 |країна = Germany .. 96 }}
97 | {{Інфо Розташування 98: |назва = Nuremberg 99: |місцева_назва = Nürnberg 100 |symbol = Wappen von Nürnberg.svg 101 |країна = Germany ... 111 |} 112 113: