Template:Infobox City: Difference between revisions

From Bhamwiki
Jump to navigation Jump to search
(New page: {| class="infobox" style="font-size: 90%; width: 22em; text-align: left; border: thin solid #999; margin: .2em; padding: .3em; float: right;" |- <!-- -->{{!}} colspan="2" style="text-align...)
 
(Added Google Maps link)
Line 15: Line 15:
|style="background-color: #F5F5EC;"  | [[{{{schools|{{{name}}} City Schools}}}]]
|style="background-color: #F5F5EC;"  | [[{{{schools|{{{name}}} City Schools}}}]]
|-
|-
!style="background-color: #DBDABA; font-size: 11px;" | Web site
!style="background-color: #DBDABA; font-size: 11px;" | Government
|style="background-color: #F5F5EC;"  | {{{website}}}
|-
!style="background-color: #DBDABA; font-size: 11px;" | [[:Category:{{{name}}}|Additional Topics]]
| style="background-color: #F5F5EC;" |
| style="background-color: #F5F5EC;" |
[[{{{council|{{{name}}} City Council}}}]]<br>
[[{{{council|{{{name}}} City Council}}}]]<br>
[[{{{fire|{{{name}}} Fire Department}}}]]<br>
[[{{{fire|{{{name}}} Fire Department}}}]]<br>
[[{{{name}}} Police Department]]
[[{{{name}}} Police Department]]
|-
!style="background-color: #DBDABA; font-size: 11px;" | Web site
|style="background-color: #F5F5EC;"  | {{{website}}}
|-
<!-- -->{{!}} colspan="2" style="text-align: center;" {{!}}[http://maps.google.com/maps?q={{{name}}},+{{{state|AL}}}&z={{{zoom|12}}}&t={{{type|m}}} Locate with Google Maps]
|}<noinclude>
|}<noinclude>
==Usage==
==Usage==
Line 37: Line 39:
* '''council''' (the city's governing body; defaults to "'''name''' City Council")
* '''council''' (the city's governing body; defaults to "'''name''' City Council")
* '''fire''' (the city's fire department; defaults to "'''name''' Fire Department")
* '''fire''' (the city's fire department; defaults to "'''name''' Fire Department")
These parameters are also '''optional''', having to do with the Google Maps link:
*'''state''' (defaults to "AL")
*'''zoom''' (0-17, recommended 10-16; defaults to 12)
*'''type''' ("m" for map (default), "k" for satellite, "h" for hybrid)


== Example ==
== Example ==
Line 68: Line 75:
|style="background-color: #F5F5EC;"  | [[Birmingham City Schools]]
|style="background-color: #F5F5EC;"  | [[Birmingham City Schools]]
|-
|-
!style="background-color: #DBDABA; font-size: 11px;" | Web site
!style="background-color: #DBDABA; font-size: 11px;" | Government
|style="background-color: #F5F5EC;"  | [http://www.informationbirmingham.com/ informationbirmingham.com]
|-
!style="background-color: #DBDABA; font-size: 11px;" | [[:Category:Birmingham|Additional Topics]]
| style="background-color: #F5F5EC;" |
| style="background-color: #F5F5EC;" |
[[Birmingham City Council]]<br>
[[Birmingham City Council]]<br>
[[Birmingham Fire and Rescue Service]]<br>
[[Birmingham Fire and Rescue Service]]<br>
[[Birmingham Police Department]]
[[Birmingham Police Department]]
|-
!style="background-color: #DBDABA; font-size: 11px;" | Web site
|style="background-color: #F5F5EC;"  | [http://www.informationbirmingham.com/ informationbirmingham.com]
|-
<!-- -->{{!}} colspan="2" style="text-align: center;" {{!}}[http://maps.google.com/maps?q=Birmingham,+AL&z=12&t=m Locate with Google Maps]
|}
|}
[[Category:Bhamwiki templates]]
[[Category:Bhamwiki templates]]
</noinclude>
</noinclude>

Revision as of 22:54, 25 July 2007

City of [[{{{name}}}]]
Founded [[{{{year}}}]]
Population {{{population}}}
[[Mayor of {{{name}}}|Mayor]] [[{{{mayor}}}]]
School district [[{{{name}}} City Schools]]
Government

[[{{{name}}} City Council]]
[[{{{name}}} Fire Department]]
[[{{{name}}} Police Department]]

Web site {{{website}}}
Locate with Google Maps

Usage

This template is for cities and towns. The following parameters are required:

  • name (name of the city or town)
  • year (year the city was founded)
  • population (self-explanatory)
  • mayor (name of the mayor)
  • website (official web site for the city)

The following parameters are optional, but will display the default if not specified:

  • type (usually "Town" or "City"; defaults to "City")
  • schools (the school district; defaults to "name City Schools")
  • council (the city's governing body; defaults to "name City Council")
  • fire (the city's fire department; defaults to "name Fire Department")

These parameters are also optional, having to do with the Google Maps link:

  • state (defaults to "AL")
  • zoom (0-17, recommended 10-16; defaults to 12)
  • type ("m" for map (default), "k" for satellite, "h" for hybrid)

Example

{{Infobox City | name=Birmingham
| year=1871
| population=242,820
| mayor=Bernard Kincaid
| website=[http://www.informationbirmingham.com/ informationbirmingham.com]
| fire=Birmingham Fire and Rescue Service
}}
City of Birmingham
Founded 1871
Population 242,820
Mayor Bernard Kincaid
School district Birmingham City Schools
Government

Birmingham City Council
Birmingham Fire and Rescue Service
Birmingham Police Department

Web site informationbirmingham.com
Locate with Google Maps