Template:Employee: Difference between revisions

From Discourse DB
Jump to navigation Jump to search
No edit summary
(Undo revision 34827 by Yaron Koren (talk))
Tag: Undo
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
This is the "Employee" template.
{{#template_params:
It should be called in the following format:
Date started
<pre>
|Date ended
{{Employee
|Photo
|Date started=
|Department
|Photo=
|Nicknames
|Department=
|Hobbies
|Nicknames=
|Has a car
|Hobbies=
|Personal rating
|Has a car=
|One file
|One file=
|Multiple files
|Multiple files=
|Other dates
}}
}}
</pre>
{{#cargo_declare:_table=Employees|Date_started=Start datetime|Date_ended=End datetime|Photo=File|Department=Page (hierarchy;allowed values=*HR
Edit the page to see the template text.
{{#cargo_declare:_table=Employees|Date_started=Datetime|Photo=File|Department=String (hierarchy;allowed values=*HR
*Sales
*Sales
**North American sales
**North American sales
Line 24: Line 22:
*IT
*IT
**Hardware
**Hardware
**Software)|Nicknames=List (,) of String|Hobbies=List (,) of Text|Middle_name=String|Mission_statement=Text|Has_a_car=Boolean|One_file=File|Multiple_files=List (,) of File}}
**Software)|Nicknames=List (x) of String|Hobbies=List (,) of Text|Middle_name=String|Mission_statement=Text
</noinclude><includeonly>{{#cargo_store:_table=Employees|Date_started={{{Date started|}}}|Photo={{{Photo|}}}|Department={{{Department|}}}|Nicknames={{{Nicknames|}}}|Hobbies={{{Hobbies|}}}|Middle_name={{{Middle name|}}}|Mission_statement={{#cargo_query:table=Authors|fields=_pageName|format=list|delimiter=,|limit=4}}|Has_a_car={{{Has a car|}}}|One_file={{{One file|}}}|Multiple_files={{{Multiple files|}}} }}
|Has_a_car=Boolean
{| class="wikitable"
|Personal_rating=Rating
! Date started
|One_file=File
| {{{Date started|}}}
|Multiple_files=List (,) of File
|-
|Other_dates=List (;) of Date
! Photo
|Is_employee=Boolean}}
| [[File:{{{Photo|}}}]]
</noinclude><includeonly>{{#cargo_store:_table=Employees|Is_employee=Yes}}
|-
{{#template_display:}}
! Department
| {{{Department|}}}
|-
! Nicknames
| {{{Nicknames|}}}
|-
! Hobbies
| {{{Hobbies|}}}
|-
! Middle name
| {{{Middle name|}}}
|-
! Mission statement
| {{#cargo_query:table=Authors|fields=CONCAT('[[',_pageName,']]')|format=list|delimiter=,|limit=4|no html}}
|-
! Has a car?
| {{{Has a car|}}}
|-
! One file
| [[{{{One file|}}}]]
|-
! Multiple files
| {{#arraymap:{{{Multiple files|}}}|,|x|[[x]]}}
|}
 
[[Category:Employees]]
[[Category:Employees]]
</includeonly>
</includeonly>

Latest revision as of 19:55, June 1, 2023

This is the "Employee" template.

It should be called in the following format:

{{Employee
|Date started=
|Date ended=
|Photo=
|Department=
|Nicknames=
|Hobbies=
|Has a car=
|Personal rating=
|One file=
|Multiple files=
|Other dates=
}}

Edit the page to see the template text.

This template defines the table "Employees". View table.