Template:Alumni infobox: Difference between revisions

From Teepeedia
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. Omit the field if not applicable.
* '''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. Example: <code>Football</code> or <code>Football, Track and Field</code>
* '''sport''' — Sport(s) played. Leave this out if not applicable.
* '''position''' — Position played. Example: <code>Wide Receiver</code>
* '''club''' — Club or extracurricular activity. Leave this out if not applicable.
* '''college''' — College attended. Omit if not applicable.
* '''college''' — College attended. Leave this out if not applicable.
* '''pro_career''' — Pro team(s) and years. Omit if not applicable.


=== Usage ===
=== Usage ===
<pre>
<pre>
{{Alumni infobox
{{Alumni infobox
| name       =  
| name   =  
| image      =
| class   =  
| nickname   =
| sport  =  
| class      =  
| club   =  
| sport     =
| college =  
| position   =  
| college   =  
| pro_career =  
}}
}}
</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>{| class="infobox" style="width:22em; text-align:left; font-size:90%; border-collapse:collapse; margin-left:1em; float:right;"
* 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;">


! colspan="2" style="text-align:center; font-size:120%; background:#F47920; color:#000000; padding:8px;" |
<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>
| colspan="2" style="text-align:center; font-style:italic; color:#555555; padding:4px;" |
  <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>
| colspan="2" style="text-align:center; padding:8px;" |
  <td colspan="2" style="text-align:center; padding:8px; border-top:1px solid #dddddd;">
[[File:{{{image}}}|220px|center|{{{name|{{PAGENAME}}}}}]]
    [[File:{{{image}}}|300px|center|{{{name|{{PAGENAME}}}}}]]
  </td>
</tr>
}}
}}


|-
<tr>
! style="padding:4px 8px; background:#f2f2f2; width:42%; border-top:1px solid #dddddd;" | Class
  <th style="padding:4px 8px; background:#f9f9f9; width:42%; border-top:1px solid #dddddd; font-weight:normal; color:#555555;">Class</th>
| style="padding:4px 8px; border-top:1px solid #dddddd;" |
  <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|}}}|
! style="padding:4px 8px; background:#f2f2f2; border-top:1px solid #dddddd;" | Sport
<tr>
| style="padding:4px 8px; border-top:1px solid #dddddd;" |
  <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|}}}|
! style="padding:4px 8px; background:#f2f2f2; border-top:1px solid #dddddd;" | Position
<tr>
| style="padding:4px 8px; border-top:1px solid #dddddd;" |
  <th style="padding:4px 8px; background:#f9f9f9; border-top:1px solid #dddddd; font-weight:normal; color:#555555;">Club</th>
{{{position|—}}}
  <td style="padding:4px 8px; border-top:1px solid #dddddd;">{{{club}}}</td>
</tr>
}}


{{#if:{{{college|}}}|
{{#if:{{{college|}}}|
|-
<tr>
! style="padding:4px 8px; background:#f2f2f2; border-top:1px solid #dddddd;" | College
  <th style="padding:4px 8px; background:#f9f9f9; border-top:1px solid #dddddd; font-weight:normal; color:#555555;">College</th>
| style="padding:4px 8px; border-top:1px solid #dddddd;" |
  <td style="padding:4px 8px; border-top:1px solid #dddddd;">{{{college}}}</td>
{{{college}}}
</tr>
}}
 
{{#if:{{{pro_career|}}}|
|-
! style="padding:4px 8px; background:#f2f2f2; border-top:1px solid #dddddd;" | Pro Career
| style="padding:4px 8px; border-top:1px solid #dddddd;" |
{{{pro_career}}}
}}
}}


|}
</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.