Template:Neighborhood: Difference between revisions
Jump to navigation
Jump to search
Created page with "<infobox layout="stacked"> <title source="name"> <default>{{SUBPAGENAME}} Neighborhood</default> </title> <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": { "population": { "label": "Population", "description": "Wikitext displaying the population and..." |
use inverted icons |
||
| (20 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<infobox | <infobox theme="neighborhood"> | ||
<title source="name"> | <title source="name"> | ||
<default>{{SUBPAGENAME}} Neighborhood</default> | <format>{{{name}}} {{{areatype|Neighborhood}}}</format> | ||
<default>{{SUBPAGENAME}} {{{areatype|Neighborhood}}}</default> | |||
</title> | </title> | ||
<data source="district"> | |||
<label>District</label> | |||
<format>[[:Category:District_{{{district}}}_Teams|District {{{district}}}]] <span class="district_logo">{{#switch:{{{district}}} | |||
|1=[[File:TMrain.inv.png|link=:Category:District_{{{district}}}_Teams]] | |||
|2=[[File:TMsalmon.inv.png|link=:Category:District_{{{district}}}_Teams]] | |||
|3=[[File:TMleaf.inv.png|link=:Category:District_{{{district}}}_Teams]] | |||
|4=[[File:TMrose.inv.png|link=:Category:District_{{{district}}}_Teams]] | |||
}}</span> | |||
</format> | |||
</data> | |||
<data source="population"> | <data source="population"> | ||
<label>Population</label> | <label>Population</label> | ||
| Line 12: | Line 23: | ||
<label>Fire Stations</label> | <label>Fire Stations</label> | ||
</data> | </data> | ||
</infobox> | <data source="beecn"> | ||
<noinclude> | <label>[https://www.portland.gov/pbem/about-beecn BEECN Sites]</label> | ||
</data> | |||
</infobox><noinclude> | |||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | "params": { | ||
"district": { | |||
"label": "District", | |||
"description": "City Council district", | |||
"example": "1", | |||
"type": "number", | |||
"suggestedvalues": [ | |||
"1", | |||
"2", | |||
"3", | |||
"4" | |||
] | |||
}, | |||
"population": { | "population": { | ||
"label": "Population", | "label": "Population", | ||
| Line 26: | Line 51: | ||
"label": "Schools", | "label": "Schools", | ||
"description": "Wikitext listing schools in the neighborhood", | "description": "Wikitext listing schools in the neighborhood", | ||
"example": " | "example": "* Elementary School", | ||
"type": "content" | "type": "content" | ||
}, | }, | ||
| Line 32: | Line 57: | ||
"label": "Firestations", | "label": "Firestations", | ||
"description": "Wikitext listing any fire stations in the neighborhood", | "description": "Wikitext listing any fire stations in the neighborhood", | ||
"example": " | "example": "* PF&R Station 99", | ||
"type": "content" | |||
}, | |||
"name": { | |||
"label": "Name", | |||
"description": "Name of a single neighborhood. Optional for single-neighborhood NETs. With a multi-neighborhood NET, use this parameter to label each individual neighborhood.", | |||
"type": "string", | |||
"default": "{{SUBPAGENAME}} Neighborhood" | |||
}, | |||
"areatype": { | |||
"label": "areatype", | |||
"description": "Used when the area isn't technically a \"neighborhood.\"", | |||
"example": "(City)", | |||
"type": "string", | |||
"default": "Neighborhood" | |||
}, | |||
"beecn": { | |||
"label": "Nearby BEECN Sites", | |||
"example": "* SE-34 (Col. Summers Park)", | |||
"type": "content" | "type": "content" | ||
} | } | ||
}, | }, | ||
"description": "Display some neighborhood statistics.", | "description": "Display some neighborhood statistics.\n\nWhen a single combined NET team serves multiple neighborhoods, use this template multiple times on the Team page.", | ||
"format": "block", | "format": "block", | ||
"paramOrder": [ | "paramOrder": [ | ||
"name", | |||
"district", | |||
"schools", | "schools", | ||
"population", | "population", | ||
"firestations" | "firestations", | ||
"areatype", | |||
"beecn" | |||
] | ] | ||
} | } | ||
</templatedata> | </templatedata> | ||
Example: | |||
<nowiki> | |||
{{neighborhood | |||
| population = 1,234 | |||
| district = 4 | |||
| schools = | |||
* A Preschool | |||
* An Elementary School | |||
| firestations = | |||
* PF&R Station 99 | |||
}} | |||
</nowiki> | |||
</noinclude> | </noinclude> | ||
<includeonly>{{#if:{{{district|}}}|[[Category:District_{{{district}}}_Teams]]}}</includeonly> | |||
Latest revision as of 14:58, 15 May 2025
Display some neighborhood statistics. When a single combined NET team serves multiple neighborhoods, use this template multiple times on the Team page.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | name | Name of a single neighborhood. Optional for single-neighborhood NETs. With a multi-neighborhood NET, use this parameter to label each individual neighborhood.
| 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 |
| areatype | areatype | Used when the area isn't technically a "neighborhood."
| String | optional |
| Nearby BEECN Sites | beecn | no description
| Content | optional |
Example:
{{neighborhood
| population = 1,234
| district = 4
| schools =
* A Preschool
* An Elementary School
| firestations =
* PF&R Station 99
}}