Difference between revisions of "Template:FacultyandStaff"

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