Open main menu

Changes

4,734 bytes added ,  18:32, 10 February 2020
Created page with "<noinclude> This is the "Employee" template. It should be called in the following format: <pre> {{Employee |Image= |Alias= |Title= |Department= |Supervisor= |Expertise= |Langu..."
<noinclude>
This is the "Employee" template.
It should be called in the following format:
<pre>
{{Employee
|Image=
|Alias=
|Title=
|Department=
|Supervisor=
|Expertise=
|Language=
|Email=
|Email (personal)=
|Phone Office=
|Phone Cell=
|Start Date=
|End Date=
|Birthday=
|Hobbies and Interests=
|Notes=
}}
</pre>
Edit the page to see the template text.
{{#cargo_declare:_table=Employees|Image=File|Alias=List (,) of Text|Title=List (,) of Page|Expertise=List (,) of Page|Language=List (,) of String (allowed values=Chinese (Cantonese),Chinese (Mandarin),Danish,Dutch,French,German,Portuguese,Russian,Spanish)|Email=Email|Email_personal=Email|Phone_Office=Text|Phone_Cell=Text|Start_Date=Date|End_Date=Date|Birthday=Date|Department=List (,) of Page|Supervisor=List (,) of Page|Hobbies_and_Interests=List (,) of Text|Notes=Wikitext}}
</noinclude><includeonly>{{#cargo_store:_table=Employees|Image={{{Image|}}}|Alias={{{Alias|}}}|Title={{{Title|}}}|Expertise={{{Expertise|}}}|Language={{{Language|}}}|Email={{{Email|}}}|Email_personal={{{Email (personal)|}}}|Phone_Office={{{Phone Office|}}}|Phone_Cell={{{Phone Cell|}}}|Start_Date={{{Start Date|}}}|End_Date={{{End Date|}}}|Birthday={{{Birthday|}}}|Department={{{Department|}}}|Supervisor={{{Supervisor|}}}|Hobbies_and_Interests={{{Hobbies and Interests|}}}|Notes={{{Notes|}}} }}
{| style="width: 30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
| style="text-align:center; background-color:#B9D9E4; padding:2px; border:1px solid #777777;" colspan="2" |<span style="font-size: larger; font-weight:bold;"><big>{{PAGENAME}}</big></span><span style="font-size:0px;"> &nbsp;&nbsp; Alias: {{#arraymap:{{{Alias|}}}|,|x|[[x]]}}</span>
|-
| colspan="2" | {{#if: {{{Image|}}} | [[File:{{{Image|}}}|center|]]}}
|-
| colspan="2" style="text-align:center; background-color:#B9D9E4; padding:2px; border:1px solid #777777;" | <span style="font-weight:bold; font-size:1.2em;">{{#arraymap:{{{Title|}}}|,|@@@@|[[@@@@|{{#ifexist: @@@@|@@@@|@@@@}}]]}}</span>
|-
| style="width: 15em;" | '''[[:Category:Departments|Department]]:''' || {{#arraymap:{{{Department|}}}|,|@@@@|[[@@@@|{{#sub:{{#ifexist: @@@@|@@@@|@@@@}}|0|-11}}]]}}
|-
{{ #if: {{{Supervisor|}}} | {{!}} '''Supervisor:''' {{!}}{{!}} {{#arraymap:{{{Supervisor|}}}|,|@@@@|[[@@@@|{{#sub:{{#ifexist: @@@@|@@@@|@@@@}}|5}}]]}} }}
|-
| style="vertical-align: top;" | '''[[Languages]]:''' || {{#arraymap:{{{Language|}}}|,|@@@@|@@@@}}
|-
| '''[[Contact list#Email|Email (work)]]:''' || {{ #if: {{{Email|}}} | [mailto:{{{Email|}}} {{{Email|}}}] }}
|-
| '''[[Contact list#Email|Email (personal)]]:''' || {{ #if: {{{Email (personal)|}}} | [mailto:{{{Email (personal)|}}} {{{Email (personal)|}}}] }}
|-
| '''[[Contact list#Phone|Phone Office]]:''' || {{{Phone Office|}}}
|-
| '''[[Contact list#Phone|Phone Cell]]:''' || {{{Phone Cell|}}}
|-
| '''[[Birthdays|Birthday]]:''' || {{#cargo_query:tables=Employees|fields=DATE_FORMAT(Birthday,'%M %D')=Birthday|where=_PageTitle='{{PAGENAME}}'|default=}}
|-
| '''Start Date:''' || {{#cargo_query:tables=Employees|fields=DATE_FORMAT(Start_Date,'%M %D%, %Y')|where=_PageTitle='{{PAGENAME}}'|default=}}
|-
{{ #if: {{{End Date|}}} | {{!}} '''End Date:''' {{!}}{{!}} {{#cargo_query:tables=Employees|fields=DATE_FORMAT(End_Date,'%M %D%, %Y')|where=_PageTitle='{{PAGENAME}}'|default=}} }}
|-
| colspan="2" style="text-align:center; background-color:#B9D9E4; padding:2px; border:1px solid #777777;" | <span style="font-size: 1.1em; font-weight: bold;">[[:Category:Expertise|Expertise]]</span> ({{#cargo_query:|tables=Employees|fields=COUNT(*)|where=ISNULL(End_Date) = 1 AND _pageName = '{{FULLPAGENAME}}' AND Expertise HOLDS NOT "Custom Format"}}/{{PAGESINCATEGORY:Expertise}})
|-
| colspan="2" | <div style="column-count:2;-moz-column-count:2;-webkit-column-count:2">
{{#cargo_query:|tables=Employees|fields=Expertise|where=ISNULL(End_Date) = 1 AND _pageName = '{{FULLPAGENAME}}' AND Expertise HOLDS NOT "Custom Format"|format=list|intro=*|delimiter=<br>
*}}
</div>
|-
| colspan="2" style="text-align:center; background-color:#B9D9E4; padding:2px; border:1px solid #777777;" | <span style="font-size: 1.1em; font-weight: bold;">Tools & [[Special:Contributionscores|Awards]]</span>
|-
| [[File:ToDo.png|150px|center|link=User:{{PAGENAME}}/ToDo|ToDo List]] || rowspan="2" | {{Service awards}}
|-
| [[File:NotesPic.png|150px|center|link=User:{{PAGENAME}}/Notes|Notes]]
|}

{{{Notes|}}}




==Hobbies and Interests==
{{#arraymap:{{{Hobbies and Interests|}}}|,|@@@@|@@@@}}


{{ #if: {{{End Date|}}} | [[Category:Former Employees]] | [[Category:Employees]] }}
__NOCACHE__
</includeonly>