Template:Infobox School: Difference between revisions

From Bhamwiki
Jump to navigation Jump to search
(Need a better way to test this.)
(Making image optional)
Line 3: Line 3:
<!-- -->{{!}} colspan="2" style="text-align: center;" {{!}}'''{{{name}}}'''
<!-- -->{{!}} colspan="2" style="text-align: center;" {{!}}'''{{{name}}}'''
|-
|-
<!-- -->{{!}} colspan="2" style="text-align:center; border-bottom: 1px solid DimGray;" {{!}}{{{image<noinclude>|[[Image:school logo or photo.jpg]]</noinclude>}}}
<!-- -->{{!}} colspan="2" style="text-align:center; border-bottom: 1px solid DimGray;" {{!}}{{{image|}}}
|-
|-
<!-- -->! Established
<!-- -->! Established
Line 37: Line 37:


==Usage==
==Usage==
All fields are required except ''<nowiki>type</nowiki>'', which will default to "Public" if left out.  The downside of this particular template is that it requires an image.
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 below.
<div style="clear: right;">&nbsp;</div>


==Example==
<div style="clear: right; padding-top: 1em;">
<div style="clear: right; padding-top: 1em;">
<pre>
<pre>
Line 59: Line 60:
</pre>
</pre>
</div>
</div>
{| 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;" {{!}}'''George Washington Elementary'''
|-
<!-- -->{{!}} colspan="2" style="text-align:center; border-bottom: 1px solid DimGray;" {{!}}[[Image:Washington_Elementary.jpg|200px]]
|-
<!-- -->! 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]]<br>[[Washington]], D.C.
|-
<!-- -->! Website
<!-- -->{{!}}[http://www.example.com example.com]
|}


[[Category:Bhamwiki templates|{{PAGENAME}}]]
[[Category:Bhamwiki templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revision as of 11:09, 26 July 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