Template:Infobox School: Difference between revisions

From Bhamwiki
Jump to navigation Jump to search
(Making image optional)
(Matching style of Template:Infobox City)
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;" {{!}}'''{{{name}}}'''
<!-- -->{{!}} colspan="2" style="text-align: center; background-color: #DBDABA;" {{!}}'''{{{name}}}'''
|-
|-
<!-- -->{{!}} colspan="2" style="text-align:center; border-bottom: 1px solid DimGray;" {{!}}{{{image|}}}
<!-- -->{{!}} colspan="2" style="text-align:center;" {{!}}{{{image|}}}
|-
|-
<!-- -->! Established
!style="background-color: #F5F5EC; font-size: 11px;" | Established
<!-- -->{{!}}{{{established}}}
<!-- -->{{!}}{{{established}}}
|-
|-
<!-- -->! School type
!style="background-color: #F5F5EC; font-size: 11px;" | School type
<!-- -->{{!}}{{{type|Public}}}
<!-- -->{{!}}{{{type|Public}}}
|-
|-
<!-- -->! District
!style="background-color: #F5F5EC; font-size: 11px;" | District
<!-- -->{{!}}{{{district}}}
<!-- -->{{!}}{{{district}}}
|-
|-
<!-- -->! Grades
!style="background-color: #F5F5EC; font-size: 11px;" | Grades
<!-- -->{{!}}{{{grades}}}
<!-- -->{{!}}{{{grades}}}
|-
|-
<!-- -->! Principal
!style="background-color: #F5F5EC; font-size: 11px;" | Principal
<!-- -->{{!}}{{{principal}}}
<!-- -->{{!}}{{{principal}}}
|-
|-
<!-- -->! Enrollment ({{{enroll-year}}})
!style="background-color: #F5F5EC; font-size: 11px;" | Enrollment ({{{enroll-year}}})
<!-- -->{{!}}{{{enrollment}}}
<!-- -->{{!}}{{{enrollment}}}
|-
|-
<!-- -->! Colors
!style="background-color: #F5F5EC; font-size: 11px;" | Colors
<!-- -->{{!}}{{{colors}}}
<!-- -->{{!}}{{{colors}}}
|-
|-
<!-- -->! Mascot
!style="background-color: #F5F5EC; font-size: 11px;" | Mascot
<!-- -->{{!}}{{{mascot}}}
<!-- -->{{!}}{{{mascot}}}
|-
|-
<!-- -->! Location
!style="background-color: #F5F5EC; font-size: 11px;" | Location
<!-- -->{{!}}{{{location}}}
<!-- -->{{!}}{{{location}}}
|-
|-
<!-- -->! Website
!style="background-color: #F5F5EC; font-size: 11px;" | Website
<!-- -->{{!}}{{{website}}}
<!-- -->{{!}}{{{website}}}
|}<noinclude>
|}<noinclude>

Revision as of 14:40, 7 August 2007

{{{name}}}
Established {{{established}}}
School type Public
District {{{district}}}
Grades {{{grades}}}
Principal {{{principal}}}
Enrollment ({{{enroll-year}}}) {{{enrollment}}}
Colors {{{colors}}}
Mascot {{{mascot}}}
Location {{{location}}}
Website {{{website}}}

Usage

All fields are required except type, which will default to "Public" if left out, and image, which defaults to blank space. The downside of this particular template is that it requires an image.

 

Example

{{Infobox_School
|name           =George Washington Elementary
|image          =[[Image:Washington_Elementary.jpg|200px]]
|established    =1776
|district       =[[District of Columbia Public Schools]]
|grades         =K-12
|principal      =[[Abe Lincoln]]
|enrollment     =1,000
|enroll-year    =2005
|colors         =Red, white, blue
|mascot         =Uncle Sam
|location       =100 [[Pennsylvania Avenue]]<br>[[Washington]], D.C.
|website        =[http://www.example.com example.com]
}}
George Washington Elementary
File:Washington Elementary.jpg
Established 1776
School type Public
District District of Columbia Public Schools
Grades K-12
Principal Abe Lincoln
Enrollment (2005) 1,000
Colors Red, white, blue
Mascot Uncle Sam
Location 100 Pennsylvania Avenue
Washington, D.C.
Website example.com