From Discourse DB
(Difference between pages)
Jump to navigation
Jump to search
|
|
Line 1: |
Line 1: |
| <noinclude>
| | [[{{1}}}|{{{2}}}]] |
| This is the "Employee" template.
| |
| It should be called in the following format:
| |
| <pre>
| |
| {{Employee
| |
| |Date started=
| |
| |Photo=
| |
| |Department=
| |
| |Nicknames=
| |
| |Hobbies=
| |
| |Has a car=
| |
| |One file=
| |
| |Multiple files=
| |
| }}
| |
| </pre>
| |
| Edit the page to see the template text.
| |
| {{#cargo_declare:_table=Employees|Date_started=Datetime|Photo=File|Department=String (hierarchy;allowed values=*HR
| |
| *Sales
| |
| **North American sales
| |
| ***American sales
| |
| ***Canadian sales
| |
| **European sales
| |
| *Marketing
| |
| *IT
| |
| **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}}
| |
| </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=Fruits|fields=Color|format=list|delimiter=,|no html}}|Has_a_car={{{Has a car|}}}|One_file={{{One file|}}}|Multiple_files={{{Multiple files|}}} }}
| |
| {| class="wikitable"
| |
| ! Date started
| |
| | {{{Date started|}}}
| |
| |-
| |
| ! Photo
| |
| | [[File:{{{Photo|}}}]]
| |
| |-
| |
| ! Department
| |
| | {{{Department|}}}
| |
| |-
| |
| ! Nicknames
| |
| | {{{Nicknames|}}}
| |
| |-
| |
| ! Hobbies
| |
| | {{{Hobbies|}}}
| |
| |-
| |
| ! Middle name
| |
| | {{{Middle name|}}}
| |
| |-
| |
| ! Mission statement
| |
| | {{#cargo_query:table=Fruits|fields=Color|format=list|delimiter=,|no html}}
| |
| |-
| |
| ! Has a car?
| |
| | {{{Has a car|}}}
| |
| |-
| |
| ! One file
| |
| | [[{{{One file|}}}]]
| |
| |-
| |
| ! Multiple files
| |
| | {{#arraymap:{{{Multiple files|}}}|,|x|[[x]]}} | |
| |}
| |
| | |
| [[Category:Employees]]
| |
| </includeonly>
| |
Revision as of 02:09, August 16, 2018