Difference between revisions of "Template:FacultyandStaff"

From TSAS Library
Jump to: navigation, search
 
(3 intermediate revisions by the same user not shown)
Line 25: Line 25:
| data3    = [[{{{department|}}}]]
| data3    = [[{{{department|}}}]]
| label4  = House
| label4  = House
| data4    = {{#if:{{{house|}}}|{{ {{{house|}}} }} }}
| data4    = {{#if:{{{house|}}}|[[{{{house|}}}]]}}
| label5  = Contact
| label5  = Contact
| data5    = {{{email|}}}
| data5    = {{{email|}}}
Line 39: Line 39:
{{#tweekihide:sidebar-right}}
{{#tweekihide:sidebar-right}}


<h3 style="display:inline;">[[{{{coursename}}}]]</h3>
{{#cargo_query:tables=Courses
 
|where=Courses.teacher HOLDS "{{PAGENAME}}"
{{{description}}}
|fields=Courses._pageName=coursename,description,teacher,requiredby
 
|format=template
{{#arraymap:{{{requiredby}}}|,|x|<p style="margin:0 0 0 1em;">[[x]]</p>|}}
|template=CourseDisplay
|named args=yes
|delimiter=<br />
}}


[[Category:Faculty|{{{lastname}}}]]
[[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.