Template:Employee: Difference between revisions

From Discourse DB
Jump to navigation Jump to search
No edit summary
No edit summary
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
|Date ended=
|Nicknames
|Photo=
|Hobbies
|Department=
|Has a car
|Nicknames=
|Personal rating
|Hobbies=
|One file
|Has a car=
|Multiple files
|Personal rating=
|One file=
|Multiple files=
}}
}}
</pre>
Edit the page to see the template text.
{{#cargo_declare:_table=Employees|Date_started=Start datetime|Date_ended=End datetime|Photo=File|Department=String (hierarchy;allowed values=*HR
{{#cargo_declare:_table=Employees|Date_started=Start datetime|Date_ended=End datetime|Photo=File|Department=String (hierarchy;allowed values=*HR
*Sales
*Sales
Line 27: Line 22:
**Hardware
**Hardware
**Software)|Nicknamés=List (,) of String|Hobbies=List (,) of Text|Middle_name=String|Mission_statement=Text|Has_a_car=Boolean|Personal_rating=Rating|One_file=File|Multiple_files=List (,) of File}}
**Software)|Nicknamés=List (,) of String|Hobbies=List (,) of Text|Middle_name=String|Mission_statement=Text|Has_a_car=Boolean|Personal_rating=Rating|One_file=File|Multiple_files=List (,) of File}}
</noinclude><includeonly>{{#cargo_store:_table=Employees|Date_started={{{Date started|}}}|Date_ended={{{Date ended|}}}|Photo={{{Photo|}}}|Department={{{Department|}}}|Nicknamés={{{Nicknames|}}}|Hobbies={{{Hobbies|}}}|Middle_name={{{Middle name|}}}|Mission_statement={{{Mission statement|}}}|Has_a_car={{{Has a car|}}}|Personal_rating={{{Personal rating|}}}|One_file={{{One file|}}}|Multiple_files={{{Multiple files|}}} }}
</noinclude><includeonly>{{#cargo_store:_table=Employees}}
{| class="wikitable"
{{#template_display:}}
! Date started
| {{{Date started|}}}
|-
! Date ended
| {{{Date ended|}}}
|-
! Photo
| [[File:{{{Photo|}}}]]
|-
! Department
| {{{Department|}}}
|-
! Nicknames
| {{{Nicknames|}}}
|-
! Hobbies
| {{{Hobbies|}}}
|-
! Middle name
| {{{Middle name|}}}
|-
! Mission statement
| {{{Mission statement|}}}
|-
! Has a car?
| {{{Has a car|}}}
|-
! Personal rating
| {{{Personal rating|}}}
|-
! One file
| [[{{{One file|}}}]]
|-
! Multiple files
| {{#arraymap:{{{Multiple files|}}}|,|x|[[x]]}}
|}
 
[[Category:Employees]]
[[Category:Employees]]
</includeonly>
</includeonly>

Revision as of 23:34, June 10, 2021

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=
}}

Edit the page to see the template text.

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