Template:Infobox country: Difference between revisions
Jump to navigation
Jump to search
Harrystein (talk | contribs) (added parameters for size and updated documentation accordingly. also added {{if empty}} sections to account for empty strings.) |
Harrystein (talk | contribs) (added "Mapnote" parameter to standardize caption on the note.) |
||
Line 2: | Line 2: | ||
! colspan="2" | {{{englishname|}}}<br><small>{{{nativename|}}}</small> | ! colspan="2" | {{{englishname|}}}<br><small>{{{nativename|}}}</small> | ||
|- | |- | ||
| colspan="2" |{{#if:{{{mapfile|}}}|[[File:{{{mapfile|}}}|{{If empty|{{{mapsize|}}}|300px}}|center|frameless]]|}}<br><div style="text-align:center">Map of {{if empty|{{{shortname|}}}|{{{englishname|}}}}}</div> | | colspan="2" |{{#if:{{{mapfile|}}}|[[File:{{{mapfile|}}}|{{If empty|{{{mapsize|}}}|300px}}|center|frameless]]|}}<br> | ||
<div style="text-align:center">Map of {{if empty|{{{shortname|}}}|{{{englishname|}}}}} | |||
<div style="text-align:center; | |||
width: 295px; | |||
line-height: 1.2"> | |||
<small>{{{mapnote| }}}</small></div></div> | |||
|- | |- | ||
| style="width:50%; border:none; text-align:center; vertical-align:bottom; padding-top: 5px;" | {{#if:{{{flagfile|}}}|[[File:{{{flagfile|}}}|{{If empty|{{{flagsize|}}}|125x63px}}|frameless]]|}} | | style="width:50%; border:none; text-align:center; vertical-align:bottom; padding-top: 5px;" | {{#if:{{{flagfile|}}}|[[File:{{{flagfile|}}}|{{If empty|{{{flagsize|}}}|125x63px}}|frameless]]|}} | ||
Line 20: | Line 25: | ||
| shortname = Short/common English name (optional) | | shortname = Short/common English name (optional) | ||
| mapfile = Bare filename of map image | | mapfile = Bare filename of map image | ||
| mapnote = (Optional) description or clarification. Example: "Land controlled by the PRC shown in dark green." | |||
| mapsize = Map size (optional and probably unnecessary) | | mapsize = Map size (optional and probably unnecessary) | ||
| flagfile = Bare filename of flag image | | flagfile = Bare filename of flag image |
Revision as of 18:30, 1 September 2023
Map of
| |
Flag | State Emblem |
Originally based on a table at USSR. NOT to be confused with Wikipedia:Template:infobox country, whose parameters could however be added here.
Usage as follows (updated on 9/1/23):
{{Infobox country | englishname = Full English name of the country | nativename = Full name of the country in its own language | shortname = Short/common English name (optional) | mapfile = Bare filename of map image | mapnote = (Optional) description or clarification. Example: "Land controlled by the PRC shown in dark green." | mapsize = Map size (optional and probably unnecessary) | flagfile = Bare filename of flag image | flagsize = Flag size (optional and probably unnecessary) | emblemfile = Bare filename of emblem image | emblemsize = Emblem size (optional and probably unnecessary) }}
These have been modified to (hopefully) resize and align the images automatically.
Usage example:
{{Infobox country | englishname = Democratic People's Republic of Korea | nativename = 조선민주주의인민공화국 | shortname = DPRK | mapfile = DPRK map.svg.png | flagfile = Flag of the DPRK.svg.png | emblemfile = Emblem of the DPRK.svg.png }}