Template:Infobox Country: Difference between revisions
Template page
More actions
Eloise Zomia (talk | contribs) Created page with "<includeonly> <templatestyles src="Template:Infobox Country/styles.css" /> {| class="infobox lw-infobox lw-infobox--country" |- ! colspan="2" class="lw-infobox__title" | {{{country_name|{{PAGENAME}}}}} |- {{#if:{{{local_name|}}}| ! colspan="2" class="lw-infobox__subtitle" {{!}} {{{local_name}}} {{!}}- }} {{#if:{{{image|}}}| {{!}} colspan="2" class="lw-infobox__media" {{!}} [[File:{{{image}}}|320px|{{{image_caption|{{{country_name|{{PAGENAME}}}}}}}}]] {{!}}- {{#if:{{{imag..." |
Eloise Zomia (talk | contribs) No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 9: | Line 9: | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
|- | |||
| colspan="2" class="lw-infobox__map" | <div class="lw-map lw-map--infobox" data-smw-query="[[Has country::{{{country_name|{{PAGENAME}}}}}]]|?Has GPS coordinates|?Has descriptive name|?Has conservation priority|?Has accession ID" data-map-height="200"></div> | |||
|- | |||
{{#if:{{{image|}}}| | {{#if:{{{image|}}}| | ||
{{!}} colspan="2" class="lw-infobox__media" {{!}} [[File:{{{image}}}|320px|{{{image_caption|{{{country_name|{{PAGENAME}}}}}}}}]] | {{!}} colspan="2" class="lw-infobox__media" {{!}} [[File:{{{image}}}|320px|{{{image_caption|{{{country_name|{{PAGENAME}}}}}}}}]] | ||
Latest revision as of 01:16, 14 January 2026
Usage
{{Infobox Country
|country_name =
|local_name =
|flag =
|image =
|image_caption =
|capital =
|continent =
|gene_pool =
|legal_status =
|legal_status_class =
|legal_status_year =
|enforcement =
}}
Parameters
| Parameter | Description | Example |
|---|---|---|
| country_name | Display name (defaults to page name) | India |
| local_name | Name in local language(s) | भारत (Bhārat) |
| flag | Flag image filename | Flag of India.svg |
| image | Hero image filename | India_landscape.jpg |
| image_caption | Caption for hero image | Himalayan foothills |
| capital | Capital city | New Delhi |
| continent | Geographic continent | Asia |
| gene_pool | Primary gene pool link | South Asia |
| legal_status | Current cannabis legal status | Illegal (exceptions for bhang) |
| legal_status_class | CSS class: illegal, decriminalized, medical, legal | illegal |
| legal_status_year | Year of current status | 1985 |
| enforcement | Enforcement level description | Variable by state |
Legal Status Classes
illegal— Red stylingdecriminalized— Yellow stylingmedical— Blue stylinglegal— Green stylingunknown— Gray styling (default)