Template:Alumni infobox: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 3: | Line 3: | ||
Use this template on all alumni pages. Copy the usage block below and fill in the fields. | Use this template on all alumni pages. Copy the usage block below and fill in the fields. | ||
Leave out any fields that do not apply — do not include the parameter at all if you have nothing to put in it. | |||
=== Parameters === | === Parameters === | ||
* '''name''' - Full name. Defaults to the page title if omitted. | * '''name''' - Full name. Defaults to the page title if omitted. | ||
* '''image''' - File name only. Example: <code>John_Smith.jpg</code> | * '''image''' - File name only. Example: <code>John_Smith.jpg</code> | ||
* '''nickname''' - Street or community nickname. | * '''nickname''' - Street or community nickname. Leave this out if not applicable. | ||
* '''class''' - Four-digit graduation year. Example: <code>1998</code> | * '''class''' - Four-digit graduation year. Example: <code>1998</code> | ||
* '''sport''' - Sport(s) played. | * '''sport''' - Sport(s) played. Leave this out if not applicable. | ||
* '''club''' - Club or extracurricular activity. Leave this out if not applicable. | |||
* ''' | * '''college''' - College attended. Leave this out if not applicable. | ||
* ''' | |||
=== Usage === | === Usage === | ||
<pre> | <pre> | ||
{{Alumni infobox | {{Alumni infobox | ||
| name | | name = | ||
| | | class = | ||
| sport = | |||
| club = | |||
| sport | | college = | ||
| | |||
| | |||
}} | }} | ||
</pre> | </pre> | ||
| Line 31: | Line 28: | ||
* The template automatically adds the page to '''Category:Alumni''' and to '''Category:Class of XXXX''' based on the class field. | * The template automatically adds the page to '''Category:Alumni''' and to '''Category:Class of XXXX''' based on the class field. | ||
* Add sport and achievement categories manually at the bottom of the page. See the [[Teepeedia:Category guide]]. | * Add sport and achievement categories manually at the bottom of the page. See the [[Teepeedia:Category guide]]. | ||
</noinclude><includeonly> | * Do not include optional parameters with blank values. Leave them out entirely. | ||
</noinclude><includeonly><table class="infobox" style="width:22em; text-align:left; font-size:90%; border-collapse:collapse; margin-left:1em; float:right;"> | |||
<tr> | |||
{{{name|{{PAGENAME}}}}} | <th colspan="2" style="text-align:center; font-size:120%; background:#F47920; color:#000000; padding:8px;"> | ||
{{{name|{{PAGENAME}}}}} | |||
</th> | |||
</tr> | |||
{{#if:{{{nickname|}}}| | {{#if:{{{nickname|}}}| | ||
<tr> | |||
<td colspan="2" style="text-align:center; font-style:italic; color:#555555; padding:4px;"> | |||
"{{{nickname}}}" | "{{{nickname}}}" | ||
</td> | |||
</tr> | |||
}} | }} | ||
{{#if:{{{image|}}}| | {{#if:{{{image|}}}| | ||
<tr> | |||
<td colspan="2" style="text-align:center; padding:8px;"> | |||
[[File:{{{image}}}|220px|center|{{{name|{{PAGENAME}}}}}]] | [[File:{{{image}}}|220px|center|{{{name|{{PAGENAME}}}}}]] | ||
</td> | |||
</tr> | |||
}} | }} | ||
<tr> | |||
<th style="padding:4px 8px; background:#f2f2f2; width:42%; border-top:1px solid #dddddd;">Class</th> | |||
<td style="padding:4px 8px; border-top:1px solid #dddddd;"> | |||
{{#if:{{{class|}}}|[[:Category:Class of {{{class}}}|Class of {{{class}}}]]|—}} | {{#if:{{{class|}}}|[[:Category:Class of {{{class}}}|Class of {{{class}}}]]|—}} | ||
</td> | |||
</tr> | |||
| | {{#if:{{{sport|}}}| | ||
<tr> | |||
<th style="padding:4px 8px; background:#f2f2f2; border-top:1px solid #dddddd;">Sport</th> | |||
{{{sport | <td style="padding:4px 8px; border-top:1px solid #dddddd;">{{{sport}}}</td> | ||
</tr> | |||
}} | |||
| | {{#if:{{{club|}}}| | ||
<tr> | |||
<th style="padding:4px 8px; background:#f2f2f2; border-top:1px solid #dddddd;">Club</th> | |||
{{{ | <td style="padding:4px 8px; border-top:1px solid #dddddd;">{{{club}}}</td> | ||
</tr> | |||
}} | |||
{{#if:{{{college|}}}| | {{#if:{{{college|}}}| | ||
<tr> | |||
<th style="padding:4px 8px; background:#f2f2f2; border-top:1px solid #dddddd;">College</th> | |||
<td style="padding:4px 8px; border-top:1px solid #dddddd;">{{{college}}}</td> | |||
{{{college}}} | </tr> | ||
}} | }} | ||
</table> | |||
[[Category:Alumni]] | [[Category:Alumni]] | ||
{{#if:{{{class|}}}|[[Category:Class of {{{class}}}]]}}</includeonly> | {{#if:{{{class|}}}|[[Category:Class of {{{class}}}]]}}</includeonly> | ||
Revision as of 10:54, 14 April 2026
Alumni Infobox
Use this template on all alumni pages. Copy the usage block below and fill in the fields. Leave out any fields that do not apply — do not include the parameter at all if you have nothing to put in it.
Parameters
- name - Full name. Defaults to the page title if omitted.
- image - File name only. Example:
John_Smith.jpg - nickname - Street or community nickname. Leave this out if not applicable.
- class - Four-digit graduation year. Example:
1998 - sport - Sport(s) played. Leave this out if not applicable.
- club - Club or extracurricular activity. Leave this out if not applicable.
- college - College attended. Leave this out if not applicable.
Usage
{{Alumni infobox
| name =
| class =
| sport =
| club =
| college =
}}
Notes
- The template automatically adds the page to Category:Alumni and to Category:Class of XXXX based on the class field.
- Add sport and achievement categories manually at the bottom of the page. See the Teepeedia:Category guide.
- Do not include optional parameters with blank values. Leave them out entirely.