Відмінності між версіями «Шаблон:Місто»
Рядок 3: | Рядок 3: | ||
== Як використовувати цей шаблон? == | == Як використовувати цей шаблон? == | ||
− | Для використання цього шаблону, скопіюйте та вставте наступний код в '''зверху''' статті, яку необхідно змінити. Ви можете видалити невикористані параметри. Щоб краще зрозуміти, як використовувати його,продивіться [[# | + | Для використання цього шаблону, скопіюйте та вставте наступний код в '''зверху''' статті, яку необхідно змінити. Ви можете видалити невикористані параметри. Щоб краще зрозуміти, як використовувати його,продивіться [[#Приклади | приклади]]. |
<pre> | <pre> | ||
Рядок 29: | Рядок 29: | ||
}} | }} | ||
</pre> | </pre> | ||
− | You have to specify in which ''країна'' the location is. Other parameters are optional. You can use ''штат'' and ''регіон''. For specifying different administrative divisions such a province, county etc. use parameters ''subdivision_type'' with ''subdivision назва'' (considered smaller than ''штат'' and bigger than ''регіон'') and ''тип_регіону'' with ''назва_регіону'' (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 | + | You have to specify in which ''країна'' the location is. Other parameters are optional. You can use ''штат'' and ''регіон''. |
+ | <!--For specifying different administrative divisions such a province, county etc. use parameters ''subdivision_type'' with ''subdivision назва'' (considered smaller than ''штат'' and bigger than ''регіон'') and ''тип_регіону'' with ''назва_регіону'' (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. | ||
+ | --> | ||
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. | 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. | ||
Рядок 36: | Рядок 38: | ||
''мапа'' is in format like this: <code><nowiki><map lat='51.2' lng='3.2' zoom='11' /></nowiki></code>; | ''мапа'' is in format like this: <code><nowiki><map lat='51.2' lng='3.2' zoom='11' /></nowiki></code>; | ||
− | ''населення'' = населення; ''номерні_знаки'' = licence номерні_знаки of the city/регіон; ''дороги'' = major дороги going around or through the city, you can write it as a plain text, links or use | + | ''населення'' = населення; ''номерні_знаки'' = licence номерні_знаки of the city/регіон; ''дороги'' = major дороги going around or through the city, you can write it as a plain text, links or use templates e.g. [[template:E]]; |
''hitchbase'' = ID of the city at [http://hitchbase.com Hitchbase]; ''links'' = other links. Use last 2 parameters only if there is '''useful''' and '''english written''' information which is not already at hitchwiki. | ''hitchbase'' = ID of the city at [http://hitchbase.com Hitchbase]; ''links'' = other links. Use last 2 parameters only if there is '''useful''' and '''english written''' information which is not already at hitchwiki. | ||
− | == | + | == Приклади == |
{| class="wikitable" | {| class="wikitable" | ||
! Code | ! Code |
Версія за 19:16, 29 серпня 2016
Цей шаблон може бути використаний для отримання Infobox для населених пунктів (міст, селищ, сіл, громад), а також інших адміністративних округів, округів, провінцій і т.д.
Як використовувати цей шаблон?
Для використання цього шаблону, скопіюйте та вставте наступний код в зверху статті, яку необхідно змінити. Ви можете видалити невикористані параметри. Щоб краще зрозуміти, як використовувати його,продивіться приклади.
{{Інфо Розташування |назва = |місцева_назва = |symbol = |країна = |штат = |герб_штату = |subdivision_type = |subdivision_назва = |subdivision_symbol = |регіон = |регіон_symbol = |тип_регіону = |назва_регіону = |subdivision2_symbol = |мапа = |населення = |номерні_знаки = |дороги = |hitchbase = |links = }}
You have to specify in which країна the location is. Other parameters are optional. You can use штат and регіон.
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.
You can as well specify various symbols (flags, coat of arms) by parameters symbol, герб_штату, subdivision_symbol, регіон_symbol and subdivision2_symbol. Just find appropriate picture at wikimedia or upload it to hitchwiki and write its назва e.g. |герб_штату = Flag of Texas.svg
мапа is in format like this: <map lat='51.2' lng='3.2' zoom='11' />
;
населення = населення; номерні_знаки = licence номерні_знаки of the city/регіон; дороги = major дороги going around or through the city, you can write it as a plain text, links or use templates e.g. template:E;
hitchbase = ID of the city at Hitchbase; links = other links. Use last 2 parameters only if there is useful and english written information which is not already at hitchwiki.
Приклади
Code | Result | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
In page назваd Bruges:{{Інфо Розташування |країна = Belgium |місцева_назва = Brugge |регіон = Vlaanderen |тип_регіону = province |назва_регіону = West-Vlaanderen |мапа = <map lat='51.2' lng='3.2' zoom='11' /> |населення = 117073 |дороги = {{Abe|17}} {{E|40}} }} |
| ||||||||||||||||||||
{{Інфо Розташування |країна = USA |штат = Texas |герб_штату = Flag of Texas.svg }} |
| ||||||||||||||||||||
{{Інфо Розташування |назва = Nuremberg |місцева_назва = Nürnberg |symbol = Wappen von Nürnberg.svg |країна = Germany |мапа = <map lat='49.417' lng='11.1' zoom='10' /> |населення = 502491 |штат = Bavaria |герб_штату = Coat of arms of Bavaria.png |номерні_знаки = N |дороги = {{Ade|3}} {{Ade|6}} {{Ade|9}} {{Ade|73}} |hitchbase = 34 |links = [http://examplelink Link1] [http://somelink Link2] }} |
|