Template:Neighborhood: Difference between revisions

From Portland NET Wiki
use default layout, consuming less vertical space, especially important for multi-neighborhood team pages
use inverted icons
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<infobox>
<infobox theme="neighborhood">
   <title source="name">
   <title source="name">
     <format>{{{name}}} Neighborhood</format>
     <format>{{{name}}} {{{areatype|Neighborhood}}}</format>
     <default>{{SUBPAGENAME}} Neighborhood</default>
     <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}}}]]</format>
     <format>[[:Category:District_{{{district}}}_Teams|District {{{district}}}]] <span class="district_logo">{{#switch:{{{district}}}
  </data>
              |1=[[File:TMrain.inv.png|link=:Category:District_{{{district}}}_Teams]]
  <data source="quad">
              |2=[[File:TMsalmon.inv.png|link=:Category:District_{{{district}}}_Teams]]
    <label>Quadrant</label>
              |3=[[File:TMleaf.inv.png|link=:Category:District_{{{district}}}_Teams]]
    <format>[[:Category:{{{quad}}}_Teams|{{{quad}}}]]</format>
              |4=[[File:TMrose.inv.png|link=:Category:District_{{{district}}}_Teams]]
              }}</span>
    </format>
   </data>
   </data>
   <data source="population">
   <data source="population">
Line 20: 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 35: 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 74: Line 65:
"type": "string",
"type": "string",
"default": "{{SUBPAGENAME}} Neighborhood"
"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"
}
}
},
},
Line 80: Line 83:
"paramOrder": [
"paramOrder": [
"name",
"name",
"quad",
"district",
"district",
"schools",
"schools",
"population",
"population",
"firestations"
"firestations",
"areatype",
"beecn"
]
]
}
}
Line 93: Line 97:
| population = 1,234
| population = 1,234
| district = 4
| district = 4
| quad = Southwest
| schools =
| schools =
* A Preschool
* A Preschool
Line 101: Line 104:
}}
}}
</nowiki>
</nowiki>
</noinclude><includeonly>
</noinclude>
{{#if:{{{district|}}}|[[Category:District_{{{district}}}_Teams]]}}
<includeonly>{{#if:{{{district|}}}|[[Category:District_{{{district}}}_Teams]]}}</includeonly>
{{#if:{{{quad|}}}|[[Category:{{{quad}}}_Teams]]}}
</includeonly>