Difference between revisions of "Template:Infobox Person"

From TAMS Wiki
Jump to navigation Jump to search
 
(22 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:{{{education-after-tams|}}} {{{class-of|}}} {{{occupation-after-tams|}}}|<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 30: Line 42:
 
         <td>[[{{{pathway}}}]]</td>
 
         <td>[[{{{pathway}}}]]</td>
 
     </tr>}}
 
     </tr>}}
     {{#if:{{{wing|}}}|<tr>
+
     {{#if:{{{clubs|}}}|<tr>
         <th>Wing(s)</th>
+
         <th>Club(s)</th>
         <td>{{{wing}}}</td>
+
         <td>{{{clubs}}}</td>
    </tr>}}
 
    {{#if:{{{room-number|}}}|<tr>
 
        <th>Room(s)</th>
 
        <td>{{{room-number}}}</td>
 
 
     </tr>}}
 
     </tr>}}
 
     {{#if:{{{roommate|}}}|<tr>
 
     {{#if:{{{roommate|}}}|<tr>
Line 45: Line 53:
 
         <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:{{{occupation-after-tams|}}}|<tr>
 
        <th>Occupation</th>
 
        <td>{{{occupation-after-tams}}}</td>
 
    </tr>}}
 
    {{#if:{{{clubs|}}}|<tr>
 
        <th>Club(s)</th>
 
        <td>{{{clubs}}}</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>}}
     </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 91: Line 87:
 
"suggested": true
 
"suggested": true
 
},
 
},
"nickname": {},
+
"nickname": {
 +
"label": "Nickname"
 +
},
 
"pronoun": {
 
"pronoun": {
 
"label": "Pronoun(s)",
 
"label": "Pronoun(s)",
Line 97: Line 95:
 
},
 
},
 
"known-for": {},
 
"known-for": {},
"website": {},
+
"website": {
"education-after-tams": {},
+
"type": "url"
"class-of": {},
+
},
"occupation-after-tams": {},
+
"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"
+
"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"
 
},
 
},
"wing": {
+
"clubs": {
"label": "TAMS Wing",
+
"label": "TAMS Club(s)",
 +
"example": "CSO, Ballot, Ambassadors, Robotics, etc",
 
"suggested": true
 
"suggested": true
 
},
 
},
"room-number": {
+
"senior-quote": {
"label": "TAMS Room Number"
+
"label": "TAMS Senior Quote"
 
},
 
},
"roommate": {},
+
"research-lab-name": {
"prior-high-school": {},
+
"label": "Research Lab",
"clubs": {
+
"type": "string"
"label": "TAMS Clubs"
+
},
 +
"research-lab-website": {
 +
"label": "Research Lab Website"
 
},
 
},
"senior-quote": {},
 
"research-lab-name": {},
 
"research-lab-website": {},
 
 
"pathway": {
 
"pathway": {
 
"label": "TAMS Pathway",
 
"label": "TAMS Pathway",
Line 128: Line 143:
 
"type": "unknown",
 
"type": "unknown",
 
"suggested": true
 
"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!)"
+
"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 17: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