User:HollisBlanchard/NeighborhoodTest: Difference between revisions

From Portland NET Wiki
default layout
No edit summary
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">
   <data source="district">
     <label>District</label>
     <label>District</label>
     <format>[[:Category:District_{{{district}}}_Teams|{{{district}}}]] <span class="district_logo">{{#switch:{{{district}}}
     <format>[[:Category:District_{{{district}}}_Teams|District {{{district}}}]] <span class="district_logo">{{#switch:{{{district}}}
               |1=[[File:TMrain.png]]
               |1=[[File:TMrain.png|link=:Category:District_{{{district}}}_Teams]]
               |3=[[File:TMleaf.png]]
              |2=[[File:TMsalmon.png|link=:Category:District_{{{district}}}_Teams]]
               |3=[[File:TMleaf.png|link=:Category:District_{{{district}}}_Teams]]
              |4=[[File:TMrose.png|link=:Category:District_{{{district}}}_Teams]]
               }}</span></format>
               }}</span></format>
  </data>
  <data source="quad">
    <label>Quadrant</label>
    <format>[[:Category:{{{quad}}}_Teams|{{{quad}}}]]</format>
   </data>
   </data>
   <data source="population">
   <data source="population">
Line 22: Line 21:
   <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 37: Line 39:
"3",
"3",
"4"
"4"
]
},
"quad": {
"label": "Quadrant",
"description": "City quadrant (or sextant)",
"example": "North",
"type": "string",
"suggestedvalues": [
"North",
"Northeast",
"East",
"Southeast",
"South",
"Southwest"
]
]
},
},
Line 69: Line 57:
"description": "Wikitext listing any fire stations in the neighborhood",
"description": "Wikitext listing any fire stations in the neighborhood",
"example": "* 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"
]
]
}
}
Line 88: Line 96:
| population = 1,234
| population = 1,234
| district = 4
| district = 4
| quad = Southwest
| schools =
| schools =
* A Preschool
* A Preschool
Line 98: Line 105:
</noinclude><includeonly>
</noinclude><includeonly>
{{#if:{{{district|}}}|[[Category:District_{{{district}}}_Teams]]}}
{{#if:{{{district|}}}|[[Category:District_{{{district}}}_Teams]]}}
{{#if:{{{quad|}}}|[[Category:{{{quad}}}_Teams]]}}
</includeonly>
</includeonly>