Difference between revisions of "Template:FacultyandStaff"

From TSAS Library
Jump to: navigation, search
Line 17: Line 17:
Edit the page to see the template text.
Edit the page to see the template text.
{{#cargo_declare:_table=FacultyandStaff|lastname=Text|photo=Page|department=Page|house=Page|email=Email|joined=Date|education=List (,) of String|whytsas=Text|interestingfact=Text}}
{{#cargo_declare:_table=FacultyandStaff|lastname=Text|photo=Page|department=Page|house=Page|email=Email|joined=Date|education=List (,) of String|whytsas=Text|interestingfact=Text}}
</noinclude><includeonly>{{#cargo_store:_table=FacultyandStaff|lastname={{{lastname|}}}|photo={{{photo|}}}|department={{{department|}}}|house={{{house|}}}|email={{{email|}}}|joined={{{joined|}}}|education={{{education|}}}|whytsas={{{whytsas|}}}|interestingfact={{{interestingfact|}}} }}{{Infobox person|bodystyle = border: 0px; background-color: #ffffff;| titlestyle = display: none;| headerstyle = text-align: left;
</noinclude><includeonly>{{#cargo_store:_table=FacultyandStaff|lastname={{{lastname|}}}|photo={{{photo|}}}|department={{{department|}}}|house={{{house|}}}|email={{{email|}}}|joined={{{joined|}}}|education={{{education|}}}|whytsas={{{whytsas|}}}|interestingfact={{{interestingfact|}}} }}
|-
{{Infobox person
! Last Name
| bodystyle = border: 0px; background-color: #ffffff;
| {{{lastname|}}}
| titlestyle = display: none;
|-
| headerstyle = text-align: left;
! Photo
| data2    = {{#if:{{{photo|}}}|[[{{{photo|}}}]]}}
| {{#if:{{{photo|}}}|[[{{{photo|}}}]]}}
| label3  = Department
|-
| data3    = {{{department|}}}
! Department
| label4  = House
| {{#if:{{{department|}}}|[[{{{department|}}}]]}}
| data4    = {{#if:{{{house|}}}|[[{{{house|}}}]]}}
|-
| label5  = Contact
! House
| data5    = {{{email|}}}
| {{#if:{{{house|}}}|[[{{{house|}}}]]}}
| label6  = Joined
|-
| data6    = {{{joined|}}}
! Email
| label7  = Education
| {{{email|}}}
| data7    = {{#arraymap:{{{education|}}}|,|x|[[x]]}}
|-
| label8  = Why TSAS?
! Joined TSAS
| data8    = {{{whytsas|}}}
| {{{joined|}}}
| label9  = Interesting Fact
|-
| data9    = {{{interestingfact|}}}
! Education
}}
| {{#arraymap:{{{education|}}}|,|x|[[x]]}}
 
|-
! Why TSAS?
| {{{whytsas|}}}
|-
! Interesting Fact
| {{{interestingfact|}}}
|}}


[[Category:Faculty]]
[[Category:Faculty]]
</includeonly>
</includeonly>

Revision as of 14:58, 22 April 2020

This is the "FacultyandStaff" template. It should be called in the following format:

{{FacultyandStaff
|lastname=
|photo=
|department=
|house=
|email=
|joined=
|education=
|whytsas=
|interestingfact=
}}

Edit the page to see the template text. This template defines the table "FacultyandStaff". View table.