Difference between revisions of "Template:FacultyandStaff"

From TSAS Library
Jump to: navigation, search
 
(24 intermediate revisions by the same user not shown)
Line 16: Line 16:
</pre>
</pre>
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=File|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>{{#tweekihide:sidebar-right}}{{#cargo_store:_table=FacultyandStaff|lastname={{{lastname|}}}|photo={{{photo|}}}|department={{{department|}}}|house={{{house|}}}|email={{{email|}}}|joined={{{joined|}}}|education={{{education|}}}|whytsas={{{whytsas|}}}|interestingfact={{{interestingfact|}}} }}{{Infobox
|-
| bodystyle = border: 0px; background-color: #ffffff;
! Last Name
| titlestyle = display: none;
| {{{lastname|}}}
| headerstyle = text-align: left;
|-
| image    = {{#if:{{{photo|}}}|[[File:{{{photo|}}}|200px]]}}
! Photo
| label3  = Department
| {{#if:{{{photo|}}}|[[{{{photo|}}}]]}}
| data3    = [[{{{department|}}}]]
|-
| label4  = House
! Department
| data4    = {{#if:{{{house|}}}|[[{{{house|}}}]]}}
| {{#if:{{{department|}}}|[[{{{department|}}}]]}}
| label5  = Contact
|-
| data5    = {{{email|}}}
! House
| label6  = Joined
| {{#if:{{{house|}}}|[[{{{house|}}}]]}}
| data6    = {{{joined|}}}
|-
| label7  = Education
! Email
| data7    = {{#arraymap:{{{education|}}}|,|x}}
| {{{email|}}}
| label8  = Why TSAS?
|-
| data8    = {{{whytsas|}}}
! Joined TSAS
| label9  = Interesting Fact
| {{{joined|}}}
| data9    = {{{interestingfact|}}}
|-
}}
! Education
{{#tweekihide:sidebar-right}}
| {{#arraymap:{{{education|}}}|,|x|[[x]]}}


|-
{{#cargo_query:tables=Courses
! Why TSAS?
|where=Courses.teacher HOLDS "{{PAGENAME}}"
| {{{whytsas|}}}
|fields=Courses._pageName=coursename,description,teacher,requiredby
|-
|format=template
! Interesting Fact
|template=CourseDisplay
| {{{interestingfact|}}}
|named args=yes
|}}
|delimiter=<br />
}}


[[Category:Faculty]]
[[Category:Faculty|{{{lastname}}}]]
</includeonly>
</includeonly>

Latest revision as of 14:22, 27 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.