Template:Infobox City: Difference between revisions

From Tael
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
Line 9: Line 9:
|-{{#if: {{{Region|}}} | {{Region|{{{Region}}}|}} | {{blank}} }}
|-{{#if: {{{Region|}}} | {{Region|{{{Region}}}|}} | {{blank}} }}
|-  
|-  
!colspan="2" class="infobox-subtitle" | City Info
!colspan="2" class="infobox-subtitle" | {{{Size}}} Info
|-{{#if: {{{Building Style|}}} | {{Building Style|{{{Building Style}}}|}} | {{blank}} }}
|-{{#if: {{{Building Style|}}} | {{Building Style|{{{Building Style}}}|}} | {{blank}} }}
|-{{#if: {{{Major Race|}}} | {{Major Race|{{{Major Race}}}|}} | {{blank}} }}
|-{{#if: {{{Major Race|}}} | {{Major Race|{{{Major Race}}}|}} | {{blank}} }}
Line 16: Line 16:
|-{{#if: {{{Founded|}}} | {{Founded|{{{Founded}}}|}} | {{blank}} }}
|-{{#if: {{{Founded|}}} | {{Founded|{{{Founded}}}|}} | {{blank}} }}
|}
|}
{{#if: {{{Continent|}}} | [[Category:{{{Continent}}}]] }}
{{#if: {{{Major Race|}}} | [[Category:{{{Major Race}}}]] }}
{{#if: {{{Size|}}} | [[Category:{{{Size}}}]] }}
[[Category:Locations]]
</includeonly>
</includeonly>
<noinclude>
<noinclude>
Line 30: Line 34:
Ruler=  
Ruler=  
Founded=  
Founded=  
Size=
}}
}}
</pre>
</pre>
Line 63: Line 68:
"Founded": {
"Founded": {
"type": "string"
"type": "string"
},
"Size": {
"type": "string",
"suggestedvalues": [
"Town",
"Village",
"Hamlet",
"City"
],
"default": "City",
"autovalue": "City",
"required": true
}
}
},
},
Line 74: Line 91:
"Population",
"Population",
"Ruler",
"Ruler",
"Founded"
"Founded",
"Size"
]
]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 20:52, 7 May 2024


Usage example:

{{Infobox City|
Image = 
Raw Name = 
Continent= 
Region= 
Building Style= 
Major Race= 
Population= 
Ruler= 
Founded= 
Size=
}}

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Raw NameRaw Name

no description

Stringrequired
ImageImage

no description

Default
Placeholder.png
Fileoptional
ContinentContinent

no description

Stringoptional
RegionRegion

no description

Stringoptional
Building StyleBuilding Style

no description

Stringoptional
Major RaceMajor Race

no description

Page nameoptional
PopulationPopulation

no description

Stringoptional
RulerRuler

no description

Stringoptional
FoundedFounded

no description

Stringoptional
SizeSize

no description

Suggested values
Town Village Hamlet City
Default
City
Auto value
City
Stringrequired