Difference between revisions of "Template:FacultyandStaff"
From TSAS Library
JStallings (talk | contribs) |
JStallings (talk | contribs) |
||
(22 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= | {{#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 | ||
{{Infobox | |||
| bodystyle = border: 0px; background-color: #ffffff; | | bodystyle = border: 0px; background-color: #ffffff; | ||
| titlestyle = display: none; | | titlestyle = display: none; | ||
| headerstyle = text-align: left; | | headerstyle = text-align: left; | ||
| | | image = {{#if:{{{photo|}}}|[[File:{{{photo|}}}|200px]]}} | ||
| label3 = Department | | label3 = Department | ||
| data3 = {{{department|}}} | | data3 = [[{{{department|}}}]] | ||
| label4 = House | | label4 = House | ||
| data4 = {{#if:{{{house|}}}|[[{{{house|}}}]]}} | | data4 = {{#if:{{{house|}}}|[[{{{house|}}}]]}} | ||
Line 32: | Line 31: | ||
| data6 = {{{joined|}}} | | data6 = {{{joined|}}} | ||
| label7 = Education | | label7 = Education | ||
| data7 = {{#arraymap:{{{education|}}}|,|x | | data7 = {{#arraymap:{{{education|}}}|,|x}} | ||
| label8 = Why TSAS? | | label8 = Why TSAS? | ||
| data8 = {{{whytsas|}}} | | data8 = {{{whytsas|}}} | ||
Line 38: | Line 37: | ||
| data9 = {{{interestingfact|}}} | | data9 = {{{interestingfact|}}} | ||
}} | }} | ||
{{#tweekihide:sidebar-right}} | |||
[[Category:Faculty]] | {{#cargo_query:tables=Courses | ||
|where=Courses.teacher HOLDS "{{PAGENAME}}" | |||
|fields=Courses._pageName=coursename,description,teacher,requiredby | |||
|format=template | |||
|template=CourseDisplay | |||
|named args=yes | |||
|delimiter=<br /> | |||
}} | |||
[[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.