Шаблон:Місто

Матеріал з Hitchwiki
Версія від 17:55, 29 серпня 2016, створена Andrusiak (обговорення | внесок) (Створена сторінка: <noinclude> Цей шаблон може бути використаний для отримання Infobox для населених пунктів (міст,...)
(різн.) ← Попередня версія | Поточна версія (різн.) | Новіша версія → (різн.)
Перейти до навігації Перейти до пошуку

Цей шаблон може бути використаний для отримання Infobox для населених пунктів (міст, селищ, сіл, громад), а також інших адміністративних округів, округів, провінцій і т.д.

Як використовувати цей шаблон?

Для використання цього шаблону, скопіюйте та вставте наступний код в зверху статті, яку необхідно змінити. Ви можете видалити невикористані параметри. Щоб краще зрозуміти, як використовувати його,продивіться приклади.

{{Infobox Location
|назва = 
|місцева_назва = 
|symbol = 
|країна = 
|state = 
|state_symbol = 
|subdivision_type = 
|subdivision_назва = 
|subdivision_symbol = 
|регіон = 
|регіон_symbol = 
|subdivision2_type = 
|subdivision2_назва = 
|subdivision2_symbol = 
|мапа = 
|населення = 
|plate = 
|дороги = 
|hitchbase = 
|links = 
}}

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.

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, 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

мапа is in format like this: <map lat='51.2' lng='3.2' zoom='11' />; населення = населення; plate = licence plate 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.

Troubleshooting

You can experiment with template functions at Template:Infobox Location/sandbox and try to use it in your sandbox or as a preview at any page. If you see somewhere somehow broken infobox, you can edit that page data (!) not this template. You can also write any ideas how to make it better to the talk page.

Examples

Code Result
In page назваd Bruges:
{{Infobox Location
|країна = Belgium
|місцева_назва = Brugge
|регіон = Vlaanderen
|subdivision2_type = province
|subdivision2_назва = West-Vlaanderen
|мапа = <map lat='51.2' lng='3.2' zoom='11' />
|населення = 117073
|дороги = {{Abe|17}} {{E|40}}
}}
Шаблон:Infobox Location
{{Infobox Location
|країна = USA
|state = Texas
|state_symbol = Flag of Texas.svg
}}
Шаблон:Infobox Location
{{Infobox Location
|назва = Nuremberg
|місцева_назва = Nürnberg
|symbol = Wappen von Nürnberg.svg
|країна = Germany
|мапа = <map lat='49.417' lng='11.1' zoom='10' />
|населення = 502491
|state = Bavaria
|state_symbol = Coat of arms of Bavaria.png
|plate = N
|дороги = {{Ade|3}} {{Ade|6}} {{Ade|9}} {{Ade|73}}
|hitchbase = 34
|links = [http://examplelink Link1] [http://somelink Link2]
}}
Шаблон:Infobox Location