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...)
 
 
(17 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| class="infobox" style="font-size: 90%; width: 22em; text-align: left; border: thin solid #999; margin: .2em; padding: .3em; float: right;"
{| 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: center;" {{!}}'''{{{type|City}}} of [[{{{name}}}]]'''
<!-- -->{{!}} colspan="2" style="text-align: center; background-color: #DBDABA" {{!}}'''{{{type|City}}} of {{{name}}}'''
|-
|-
!style="background-color: #DBDABA; font-size: 11px;" | Founded
<!-- -->{{!}} colspan="2" style="text-align: center;" {{!}}{{{logo|}}}
|style="background-color: #F5F5EC;" | [[{{{year}}}]]
|-
|-
!style="background-color: #DBDABA; font-size: 11px;" | Population
!style="background-color: #F5F5EC; font-size: 11px;" | Incorporated
|style="background-color: #F5F5EC;"  | {{{population}}}
|style="background-color: #FFFFFF;"  | [[{{{year}}}]]{{{year2|}}}
|-
|-
!style="background-color: #DBDABA; font-size: 11px;" | [[Mayor of {{{name}}}|Mayor]]
!style="background-color: #F5F5EC; font-size: 11px;" | Population
|style="background-color: #F5F5EC;"  | [[{{{mayor}}}]]
|style="background-color: #FFFFFF;"  | {{{population}}}
|-
|-
!style="background-color: #DBDABA; font-size: 11px;" | School district
!style="background-color: #F5F5EC; font-size: 11px;" | [[Mayor of {{{name}}}|Mayor]]
|style="background-color: #F5F5EC;"  | [[{{{schools|{{{name}}} City Schools}}}]]
|style="background-color: #FFFFFF;"  | [[{{{mayor}}}]]
|-
|-
!style="background-color: #DBDABA; font-size: 11px;" | Web site
!style="background-color: #F5F5EC; font-size: 11px;" | School district
|style="background-color: #F5F5EC;"  | {{{website}}}
|style="background-color: #FFFFFF;"  | [[{{{schools|{{{name}}} City Schools}}}]]
|-
|-
!style="background-color: #DBDABA; font-size: 11px;" | [[:Category:{{{name}}}|Additional Topics]]
!style="background-color: #F5F5EC; font-size: 11px;" | Government
| style="background-color: #F5F5EC;" |
| style="background-color: #FFFFFF;" |
[[{{{council|{{{name}}} City Council}}}]]<br>
[[{{{council|{{{name}}} {{{type|City}}} Council}}}]]<br>
[[{{{fire|{{{name}}} Fire Department}}}]]<br>
[[{{{fire|{{{name}}} Fire Department}}}]]<br>
[[{{{name}}} Police Department]]
[[{{{police|{{{name}}} Police Department}}}]]
|-
!style="background-color: #F5F5EC; font-size: 11px;" | Web site
|style="background-color: #FFFFFF;"  | {{{website|None}}}
|-
<!-- -->{{!}} colspan="2" style="text-align: center;" {{!}}{{{map|}}}
|-
<!-- -->{{!}} colspan="2" style="text-align: center; background-color: #F5F5EC" {{!}}[http://maps.google.com/maps?q={{{locate|{{{name}}}}}},+{{{state|AL}}}&z={{{zoom|12}}}&t={{{maptype|m}}} Locate with Google Maps]
|}<noinclude>
|}<noinclude>
==Usage==
==Usage==
This template is for cities and towns.  The following parameters are '''required''':
This template is for cities and towns.  The following parameters are '''required''':
* '''name''' (name of the city or town)
* '''name''' (name of the city or town)
* '''year''' (year the city was founded)
* '''year''' (year the city was incorporated)
* '''population''' (self-explanatory)
* '''population''' (self-explanatory)
* '''mayor''' (name of the mayor)
* '''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:
The following parameters are '''optional''', but will display the default if not specified:
* '''type''' (usually "Town" or "City"; defaults to "City")
* '''type''' (usually "Town" or "City"; defaults to "City")
* '''logo''' (image of city logo; include full image format (e.g. <nowiki>[[Image:Birmingham city logo.jpg|250px]]</nowiki>); defaults to blank space)
* '''schools''' (the school district; defaults to "'''name''' City Schools")
* '''schools''' (the school district; defaults to "'''name''' City Schools")
* '''council''' (the city's governing body; defaults to "'''name''' City Council")
* '''council''' (the city's governing body; defaults to "'''name''' '''type''' Council", if type is specified, else "'''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")
* '''police''' (the city's police department; defaults to "'''name''' Police Department")
* '''website''' (official web site for the city; use normal external link format (e.g. <nowiki>[https://www.birminghamal.gov/ birminghamal.gov]</nowiki>); defaults to "None")
* '''map''' (map of city location; include full image format (e.g. <nowiki>[[Image:Vestavia Hills map.png|255px]]</nowiki>); defaults to blank space)
This parameter is '''optional''' (and was added for [[Adamsville]]):
* '''year2''' (additional text after the year of incorporation; does ''not'' automatically link)
These parameters are also '''optional''', having to do with the Google Maps link:
*'''locate''' (city name for link; defaults to "'''name'''"; used when the name has spaces, which should be replaced with plus signs (+) (e.g. locate=Vestavia+Hills))
*'''state''' (defaults to "AL")
*'''zoom''' (0-17, recommended 10-16; defaults to 12)
*'''maptype''' ("m" for map (default), "k" for satellite, "h" for hybrid)


== Example ==
== Example ==
Line 44: Line 62:
{{Infobox City | name=Birmingham
{{Infobox City | name=Birmingham
| year=1871
| year=1871
| population=242,820
| population=209,400
| mayor=Bernard Kincaid
| mayor=Randall Woodfin
| website=[http://www.informationbirmingham.com/ informationbirmingham.com]
| website=[https://www.birminghamal.gov/ birminghamal.gov]
| fire=Birmingham Fire and Rescue Service
| fire=Birmingham Fire and Rescue Service
}}
}}
Line 54: Line 72:
{| class="infobox" style="font-size: 90%; width: 22em; text-align: left; border: thin solid #999; margin: .2em; padding: .3em; float: right;"
{| 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: center;" {{!}}'''City of [[Birmingham]]'''
<!-- -->{{!}} colspan="2" style="text-align: center; background-color: #DBDABA" {{!}}'''City of Birmingham'''
|-
|-
!style="background-color: #DBDABA; font-size: 11px;" | Founded
<!-- -->{{!}} colspan="2" style="text-align: center;" {{!}}
|style="background-color: #F5F5EC;" | [[1871]]
|-
|-
!style="background-color: #DBDABA; font-size: 11px;" | Population
!style="background-color: #F5F5EC; font-size: 11px;" | Incorporated
|style="background-color: #F5F5EC;"  | 242,820
|style="background-color: #FFFFFF;"  | [[1871]]
|-
|-
!style="background-color: #DBDABA; font-size: 11px;" | [[Mayor of Birmingham|Mayor]]
!style="background-color: #F5F5EC; font-size: 11px;" | Population
|style="background-color: #F5F5EC;"  | [[Bernard Kincaid]]
|style="background-color: #FFFFFF;"  | 209,400
|-
|-
!style="background-color: #DBDABA; font-size: 11px;" | School district
!style="background-color: #F5F5EC; font-size: 11px;" | [[Mayor of Birmingham|Mayor]]
|style="background-color: #F5F5EC;"  | [[Birmingham City Schools]]
|style="background-color: #FFFFFF;"  | [[Randall Woodfin]]
|-
|-
!style="background-color: #DBDABA; font-size: 11px;" | Web site
!style="background-color: #F5F5EC; font-size: 11px;" | School district
|style="background-color: #F5F5EC;"  | [http://www.informationbirmingham.com/ informationbirmingham.com]
|style="background-color: #FFFFFF;"  | [[Birmingham City Schools]]
|-
|-
!style="background-color: #DBDABA; font-size: 11px;" | [[:Category:Birmingham|Additional Topics]]
!style="background-color: #F5F5EC; font-size: 11px;" | Government
| style="background-color: #F5F5EC;" |
| style="background-color: #FFFFFF;" |
[[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: #F5F5EC; font-size: 11px;" | Web site
|style="background-color: #FFFFFF;"  | [https://www.birminghamal.gov/ birminghamal.gov]
|-
<!-- -->{{!}} colspan="2" style="text-align: center;" {{!}}
|-
<!-- -->{{!}} 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:Infobox templates|City]]
</noinclude>
</noinclude>

Latest revision as of 08:42, 21 August 2020

City of {{{name}}}
Incorporated [[{{{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 None
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 incorporated)
  • population (self-explanatory)
  • mayor (name of the mayor)

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

  • type (usually "Town" or "City"; defaults to "City")
  • logo (image of city logo; include full image format (e.g. [[Image:Birmingham city logo.jpg|250px]]); defaults to blank space)
  • schools (the school district; defaults to "name City Schools")
  • council (the city's governing body; defaults to "name type Council", if type is specified, else "name City Council")
  • fire (the city's fire department; defaults to "name Fire Department")
  • police (the city's police department; defaults to "name Police Department")
  • website (official web site for the city; use normal external link format (e.g. [https://www.birminghamal.gov/ birminghamal.gov]); defaults to "None")
  • map (map of city location; include full image format (e.g. [[Image:Vestavia Hills map.png|255px]]); defaults to blank space)

This parameter is optional (and was added for Adamsville):

  • year2 (additional text after the year of incorporation; does not automatically link)

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

  • locate (city name for link; defaults to "name"; used when the name has spaces, which should be replaced with plus signs (+) (e.g. locate=Vestavia+Hills))
  • state (defaults to "AL")
  • zoom (0-17, recommended 10-16; defaults to 12)
  • maptype ("m" for map (default), "k" for satellite, "h" for hybrid)

Example

{{Infobox City | name=Birmingham
| year=1871
| population=209,400
| mayor=Randall Woodfin
| website=[https://www.birminghamal.gov/ birminghamal.gov]
| fire=Birmingham Fire and Rescue Service
}}
City of Birmingham
Incorporated 1871
Population 209,400
Mayor Randall Woodfin
School district Birmingham City Schools
Government

Birmingham City Council
Birmingham Fire and Rescue Service
Birmingham Police Department

Web site birminghamal.gov
Locate with Google Maps