Predloga:Napis k zemljevidu
predloga Wikimedije / From Wikipedia, the free encyclopedia
![]() | Ta predloga vsebuje skrajno zapletene in/ali ezoterične skladenjske elemente.
Prosimo vas, da predloge ne spreminjate, če niste popolnoma prepričani in niste pripravljeni popraviti vse posledične stranske škode ob nepričakovanih rezultatih. Vse preizkušanje opravite v podpredlogi /peskovnik ali v vašem uporabniškem prostoru. |
predloga mora biti na dnu odrezana
![]() | Ta predloga vsebuje skrajno zapletene in/ali ezoterične skladenjske elemente.
Prosimo vas, da predloge ne spreminjate, če niste popolnoma prepričani in niste pripravljeni popraviti vse posledične stranske škode ob nepričakovanih rezultatih. Vse preizkušanje opravite v podpredlogi /peskovnik ali v vašem uporabniškem prostoru. |
Template intended to simplify adding a standardized and formatted caption below a map indicating the location of something (e.g. a country), possibly referring to the map's main region and optionally also to a shown subregion. Original use within infoboxes (e.g. see articles on European countries). For a complete set of elements of reasonable length, a width of (minimally) 250px (without extra padding or margins) should be available.
Parameters
Required parameters shown in bold italics
Parameter | Description | Default |
---|---|---|
countryprefix |
| – |
country |
| < article name > |
location |
| – |
location_color |
| orange |
region |
| – |
region_color |
| white |
subregion |
| – |
subregion_color |
| tan |
legend |
| – |
- Note
- In case the name of any article or redirect page on this Wikipedia is given for a country, region or subregion (without other characters in the parameter), the template automatically creates a link. It is nevertheless possible to pass a parameter between linking brackets [[...]] and such is required in case only a part of the parameter should be linked or in case a link should reach an article by another name using syntax [[...|...]].
Examples
Code | Raw result (in unformatted box, compare to handling in Infobox) | |
{{Napis k zemljevidu}} | ||
| ||
{{Napis k zemljevidu |region=[[Europe]] |legend=European location legend en.png|country=Monako |country2=Monaka}} | ||
| ||
{{Napis k zemljevidu |countryprefix=the |region=[[Europe]] |subregion=the [[European Union]] |legend=European location legend en.png|country=Monako |country2=Monaka}} | ||
| ||
Typical sample for an article on a European Union member that needs no "the" before its name, for otherwise identical output:{{Napis k zemljevidu |region=Europe |subregion=EU |legend=European location legend en.png|country=Monako |country2=Monaka}} | ||
|
Infobox usage of code (as intended) — wherein the alignment, the padding/margins, and font are rendered differently (this template adjusts for that infobox): | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Sample for article named 'Armenia', about a non-European country
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Urejevalci lahko eksperimentirajo v peskovnik (uredi | razl) in testniprimeri (uredi) straneh te predloge.
Prosimo dodajte kategorije v /dok podstran. Podstran tega predloga.