Actions

Template

Difference between revisions of "CityInfoBox/sandbox"

< Template:CityInfoBox
(Spacing)
(All on one fucking line)
 
Line 1: Line 1:
<includeonly>{{LocationInfoBox|title={{{title|}}}|type={{#ifexpr: {{{capital|}}} | Capital City | City}}|image={{{image}}}|population={{{population|}}}|parentLocation={{{parentLocation|}}}|group={{{group|}}}|extraContent={{#if: {{{demonym|}}}| <tr><td class="infoboxtd1strow" style="padding: 10px;"><b>Demonym</b>:</td><td>{{{demonym}}}</td></tr>}}{{#if: {{{districts|}}}| <tr><td class="infoboxtd1strow" style="padding: 10px;"><b>Districts</b>:</td><td>{{{districts}}}</td></tr>}}}}</includeonly><noinclude>{{CityInfoBox|title=A Test City|image=byAllah.jpg|population=6969|parentLocation=Some state|group=[[Some Group]]|demonym=Chads|districts=District A, District B|capital=0}}<templatedata>{
+
<includeonly>{{LocationInfoBox|title={{{title|}}}|type={{#ifexpr: {{{capital|}}} | Capital City | City}}|image={{{image}}}|population={{{population|}}}|parentLocation={{{parentLocation|}}}|group={{{group|}}}|extraContent={{#if: {{{demonym|}}}| <tr><td class="infoboxtd1strow" style="padding: 10px;"><b>Demonym</b>:</td><td>{{{demonym}}}</td></tr>}}{{#if: {{{districts|}}}| <tr><td class="infoboxtd1strow" style="padding: 10px;"><b>Districts</b>:</td><td>{{{districts}}}</td></tr>}}}}</includeonly><noinclude>{{CityInfoBox|title=A Test City|image=byAllah.jpg|population=6969|parentLocation=Some state|group=[[Some Group]]|demonym=Chads|districts=District A, District B|capital=0}}<templatedata>{"params": {"image": {"label": "Image","description": "An image, could be a map or a picture of the city","type": "wiki-file-name"},"population": {"label": "Population","description": "The number of people in the city","example": "31000","type": "number","required": true},"parentLocation": {"label": "Parent Location","description": "The location that this location is within","type": "wiki-page-name"},"demonym": {"label": "Demonym","description": "The name to describe the people from this city","example": "Rathirian","type": "string"},"districts": {"label": "Districts","description": "The districts of the city","type": "content"},"title": {"label": "Title","description": "The name of the location"},"capital": {"label": "Capital","description": "Is the city a capital","example": "0, 1","type": "boolean","default": "0","required": true},"group": {"label": "Groups","description": "Any associated groups","type": "string"}},"description": "The city info box template shows as follows"}</templatedata></noinclude>
"params": {
 
"image": {
 
"label": "Image",
 
"description": "An image, could be a map or a picture of the city",
 
"type": "wiki-file-name"
 
},
 
"population": {
 
"label": "Population",
 
"description": "The number of people in the city",
 
"example": "31000",
 
"type": "number",
 
"required": true
 
},
 
"parentLocation": {
 
"label": "Parent Location",
 
"description": "The location that this location is within",
 
"type": "wiki-page-name"
 
},
 
"demonym": {
 
"label": "Demonym",
 
"description": "The name to describe the people from this city",
 
"example": "Rathirian",
 
"type": "string"
 
},
 
"districts": {
 
"label": "Districts",
 
"description": "The districts of the city",
 
"type": "content"
 
},
 
"title": {
 
"label": "Title",
 
"description": "The name of the location"
 
},
 
"capital": {
 
"label": "Capital",
 
"description": "Is the city a capital",
 
"example": "0, 1",
 
"type": "boolean",
 
"default": "0",
 
"required": true
 
},
 
"group": {
 
"label": "Groups",
 
"description": "Any associated groups",
 
"type": "string"
 
}
 
},
 
"description": "The city info box template shows as follows"
 
}</templatedata></noinclude>
 

Latest revision as of 20:25, 9 November 2020


A Test City
ByAllah.jpg
Type:City
Population:6969
Province: Some state
Associated Group(s):Some Group
Demonym: Chads
Districts: District A, District B

The city info box template shows as follows

Template parameters

ParameterDescriptionTypeStatus
Imageimage

An image, could be a map or a picture of the city

Fileoptional
Populationpopulation

The number of people in the city

Example
31000
Numberrequired
Parent LocationparentLocation

The location that this location is within

Pageoptional
Demonymdemonym

The name to describe the people from this city

Example
Rathirian
Stringoptional
Districtsdistricts

The districts of the city

Contentoptional
Titletitle

The name of the location

Unknownoptional
Capitalcapital

Is the city a capital

Default
0
Example
0, 1
Booleanrequired
Groupsgroup

Any associated groups

Stringoptional