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|}}} {{{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>}}{{#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-after-tams|}}}|<tr>
 +
    <th>Education(s)</th>
 +
    <td>{{{education-after-tams}}}</td>
 
</tr>}}
 
</tr>}}
 
{{#if:{{{occupation-after-tams|}}}|<tr>
 
{{#if:{{{occupation-after-tams|}}}|<tr>
     <th>Occupation</th>
+
     <th>Occupation(s)</th>
 
     <td>{{{occupation-after-tams}}}</td>
 
     <td>{{{occupation-after-tams}}}</td>
 
</tr>}}
 
</tr>}}
Line 20: Line 24:
 
     <td>{{{website}}}</td>
 
     <td>{{{website}}}</td>
 
</tr>}}
 
</tr>}}
</table>}}{{#if:{{{education-after-tams|}}} {{{class-of|}}} {{{track|}}}|<div>TAMS-Related</div>
+
</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 33: Line 37:
 
         <th>Pathway</th>
 
         <th>Pathway</th>
 
         <td>[[{{{pathway}}}]]</td>
 
         <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>}}
 
     </tr>}}
 
     {{#if:{{{wing|}}}|<tr>
 
     {{#if:{{{wing|}}}|<tr>
Line 41: Line 53:
 
         <th>Room(s)</th>
 
         <th>Room(s)</th>
 
         <td>{{{room-number}}}</td>
 
         <td>{{{room-number}}}</td>
    </tr>}}
 
    {{#if:{{{roommate|}}}|<tr>
 
        <th>Roommate(s)</th>
 
        <td>{{{roommate}}}</td>
 
 
     </tr>}}
 
     </tr>}}
 
     {{#if:{{{prior-high-school|}}}|<tr>
 
     {{#if:{{{prior-high-school|}}}|<tr>
 
         <th>Prior High School</th>
 
         <th>Prior High School</th>
 
         <td>{{{prior-high-school}}}</td>
 
         <td>{{{prior-high-school}}}</td>
    </tr>}}
 
    {{#if:{{{education-after-tams|}}}|<tr>
 
        <th>Education(s)</th>
 
        <td>{{{education-after-tams}}}</td>
 
    </tr>}}
 
    {{#if:{{{clubs|}}}|<tr>
 
        <th>Club(s)</th>
 
        <td>{{{clubs}}}</td>
 
 
     </tr>}}
 
     </tr>}}
 
     {{#if:{{{senior-quote|}}}|<tr>
 
     {{#if:{{{senior-quote|}}}|<tr>
Line 91: Line 91:
 
"suggested": true
 
"suggested": true
 
},
 
},
"nickname": {},
+
"nickname": {
 +
"label": "Nickname"
 +
},
 
"pronoun": {
 
"pronoun": {
 
"label": "Pronoun(s)",
 
"label": "Pronoun(s)",
Line 97: Line 99:
 
},
 
},
 
"known-for": {},
 
"known-for": {},
"website": {},
+
"website": {
"education-after-tams": {},
+
"type": "url"
"class-of": {},
+
},
 +
"education-after-tams": {
 +
"aliases": [
 +
"education"
 +
],
 +
"label": "Education(s)"
 +
},
 +
"class-of": {
 +
"aliases": [
 +
"class"
 +
],
 +
"label": "TAMS Class of"
 +
},
 
"track": {
 
"track": {
 
"label": "TAMS Track",
 
"label": "TAMS Track",
Line 107: Line 121:
 
},
 
},
 
"wing": {
 
"wing": {
"label": "TAMS Wing",
+
"label": "TAMS Wing(s)",
"suggested": true
+
"suggested": true,
 +
"example": "A300, D100B, C200A, etc"
 
},
 
},
 
"room-number": {
 
"room-number": {
"label": "TAMS Room Number"
+
"label": "TAMS Room Number(s)"
 +
},
 +
"roommate": {
 +
"label": "TAMS Roommate(s)"
 +
},
 +
"prior-high-school": {
 +
"aliases": [
 +
"high-school",
 +
"highschool"
 +
],
 +
"label": "Prior School to TAMS"
 
},
 
},
"roommate": {},
 
"prior-high-school": {},
 
 
"clubs": {
 
"clubs": {
"label": "TAMS Clubs"
+
"label": "TAMS Club(s)"
 +
},
 +
"senior-quote": {
 +
"label": "TAMS Senior Quote"
 +
},
 +
"research-lab-name": {
 +
"label": "Research Lab"
 +
},
 +
"research-lab-website": {
 +
"label": "Research Lab Website"
 
},
 
},
"senior-quote": {},
 
"research-lab-name": {},
 
"research-lab-website": {},
 
 
"pathway": {
 
"pathway": {
 
"label": "TAMS Pathway",
 
"label": "TAMS Pathway",
Line 137: Line 166:
 
}
 
}
 
},
 
},
"description": "Add this Infobox to any page dedicated to a person! (student, alumni, staff, and faculty all included!)"
+
"description": "Add this Infobox to any page dedicated to a person! (student, alumni, staff, and faculty all included!)",
 +
"paramOrder": [
 +
"image",
 +
"nickname",
 +
"pronoun",
 +
"education-after-tams",
 +
"occupation-after-tams",
 +
"known-for",
 +
"website",
 +
"class-of",
 +
"track",
 +
"pathway",
 +
"clubs",
 +
"wing",
 +
"room-number",
 +
"roommate",
 +
"prior-high-school",
 +
"senior-quote",
 +
"research-lab-name",
 +
"research-lab-website"
 +
]
 
}
 
}
 
</templatedata></noinclude>
 
</templatedata></noinclude>

Revision as of 20:16, 12 August 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!)

Template parameters

ParameterDescriptionTypeStatus
Imageimage picture photo

Add a photo!

Filesuggested
Nicknamenickname

no description

Unknownoptional
Pronoun(s)pronoun

no description

Unknownsuggested
Education(s)education-after-tams education

no description

Unknownoptional
Occupationoccupation-after-tams occupation job title

no description

Unknownoptional
Known-forknown-for

no description

Unknownoptional
Websitewebsite

no description

URLoptional
TAMS Class ofclass-of class

no description

Unknownoptional
TAMS Tracktrack

TAMS Track (not pathway)

Stringsuggested
TAMS Pathwaypathway

Pathways! Use track parameter if applicable

Example
Computer Science Pathway, Mathematics Pathway, Electrical Engineering Pathway, etc
Unknownsuggested
TAMS Club(s)clubs

no description

Unknownoptional
TAMS Wing(s)wing

no description

Example
A300, D100B, C200A, etc
Unknownsuggested
TAMS Room Number(s)room-number

no description

Unknownoptional
TAMS Roommate(s)roommate

no description

Unknownoptional
Prior School to TAMSprior-high-school high-school highschool

no description

Unknownoptional
TAMS Senior Quotesenior-quote

no description

Unknownoptional
Research Labresearch-lab-name

no description

Unknownoptional
Research Lab Websiteresearch-lab-website

no description

Unknownoptional