Difference between revisions of "Template:Infobox Person"

From TAMS Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
<div class="infobox">
 
<div class="infobox">
 
+
<div class="infobox-title">{{PAGENAME}}</div>{{#if:{{{image|}}}|<div class="infobox-image">[[File:{{{image}}}|300px]]</div>}}{{#if:{{{nickname|}}} {{{pronoun|}}} {{{known-for|}}} {{{website|}}}|<table>{{#if:{{{nickname|}}}|<tr>
<div class="infobox-title">{{PAGENAME}}</div>
 
 
 
{{#if:{{{image|}}}|<div class="infobox-image">[[File:{{{image}}}|300px]]</div>}}
 
 
 
<table>
 
{{#if:{{{class-of|}}}|<tr>
 
    <th>Class of</th>
 
    <td>[[:Category:Class of {{{class-of}}}|{{{class-of}}}]]</td>
 
</tr>}}
 
 
 
{{#if:{{{wing|}}}|<tr>
 
    <th>Wing(s)</th>
 
    <td>{{{wing}}}</td>
 
</tr>}}
 
 
 
{{#if:{{{room-number|}}}|<tr>
 
    <th>Room(s)</th>
 
    <td>{{{room-number}}}</td>
 
</tr>}}
 
 
 
{{#if:{{{roommate|}}}|<tr>
 
    <th>Roommate(s)</th>
 
    <td>{{{roommate}}}</td>
 
</tr>}}
 
 
 
{{#if:{{{track|}}}|<tr>
 
    <th>Track</th>
 
    <td>[[{{{track}}} Track|{{{track}}}]]</td>
 
</tr>}}
 
</table>
 
{{#if:{{{education-after-tams|occupation-after-tams|}}}|
 
<div class="infobox-title">TAMS-Related</div>}}
 
 
 
<table>
 
{{#if:{{{prior-high-school|}}}|<tr>
 
    <th>Prior High School</th>
 
    <td>{{{prior-high-school}}}</td>
 
</tr>}}
 
 
 
{{#if:{{{education-after-tams|}}}|<tr>
 
    <th>Education(s)</th>
 
    <td>{{{education-after-tams}}}</td>
 
</tr>}}
 
 
 
{{#if:{{{occupation-after-tams|}}}|<tr>
 
    <th>Occupation</th>
 
    <td>{{{occupation-after-tams}}}</td>
 
</tr>}}
 
 
 
{{#if:{{{nickname|}}}|<tr>
 
 
     <th>Nickname(s)</th>
 
     <th>Nickname(s)</th>
 
     <td>{{{nickname}}}</td>
 
     <td>{{{nickname}}}</td>
 
</tr>}}
 
</tr>}}
 
 
{{#if:{{{pronoun|}}}|<tr>
 
{{#if:{{{pronoun|}}}|<tr>
 
     <th>Pronoun(s)</th>
 
     <th>Pronoun(s)</th>
 
     <td>{{{pronoun}}}</td>
 
     <td>{{{pronoun}}}</td>
 
</tr>}}
 
</tr>}}
 
 
{{#if:{{{known-for|}}}|<tr>
 
{{#if:{{{known-for|}}}|<tr>
 
     <th>Known for</th>
 
     <th>Known for</th>
 
     <td>{{{known-for}}}</td>
 
     <td>{{{known-for}}}</td>
 
</tr>}}
 
</tr>}}
 
{{#if:{{{clubs|}}}|<tr>
 
    <th>Club(s)</th>
 
    <td>{{{clubs}}}</td>
 
</tr>}}
 
</table>
 
 
<div class="infobox-title">Research-Related</div>
 
<table>
 
{{#if:{{{senior-quote|}}}|<tr>
 
    <th>Senior Quote</th>
 
    <td>{{{senior-quote}}}</td>
 
</tr>}}
 
 
 
{{#if:{{{website|}}}|<tr>
 
{{#if:{{{website|}}}|<tr>
 
     <th>Website</th>
 
     <th>Website</th>
 
     <td>{{{website}}}</td>
 
     <td>{{{website}}}</td>
 
</tr>}}
 
</tr>}}
</table>
+
</table>}}{{#if:{{{education-after-tams|}}} {{{class-of|}}} {{{occupation-after-tams|}}}|<div class="infobox-title">TAMS-Related</div>
 +
    <table>
 +
    {{#if:{{{class-of|}}}|<tr>
 +
        <th>Class of</th>
 +
        <td>[[:Category:Class of {{{class-of}}}|{{{class-of}}}]]</td>
 +
    </tr>}}
 +
    {{#if:{{{track|}}}|<tr>
 +
        <th>Track</th>
 +
        <td>[[{{{track}}} Track|{{{track}}}]]</td>
 +
    </tr>}}
 +
    {{#if:{{{wing|}}}|<tr>
 +
        <th>Wing(s)</th>
 +
        <td>{{{wing}}}</td>
 +
    </tr>}}
 +
    {{#if:{{{room-number|}}}|<tr>
 +
        <th>Room(s)</th>
 +
        <td>{{{room-number}}}</td>
 +
    </tr>}}
 +
    {{#if:{{{roommate|}}}|<tr>
 +
        <th>Roommate(s)</th>
 +
        <td>{{{roommate}}}</td>
 +
    </tr>}}
 +
    {{#if:{{{prior-high-school|}}}|<tr>
 +
        <th>Prior High School</th>
 +
        <td>{{{prior-high-school}}}</td>
 +
    </tr>}}
 +
    {{#if:{{{education-after-tams|}}}|<tr>
 +
        <th>Education(s)</th>
 +
        <td>{{{education-after-tams}}}</td>
 +
    </tr>}}
 +
    {{#if:{{{occupation-after-tams|}}}|<tr>
 +
        <th>Occupation</th>
 +
        <td>{{{occupation-after-tams}}}</td>
 +
    </tr>}}
 +
    {{#if:{{{clubs|}}}|<tr>
 +
        <th>Club(s)</th>
 +
        <td>{{{clubs}}}</td>
 +
    </tr>}}
 +
    {{#if:{{{senior-quote|}}}|<tr>
 +
        <th>Senior Quote</th>
 +
        <td>{{{senior-quote}}}</td>
 +
    </tr>}}
 +
    </table>}}{{#if:{{{research-lab-name|}}} {{{research-lab-website|}}}|
 +
    <div class="infobox-title">Research-Related</div>
 +
    <table>
 +
    {{#if:{{{research-lab-name|}}} {{{research-lab-website|}}}
 +
    <tr>
 +
        <th>Research Lab</th>
 +
        <td>[{{{research-lab-website|}}} {{{research-lab-name}}}]</td>
 +
    </tr>}}
 +
    </table>}}
 
</div>
 
</div>
 
 
 
<noinclude>
 
<noinclude>
 
== Usage ==
 
== Usage ==
Line 96: Line 78:
 
"params": {
 
"params": {
 
"image": {},
 
"image": {},
 +
"nickname": {},
 +
"pronoun": {},
 +
"known-for": {},
 +
"website": {},
 +
"education-after-tams": {},
 
"class-of": {},
 
"class-of": {},
 +
"occupation-after-tams": {},
 +
"track": {
 +
"label": "TAMS Track",
 +
"description": "TAMS Track (not pathway)",
 +
"suggested": true,
 +
"type": "string"
 +
},
 
"wing": {},
 
"wing": {},
 
"room-number": {},
 
"room-number": {},
 
"roommate": {},
 
"roommate": {},
"track": {},
 
"education-after-tams": {},
 
 
"prior-high-school": {},
 
"prior-high-school": {},
"occupation-after-tams": {},
 
"nickname": {},
 
"pronoun": {},
 
"known-for": {},
 
 
"clubs": {},
 
"clubs": {},
 
"senior-quote": {},
 
"senior-quote": {},
"website": {}
+
"research-lab-name": {},
},
+
"research-lab-website": {}
"description": "Infobox used for all students, alumni, staff, and faculty."
+
}
 
}
 
}
 
</templatedata></noinclude>
 
</templatedata></noinclude>

Revision as of 15:38, 11 August 2022

Infobox Person

Usage

  • Add it
  • Thing
  • Something
  • stuff

No description.

Template parameters

ParameterDescriptionTypeStatus
Imageimage

no description

Unknownoptional
Nicknamenickname

no description

Unknownoptional
Pronounpronoun

no description

Unknownoptional
Known-forknown-for

no description

Unknownoptional
Websitewebsite

no description

Unknownoptional
Education-after-tamseducation-after-tams

no description

Unknownoptional
Class-ofclass-of

no description

Unknownoptional
Occupation-after-tamsoccupation-after-tams

no description

Unknownoptional
TAMS Tracktrack

TAMS Track (not pathway)

Stringsuggested
Wingwing

no description

Unknownoptional
Room-numberroom-number

no description

Unknownoptional
Roommateroommate

no description

Unknownoptional
Prior-high-schoolprior-high-school

no description

Unknownoptional
Clubsclubs

no description

Unknownoptional
Senior-quotesenior-quote

no description

Unknownoptional
Research-lab-nameresearch-lab-name

no description

Unknownoptional
Research-lab-websiteresearch-lab-website

no description

Unknownoptional