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|}}} {{{education-after-tams|}}} {{{occupation-after-tams|}}} {{{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>}}
| |
− | | |
− | {{#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:{{{education|}}}|<tr> |
| + | <th>Education(s)</th> |
| + | <td>{{{education}}}</td> |
| + | </tr>}} |
| + | {{#if:{{{occupation|}}}|<tr> |
| + | <th>Occupation(s)</th> |
| + | <td>{{{occupation}}}</td> |
| + | </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:{{{wiki-username|}}}|<tr> |
− | {{#if:{{{clubs|}}}|<tr> | + | <th>TAMS Wiki Username</th> |
− | <th>Club(s)</th> | + | <td>[{{fullurl: Special:Contributions/{{{wiki-username}}}}} {{{wiki-username}}}]</td> |
− | <td>{{{clubs}}}</td> | |
− | </tr>}}
| |
− | | |
− | {{#if:{{{senior-quote|}}}|<tr>
| |
− | <th>Senior Quote</th>
| |
− | <td>{{{senior-quote}}}</td>
| |
| </tr>}} | | </tr>}} |
− |
| |
| {{#if:{{{website|}}}|<tr> | | {{#if:{{{website|}}}|<tr> |
| <th>Website</th> | | <th>Website</th> |
| <td>{{{website}}}</td> | | <td>{{{website}}}</td> |
| </tr>}} | | </tr>}} |
− | </table> | + | </table>}}{{#if:{{{class-of|}}} {{{track|}}} {{{pathway|}}} {{{clubs|}}} {{{roommate|}}} {{{wing|}}} {{{room-number|}}} {{{prior-high-school|}}} {{{senior-quote|}}}|<div>'''TAMS-Related'''</div> |
− | </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:{{{pathway|}}}|<tr> |
| + | <th>Pathway</th> |
| + | <td>[[{{{pathway}}}]]</td> |
| + | </tr>}} |
| + | {{#if:{{{clubs|}}}|<tr> |
| + | <th>Club(s)</th> |
| + | <td>{{{clubs}}}</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:{{{senior-quote|}}}|<tr> |
| + | <th>Senior Quote</th> |
| + | <td>{{{senior-quote}}}</td> |
| + | </tr>}}</table>}}{{#if:{{{research-lab-name|}}} {{{research-topic|}}} {{{research-lab-website|}}}|<div>'''Research-Related'''</div><table> |
| + | {{#if:{{{research-lab-name|}}}|<tr> |
| + | {{#ifeq:{{{research-lab-website|}}}||<th>Research Lab</th> |
| + | <td>{{{research-lab-name}}}</td>|<th>Research Lab</th> |
| + | <td>[{{{research-lab-website}}} {{{research-lab-name}}}]</td>}} |
| + | </tr>}} |
| + | {{#if:{{{research-topic|}}}|<tr> |
| + | <th>Research Topic(s)</th> |
| + | <td>{{{research-topic}}}</td> |
| + | </tr>}} |
| + | </table>}}</div> |
| + | <noinclude> |
| + | == Usage == |
| + | * Add it |
| + | * Thing |
| + | * Something |
| + | * stuff |
| + | <templatedata> |
| + | { |
| + | "params": { |
| + | "image": { |
| + | "aliases": [ |
| + | "picture", |
| + | "photo" |
| + | ], |
| + | "label": "Image", |
| + | "description": "Add a photo!", |
| + | "type": "wiki-file-name", |
| + | "suggested": true |
| + | }, |
| + | "nickname": { |
| + | "label": "Nickname" |
| + | }, |
| + | "pronoun": { |
| + | "label": "Pronoun(s)", |
| + | "suggested": true |
| + | }, |
| + | "known-for": {}, |
| + | "website": { |
| + | "type": "url" |
| + | }, |
| + | "class-of": { |
| + | "aliases": [ |
| + | "class" |
| + | ], |
| + | "label": "TAMS Class of", |
| + | "suggested": true |
| + | }, |
| + | "track": { |
| + | "label": "TAMS Track", |
| + | "description": "TAMS Track (not pathway)", |
| + | "suggested": true, |
| + | "type": "string", |
| + | "example": "Health Professions, Music, General Science and Mathematics, etc" |
| + | }, |
| + | "roommate": { |
| + | "label": "TAMS Roommate(s)" |
| + | }, |
| + | "prior-high-school": { |
| + | "aliases": [ |
| + | "high-school", |
| + | "highschool" |
| + | ], |
| + | "label": "Prior School to TAMS" |
| + | }, |
| + | "clubs": { |
| + | "label": "TAMS Club(s)", |
| + | "example": "CSO, Ballot, Ambassadors, Robotics, etc", |
| + | "suggested": true |
| + | }, |
| + | "senior-quote": { |
| + | "label": "TAMS Senior Quote" |
| + | }, |
| + | "research-lab-name": { |
| + | "label": "Research Lab", |
| + | "type": "string" |
| + | }, |
| + | "research-lab-website": { |
| + | "label": "Research Lab Website" |
| + | }, |
| + | "pathway": { |
| + | "label": "TAMS Pathway", |
| + | "description": "Pathways! Use track parameter if applicable", |
| + | "example": "Computer Science Pathway, Mathematics Pathway, Electrical Engineering Pathway, etc", |
| + | "type": "unknown", |
| + | "suggested": true |
| + | }, |
| + | "research-topic": { |
| + | "label": "Research Topic(s)" |
| + | }, |
| + | "education": { |
| + | "aliases": [ |
| + | "education-after-tams" |
| + | ], |
| + | "label": "Education(s)" |
| + | }, |
| + | "occupation": { |
| + | "aliases": [ |
| + | "occupation-after-tams", |
| + | "job", |
| + | "title" |
| + | ], |
| + | "label": "Occupation" |
| + | }, |
| + | "wiki-username": { |
| + | "aliases": [ |
| + | "username" |
| + | ], |
| + | "label": "TAMS Wiki Username" |
| + | } |
| + | }, |
| + | "description": "Add this Infobox to any page dedicated to a person! (student, alumni, staff, and faculty all included!)", |
| + | "paramOrder": [ |
| + | "image", |
| + | "nickname", |
| + | "pronoun", |
| + | "education", |
| + | "occupation", |
| + | "known-for", |
| + | "wiki-username", |
| + | "website", |
| + | "class-of", |
| + | "track", |
| + | "pathway", |
| + | "clubs", |
| + | "roommate", |
| + | "prior-high-school", |
| + | "senior-quote", |
| + | "research-lab-name", |
| + | "research-lab-website", |
| + | "research-topic" |
| + | ] |
| + | } |
| + | </templatedata></noinclude> |