User:HollisBlanchard/NeighborhoodTest: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
restore all the other boxes |
||
| Line 5: | Line 5: | ||
<data source="district"> | <data source="district"> | ||
<label>District</label> | <label>District</label> | ||
<format>[[:Category:District_{{{district}}}_Teams|{{{district}}}]] <span class="district_logo">{{#switch:{{{district}}} | |||
|1=[[File:TMrain.png]] | |1=[[File:TMrain.png]] | ||
|3=[[File:TMleaf.png]] | |3=[[File:TMleaf.png]] | ||
}}</span> | }}</span></format> | ||
</data> | </data> | ||
</infobox> | <data source="quad"> | ||
<label>Quadrant</label> | |||
<format>[[:Category:{{{quad}}}_Teams|{{{quad}}}]]</format> | |||
</data> | |||
<data source="population"> | |||
<label>Population</label> | |||
</data> | |||
<data source="schools"> | |||
<label>Schools</label> | |||
</data> | |||
<data source="firestations"> | |||
<label>Fire Stations</label> | |||
</data> | |||
</infobox><noinclude> | |||
<templatedata> | |||
{ | |||
"params": { | |||
"district": { | |||
"label": "District", | |||
"description": "City Council district", | |||
"example": "1", | |||
"type": "number", | |||
"suggestedvalues": [ | |||
"1", | |||
"2", | |||
"3", | |||
"4" | |||
] | |||
}, | |||
"quad": { | |||
"label": "Quadrant", | |||
"description": "City quadrant (or sextant)", | |||
"example": "North", | |||
"type": "string", | |||
"suggestedvalues": [ | |||
"North", | |||
"Northeast", | |||
"East", | |||
"Southeast", | |||
"South", | |||
"Southwest" | |||
] | |||
}, | |||
"population": { | |||
"label": "Population", | |||
"description": "Wikitext displaying the population and source", | |||
"example": "1,234 (2010 census)", | |||
"type": "content" | |||
}, | |||
"schools": { | |||
"label": "Schools", | |||
"description": "Wikitext listing schools in the neighborhood", | |||
"example": "* Elementary School", | |||
"type": "content" | |||
}, | |||
"firestations": { | |||
"label": "Firestations", | |||
"description": "Wikitext listing any fire stations in the neighborhood", | |||
"example": "* PF&R Station 99", | |||
"type": "content" | |||
} | |||
}, | |||
"description": "Display some neighborhood statistics.", | |||
"format": "block", | |||
"paramOrder": [ | |||
"quad", | |||
"district", | |||
"schools", | |||
"population", | |||
"firestations" | |||
] | |||
} | |||
</templatedata> | |||
Example: | |||
<nowiki> | |||
{{neighborhood | |||
| population = 1,234 | |||
| district = 4 | |||
| quad = Southwest | |||
| schools = | |||
* A Preschool | |||
* An Elementary School | |||
| firestations = | |||
* PF&R Station 99 | |||
}} | |||
</nowiki> | |||
</noinclude><includeonly> | |||
{{#if:{{{district|}}}|[[Category:District_{{{district}}}_Teams]]}} | |||
{{#if:{{{quad|}}}|[[Category:{{{quad}}}_Teams]]}} | |||
</includeonly> | |||
Revision as of 14:23, 1 May 2025
Display some neighborhood statistics.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Quadrant | quad | City quadrant (or sextant)
| String | optional |
| District | district | City Council district
| Number | optional |
| Schools | schools | Wikitext listing schools in the neighborhood
| Content | optional |
| Population | population | Wikitext displaying the population and source
| Content | optional |
| Firestations | firestations | Wikitext listing any fire stations in the neighborhood
| Content | optional |
Example:
{{neighborhood
| population = 1,234
| district = 4
| quad = Southwest
| schools =
* A Preschool
* An Elementary School
| firestations =
* PF&R Station 99
}}