Difference between revisions of "Template:Infobox Person"

From TAMS Wiki
Jump to navigation Jump to search
 
(18 intermediate revisions by 2 users not shown)
Line 8: Line 8:
 
     <td>{{{pronoun}}}</td>
 
     <td>{{{pronoun}}}</td>
 
</tr>}}
 
</tr>}}
{{#if:{{{education-after-tams|}}}|<tr>
+
{{#if:{{{education|}}}|<tr>
 
     <th>Education(s)</th>
 
     <th>Education(s)</th>
     <td>{{{education-after-tams}}}</td>
+
     <td>{{{education}}}</td>
 
</tr>}}
 
</tr>}}
{{#if:{{{occupation-after-tams|}}}|<tr>
+
{{#if:{{{occupation|}}}|<tr>
 
     <th>Occupation(s)</th>
 
     <th>Occupation(s)</th>
     <td>{{{occupation-after-tams}}}</td>
+
     <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 24: Line 28:
 
     <td>{{{website}}}</td>
 
     <td>{{{website}}}</td>
 
</tr>}}
 
</tr>}}
</table>}}{{#if:{{{class-of|}}} {{{track|}}} {{{pathway|}}} {{{clubs|}}} {{{roommate|}}} {{{wing|}}} {{{room-number|}}} {{{prior-high-school|}}} {{{senior-quote|}}}|<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 45: Line 49:
 
         <th>Roommate(s)</th>
 
         <th>Roommate(s)</th>
 
         <td>{{{roommate}}}</td>
 
         <td>{{{roommate}}}</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>}}
 
     </tr>}}
 
     {{#if:{{{prior-high-school|}}}|<tr>
 
     {{#if:{{{prior-high-school|}}}|<tr>
Line 61: Line 57:
 
         <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>}}
     </table>}}{{#if:{{{research-lab-name|}}} {{{research-lab-website|}}}|
+
     {{#if:{{{research-topic|}}}|<tr>
    <div>Research-Related</div>
+
         <th>Research Topic(s)</th>
    <table>
+
         <td>{{{research-topic}}}</td>
    {{#if:{{{research-lab-name|}}} {{{research-lab-website|}}}
 
    <tr>
 
         <th>Research Lab</th>
 
         <td>[{{{research-lab-website|}}} {{{research-lab-name}}}]</td>
 
 
     </tr>}}
 
     </tr>}}
     </table>}}
+
     </table>}}</div>
</div>
 
 
<noinclude>
 
<noinclude>
 
== Usage ==
 
== Usage ==
Line 101: Line 97:
 
"website": {
 
"website": {
 
"type": "url"
 
"type": "url"
},
 
"education-after-tams": {
 
"aliases": [
 
"education"
 
],
 
"label": "Education(s)"
 
 
},
 
},
 
"class-of": {
 
"class-of": {
Line 112: Line 102:
 
"class"
 
"class"
 
],
 
],
"label": "TAMS Class of"
+
"label": "TAMS Class of",
 +
"suggested": true
 
},
 
},
 
"track": {
 
"track": {
Line 118: Line 109:
 
"description": "TAMS Track (not pathway)",
 
"description": "TAMS Track (not pathway)",
 
"suggested": true,
 
"suggested": true,
"type": "string"
+
"type": "string",
},
+
"example": "Health Professions, Music, General Science and Mathematics, etc"
"wing": {
 
"label": "TAMS Wing(s)",
 
"suggested": true,
 
"example": "A300, D100B, C200A, etc"
 
},
 
"room-number": {
 
"label": "TAMS Room Number(s)"
 
 
},
 
},
 
"roommate": {
 
"roommate": {
Line 139: Line 123:
 
},
 
},
 
"clubs": {
 
"clubs": {
"label": "TAMS Club(s)"
+
"label": "TAMS Club(s)",
 +
"example": "CSO, Ballot, Ambassadors, Robotics, etc",
 +
"suggested": true
 
},
 
},
 
"senior-quote": {
 
"senior-quote": {
Line 145: Line 131:
 
},
 
},
 
"research-lab-name": {
 
"research-lab-name": {
"label": "Research Lab"
+
"label": "Research Lab",
 +
"type": "string"
 
},
 
},
 
"research-lab-website": {
 
"research-lab-website": {
Line 157: Line 144:
 
"suggested": true
 
"suggested": true
 
},
 
},
"occupation-after-tams": {
+
"research-topic": {
 +
"label": "Research Topic(s)"
 +
},
 +
"education": {
 
"aliases": [
 
"aliases": [
"occupation",
+
"education-after-tams"
 +
],
 +
"label": "Education(s)"
 +
},
 +
"occupation": {
 +
"aliases": [
 +
"occupation-after-tams",
 
"job",
 
"job",
 
"title"
 
"title"
 
],
 
],
 
"label": "Occupation"
 
"label": "Occupation"
 +
},
 +
"wiki-username": {
 +
"aliases": [
 +
"username"
 +
],
 +
"label": "TAMS Wiki Username"
 
}
 
}
 
},
 
},
Line 171: Line 173:
 
"nickname",
 
"nickname",
 
"pronoun",
 
"pronoun",
"education-after-tams",
+
"education",
"occupation-after-tams",
+
"occupation",
 
"known-for",
 
"known-for",
 +
"wiki-username",
 
"website",
 
"website",
 
"class-of",
 
"class-of",
Line 179: Line 182:
 
"pathway",
 
"pathway",
 
"clubs",
 
"clubs",
"wing",
 
"room-number",
 
 
"roommate",
 
"roommate",
 
"prior-high-school",
 
"prior-high-school",
 
"senior-quote",
 
"senior-quote",
 
"research-lab-name",
 
"research-lab-name",
"research-lab-website"
+
"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!)

Template parameters

ParameterDescriptionTypeStatus
Imageimage picture photo

Add a photo!

Filesuggested
Nicknamenickname

no description

Unknownoptional
Pronoun(s)pronoun

no description

Unknownsuggested
Education(s)education education-after-tams

no description

Unknownoptional
Occupationoccupation occupation-after-tams job title

no description

Unknownoptional
Known-forknown-for

no description

Unknownoptional
TAMS Wiki Usernamewiki-username username

no description

Unknownoptional
Websitewebsite

no description

URLoptional
TAMS Class ofclass-of class

no description

Unknownsuggested
TAMS Tracktrack

TAMS Track (not pathway)

Example
Health Professions, Music, General Science and Mathematics, etc
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

Example
CSO, Ballot, Ambassadors, Robotics, etc
Unknownsuggested
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

Stringoptional
Research Lab Websiteresearch-lab-website

no description

Unknownoptional
Research Topic(s)research-topic

no description

Unknownoptional