Template:Alumni infobox: Difference between revisions
Jump to navigation
Jump to search
Initial alumni infobox template |
No edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| 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; border:1px solid #dddddd;"> | |||
<tr> | |||
{{{name|{{PAGENAME}}}}} | <td colspan="2" style="text-align:center; font-size:115%; font-weight:bold; padding:10px 8px 4px 8px;"> | ||
{{{name|{{PAGENAME}}}}} | |||
</td> | |||
</tr> | |||
{{#if:{{{nickname|}}}| | {{#if:{{{nickname|}}}| | ||
<tr> | |||
<td colspan="2" style="text-align:center; font-style:italic; color:#555555; padding:2px 8px 8px 8px;"> | |||
"{{{nickname}}}" | "{{{nickname}}}" | ||
</td> | |||
</tr> | |||
}} | }} | ||
{{#if:{{{image|}}}| | {{#if:{{{image|}}}| | ||
<tr> | |||
<td colspan="2" style="text-align:center; padding:8px; border-top:1px solid #dddddd;"> | |||
[[File:{{{image}}}| | [[File:{{{image}}}|300px|center|{{{name|{{PAGENAME}}}}}]] | ||
</td> | |||
</tr> | |||
}} | }} | ||
<tr> | |||
<th style="padding:4px 8px; background:#f9f9f9; width:42%; border-top:1px solid #dddddd; font-weight:normal; color:#555555;">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:#f9f9f9; border-top:1px solid #dddddd; font-weight:normal; color:#555555;">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:#f9f9f9; border-top:1px solid #dddddd; font-weight:normal; color:#555555;">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:#f9f9f9; border-top:1px solid #dddddd; font-weight:normal; color:#555555;">College</th> | |||
<td style="padding:4px 8px; border-top:1px solid #dddddd;">{{{college}}}</td> | |||
</tr> | |||
{{{ | |||
}} | }} | ||
</table> | |||
[[Category:Alumni]] | [[Category:Alumni]] | ||
{{#if:{{{class|}}}|[[Category:Class of {{{class}}}]]}}</includeonly> | {{#if:{{{class|}}}|[[Category:Class of {{{class}}}]]}}</includeonly> | ||
Latest revision as of 19:28, 20 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.