Difference between revisions of "Template:Infobox Person"
Jump to navigation
Jump to search
Zachary Li (talk | contribs) |
|||
(24 intermediate revisions by 2 users not shown) | |||
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>}}{{#if:{{{nickname|}}} {{{pronoun|}}} {{{education-after-tams|}}} {{{occupation-after-tams|}}} {{{known-for|}}} {{{website|}}}|<table>{{#if:{{{nickname|}}} |<tr> |
<th>Nickname(s)</th> | <th>Nickname(s)</th> | ||
<td>{{{nickname}}}</td> | <td>{{{nickname}}}</td> | ||
Line 7: | Line 7: | ||
<th>Pronoun(s)</th> | <th>Pronoun(s)</th> | ||
<td>{{{pronoun}}}</td> | <td>{{{pronoun}}}</td> | ||
+ | </tr>}} | ||
+ | {{#if:{{{education|}}}|<tr> | ||
+ | <th>Education(s)</th> | ||
+ | <td>{{{education}}}</td> | ||
+ | </tr>}} | ||
+ | {{#if:{{{occupation|}}}|<tr> | ||
+ | <th>Occupation(s)</th> | ||
+ | <td>{{{occupation}}}</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>}} | ||
+ | {{#if:{{{wiki-username|}}}|<tr> | ||
+ | <th>TAMS Wiki Username</th> | ||
+ | <td>[{{fullurl: Special:Contributions/{{{wiki-username}}}}} {{{wiki-username}}}]</td> | ||
</tr>}} | </tr>}} | ||
{{#if:{{{website|}}}|<tr> | {{#if:{{{website|}}}|<tr> | ||
Line 16: | Line 28: | ||
<td>{{{website}}}</td> | <td>{{{website}}}</td> | ||
</tr>}} | </tr>}} | ||
− | </table>}}{{#if:{{{ | + | </table>}}{{#if:{{{class-of|}}} {{{track|}}} {{{pathway|}}} {{{clubs|}}} {{{roommate|}}} {{{wing|}}} {{{room-number|}}} {{{prior-high-school|}}} {{{senior-quote|}}}|<div>'''TAMS-Related'''</div> |
<table> | <table> | ||
{{#if:{{{class-of|}}}|<tr> | {{#if:{{{class-of|}}}|<tr> | ||
Line 26: | Line 38: | ||
<td>[[{{{track}}} Track|{{{track}}}]]</td> | <td>[[{{{track}}} Track|{{{track}}}]]</td> | ||
</tr>}} | </tr>}} | ||
− | {{#if:{{{ | + | {{#if:{{{pathway|}}}|<tr> |
− | <th> | + | <th>Pathway</th> |
− | <td>{{{ | + | <td>[[{{{pathway}}}]]</td> |
</tr>}} | </tr>}} | ||
− | {{#if:{{{ | + | {{#if:{{{clubs|}}}|<tr> |
− | <th> | + | <th>Club(s)</th> |
− | <td>{{{ | + | <td>{{{clubs}}}</td> |
</tr>}} | </tr>}} | ||
{{#if:{{{roommate|}}}|<tr> | {{#if:{{{roommate|}}}|<tr> | ||
Line 41: | Line 53: | ||
<th>Prior High School</th> | <th>Prior High School</th> | ||
<td>{{{prior-high-school}}}</td> | <td>{{{prior-high-school}}}</td> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</tr>}} | </tr>}} | ||
{{#if:{{{senior-quote|}}}|<tr> | {{#if:{{{senior-quote|}}}|<tr> | ||
<th>Senior Quote</th> | <th>Senior Quote</th> | ||
<td>{{{senior-quote}}}</td> | <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>}} | </tr>}} | ||
− | + | {{#if:{{{research-topic|}}}|<tr> | |
− | + | <th>Research Topic(s)</th> | |
− | + | <td>{{{research-topic}}}</td> | |
− | {{#if:{{{research- | ||
− | |||
− | <th>Research | ||
− | <td> | ||
</tr>}} | </tr>}} | ||
− | </table>}} | + | </table>}}</div> |
− | </div> | ||
<noinclude> | <noinclude> | ||
== Usage == | == Usage == | ||
Line 77: | Line 77: | ||
{ | { | ||
"params": { | "params": { | ||
− | "image": {}, | + | "image": { |
− | "nickname": {}, | + | "aliases": [ |
− | "pronoun": {}, | + | "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": {}, | "known-for": {}, | ||
− | "website": { | + | "website": { |
− | + | "type": "url" | |
− | "class-of": { | + | }, |
− | + | "class-of": { | |
+ | "aliases": [ | ||
+ | "class" | ||
+ | ], | ||
+ | "label": "TAMS Class of", | ||
+ | "suggested": true | ||
+ | }, | ||
"track": { | "track": { | ||
"label": "TAMS Track", | "label": "TAMS Track", | ||
"description": "TAMS Track (not pathway)", | "description": "TAMS Track (not pathway)", | ||
"suggested": true, | "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" | "type": "string" | ||
}, | }, | ||
− | " | + | "research-lab-website": { |
− | " | + | "label": "Research Lab Website" |
− | " | + | }, |
− | " | + | "pathway": { |
− | " | + | "label": "TAMS Pathway", |
− | "senior-quote" | + | "description": "Pathways! Use track parameter if applicable", |
− | "research-lab-name" | + | "example": "Computer Science Pathway, Mathematics Pathway, Electrical Engineering Pathway, etc", |
− | "research-lab-website" | + | "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> | </templatedata></noinclude> |
Latest revision as of 16:35, 12 October 2022
Infobox Person
Usage
- Add it
- Thing
- Something
- stuff
Add this Infobox to any page dedicated to a person! (student, alumni, staff, and faculty all included!)
Parameter | Description | Type | Status | |
---|---|---|---|---|
Image | image picture photo | Add a photo! | File | suggested |
Nickname | nickname | no description | Unknown | optional |
Pronoun(s) | pronoun | no description | Unknown | suggested |
Education(s) | education education-after-tams | no description | Unknown | optional |
Occupation | occupation occupation-after-tams job title | no description | Unknown | optional |
Known-for | known-for | no description | Unknown | optional |
TAMS Wiki Username | wiki-username username | no description | Unknown | optional |
Website | website | no description | URL | optional |
TAMS Class of | class-of class | no description | Unknown | suggested |
TAMS Track | track | TAMS Track (not pathway)
| String | suggested |
TAMS Pathway | pathway | Pathways! Use track parameter if applicable
| Unknown | suggested |
TAMS Club(s) | clubs | no description
| Unknown | suggested |
TAMS Roommate(s) | roommate | no description | Unknown | optional |
Prior School to TAMS | prior-high-school high-school highschool | no description | Unknown | optional |
TAMS Senior Quote | senior-quote | no description | Unknown | optional |
Research Lab | research-lab-name | no description | String | optional |
Research Lab Website | research-lab-website | no description | Unknown | optional |
Research Topic(s) | research-topic | no description | Unknown | optional |