Template:Neighborhood: Difference between revisions

From Portland NET Wiki
Jump to navigation Jump to search
mNo edit summary
use inverted icons
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
<infobox layout="stacked">
<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">
   <data source="district">
     <label>District</label>
     <label>District</label>
  </data>
    <format>[[:Category:District_{{{district}}}_Teams|District {{{district}}}]] <span class="district_logo">{{#switch:{{{district}}}
  <data source="quad">
              |1=[[File:TMrain.inv.png|link=:Category:District_{{{district}}}_Teams]]
    <label>Quadrant</label>
              |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>
   <data source="population">
   <data source="population">
Line 17: Line 22:
   <data source="firestations">
   <data source="firestations">
     <label>Fire Stations</label>
     <label>Fire Stations</label>
  </data>
  <data source="beecn">
    <label>[https://www.portland.gov/pbem/about-beecn BEECN Sites]</label>
   </data>
   </data>
</infobox><noinclude>
</infobox><noinclude>
Line 32: Line 40:
"3",
"3",
"4"
"4"
]
},
"quad": {
"label": "Quadrant",
"description": "City quadrant (or sextant)",
"example": "North",
"type": "string",
"suggestedvalues": [
"North",
"Northeast",
"East",
"Southeast",
"South",
"Southwest"
]
]
},
},
Line 57: Line 51:
"label": "Schools",
"label": "Schools",
"description": "Wikitext listing schools in the neighborhood",
"description": "Wikitext listing schools in the neighborhood",
"example": "<li>Preschool <li>Elementary School <li>Middle School",
"example": "* Elementary School",
"type": "content"
"type": "content"
},
},
Line 63: 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": "<li>PF&R Station 99",
"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": [
"quad",
"name",
"district",
"district",
"schools",
"schools",
"population",
"population",
"firestations"
"firestations",
"areatype",
"beecn"
]
]
}
}
</templatedata>
</templatedata>
</noinclude><includeonly>
Example:
{{#if:{{{district|}}}|[[Category:District_{{{district}}}_Teams]]}}
<nowiki>
{{#if:{{{quad|}}}|[[Category:{{{quad}}}_Teams]]}}
{{neighborhood
</includeonly>
| population = 1,234
| district = 4
| schools =
* A Preschool
* An Elementary School
| firestations =
* PF&R Station 99
}}
</nowiki>
</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.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

Name of a single neighborhood. Optional for single-neighborhood NETs. With a multi-neighborhood NET, use this parameter to label each individual neighborhood.

Default
{{SUBPAGENAME}} Neighborhood
Stringoptional
Districtdistrict

City Council district

Suggested values
1 2 3 4
Example
1
Numberoptional
Schoolsschools

Wikitext listing schools in the neighborhood

Example
* Elementary School
Contentoptional
Populationpopulation

Wikitext displaying the population and source

Example
1,234 (2010 census)
Contentoptional
Firestationsfirestations

Wikitext listing any fire stations in the neighborhood

Example
* PF&R Station 99
Contentoptional
areatypeareatype

Used when the area isn't technically a "neighborhood."

Default
Neighborhood
Example
(City)
Stringoptional
Nearby BEECN Sitesbeecn

no description

Example
* SE-34 (Col. Summers Park)
Contentoptional

Example:

{{neighborhood
| population = 1,234
| district = 4
| schools =
* A Preschool
* An Elementary School
| firestations =
* PF&R Station 99
}}