Difference between revisions of "Template:FacultyandStaff"
From TSAS Library
JStallings (talk | contribs) |
JStallings (talk | contribs) |
||
(27 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 | ||
{ | | bodystyle = border: 0px; background-color: #ffffff; | ||
| | | titlestyle = display: none; | ||
| headerstyle = text-align: left; | |||
| image = {{#if:{{{photo|}}}|[[File:{{{photo|}}}|200px]]}} | |||
| label3 = Department | |||
| data3 = [[{{{department|}}}]] | |||
| label4 = House | |||
| | | data4 = {{#if:{{{house|}}}|[[{{{house|}}}]]}} | ||
| label5 = Contact | |||
| | | data5 = {{{email|}}} | ||
| | | label6 = Joined | ||
| data6 = {{{joined|}}} | |||
| {{#if:{{{house|}}}|[[{{{house|}}}]]}} | | label7 = Education | ||
| | | data7 = {{#arraymap:{{{education|}}}|,|x}} | ||
| label8 = Why TSAS? | |||
| {{{email|}}} | | data8 = {{{whytsas|}}} | ||
| | | label9 = Interesting Fact | ||
| data9 = {{{interestingfact|}}} | |||
| {{{joined|}}} | }} | ||
| | {{#tweekihide:sidebar-right}} | ||
| {{#arraymap:{{{education|}}}|,|x| | |||
{{#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]] | [[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.