Jump to content

Template:Infobox State: Difference between revisions

From Horse Bar Lobster
Created page with "<div class="infobox"> <div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}| <div class="infobox-image">[[File:{{PAGENAME:{{{image}}}}}|300px]]</div>}} {{#if:{{{capital|}}}|<div class="infobox-marker">CAPITAL</div>}} <table class="infobox-table">{{#if:{{{country|}}}|<tr> <th>Country</th> <td>{{{country}}}</td> </tr>}}{{#if:{{{capital|}}}|<tr> <th>Capital</th> <td>{{{capital}}}</td> </tr>}}{{#if:{{{population|}}}|<tr> <th>Populati..."
 
No edit summary
Line 1: Line 1:
<div class="infobox">
<div class="infobox">
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{flag|}}}|
<div class="infobox-image">[[File:{{PAGENAME:{{{flag}}}}}|300px]]</div>}}
<div style="text-align: center">Flag</div>{{#if:{{{image|}}}|
<div class="infobox-image">[[File:{{PAGENAME:{{{image}}}}}|300px]]</div>}}
<div class="infobox-image">[[File:{{PAGENAME:{{{image}}}}}|300px]]</div>}}
{{#if:{{{capital|}}}|<div class="infobox-marker">CAPITAL</div>}}
<table class="infobox-table">{{#if:{{{country|}}}|<tr>
<table class="infobox-table">{{#if:{{{country|}}}|<tr>
     <th>Country</th>
     <th>Country</th>
Line 46: Line 47:
"label": "Language",
"label": "Language",
"description": "The state language(s), most people will at least be able to speak one."
"description": "The state language(s), most people will at least be able to speak one."
},
"flag": {
"label": "Flag",
"description": "The flag of this state",
"type": "wiki-file-name"
}
}
},
},
"description": "Use this Infobox for states of countries."
"description": "Use this Infobox for states of countries.",
"paramOrder": [
"title",
"flag",
"image",
"capital",
"country",
"population",
"language"
]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Revision as of 04:38, 5 April 2025

Infobox State
Flag

Use this Infobox for states of countries.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Titletitle

Name of State

Unknownrequired
Flagflag

The flag of this state

Fileoptional
Imageimage

Image of the state

Fileoptional
Capital Citycapital

The Capital City of this state

Unknownoptional
Countrycountry

The country this state is part of

Unknownoptional
Populationpopulation

The amount of people who live in this state

Unknownoptional
Languagelanguage

The state language(s), most people will at least be able to speak one.

Unknownoptional