Actions

Template

Difference between revisions of "CityInfoBox"

m (Changed demo to not capital)
m (Fixed capital city)
Line 2: Line 2:
 
{{LocationInfoBox
 
{{LocationInfoBox
 
     |title={{{title|}}}
 
     |title={{{title|}}}
     |type={{#if: {{{capital}}} | Capital City | City}}
+
     |type={{#ifexpr: {{{capital}}} | Capital City | City}}
 
     |image={{{image}}}
 
     |image={{{image}}}
 
     |population={{{population|}}}
 
     |population={{{population|}}}

Revision as of 22:23, 17 September 2020



A Test City
ByAllah.jpg
Type:Expression error: Unrecognized word "no".
Population:6969
Located in: 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
no
Example
yes, true, no, false
Booleanrequired
Groupsgroup

Any associated groups

Stringoptional