[[File:Employees gallery.png|alt=Screenshot of employees gallery|450x450px]]
[[File:Employees gallery.png|alt=Screenshot of employees gallery|450x450px]]
Line 13:
Line 13:
==Creating the employee gallery==
==Creating the employee gallery==
You can add each individual employee card as a template. Alternatively, you can [[Templates download/Employee#Adding a "batch" of employees|add a "batch" of employees]] directly in the source mode of the page.
# From the Visual Editor ''Insert > Template'' menu, add the template "Employee". [[File:Employee template.png|alt=Screenshot of dialog to select the Employee template|center|thumb|450x450px|Select the Employee template]]
# Provide the necessary information in the [[Templates download/Employee#Available parameters|parameter fields]].
# From the Visual Editor ''Insert > Template'' menu, add the template "Employee". <br />[[File:step4.png|thumb|Inserting the template through VisualEditor|462x462px|alt=Inserting the template through VisualEditor|center]]
=== Adding a "batch" of employees ===
#Click on the inserted template to view the available parameters for formatting the look of the banner.<br />
To speed up the process, you can quickly add the template multiple times directly in the source editing mode. This also allows you to add a wrapper around the images to fine-tune the alignment of the images:<syntaxhighlight lang="text">
{{Messagebox|boxtype=important|Note text=The settings only take effect after you save the page if you have just inserted the banner template on your page.}}
All settings for the banner are optional. This means that a box can be generated without image, heading, or text.
| style="box-sizing:inherit;padding:0.2em 0.4em;border:1px solid rgb(162, 169, 177);" |Image name (with namespace prefix, if it exists, but without the ''File:'' prefix). The banner image is optional.
| style="box-sizing:inherit;padding:0.2em 0.4em;border:1px solid rgb(162, 169, 177);" |Number. The width will automatically be used as pixel-value. Default value: ''200''
| style="box-sizing:inherit;padding:0.2em 0.4em;border:1px solid rgb(162, 169, 177);" |Size can also be entered as 16px or any other css size value. Default value: ''1.6em''.
|- style="box-sizing: inherit;"
| style="width:200px;box-sizing:inherit;padding:0.2em 0.4em;border:1px solid rgb(162, 169, 177);" |Heading color
| style="box-sizing:inherit;padding:0.2em 0.4em;border:1px solid rgb(162, 169, 177);" |Distance of the title/text area to the box and the image. Default value:''10px.''
| style="width:680px;" |[[File:banner-bgicon3.png|alt=Banner with bgicon3 as background effect|650x650px]]
|username
|Heading color: #ffffff
|username (without namespace prefix)
|If the user exists in the wiki and the user name is provided, the employee card links to the user's profile page.
Text color: #ffffff
Background color: #747474
Background icon: bgicon3
|-
|-
| style="width:150px;" |swoosh
|6
| style="width:680px;" |[[File:banner-swoosh.png|alt=Banner with swoosh as background effect|650x650px]]
|employeepage
|Heading color: #2e6096
|name of a wiki page
|If the employee does not exist as user, an employee page can be created anywhere in the wiki. If a page name is provided here, the employee card links to that page.
To speed up the process, you can quickly add the template multiple times directly in the source editing mode. This also allows you to add a wrapper around the images to fine-tune the alignment of the images:
Name of the uploaded user image (e.g.: lastnamefirstname.png). If left empty, the template looks for the profile image of the user.
3
name
text
Name of the employee
4
department
text
Department of the employee
5
username
username (without namespace prefix)
If the user exists in the wiki and the user name is provided, the employee card links to the user's profile page.
6
employeepage
name of a wiki page
If the employee does not exist as user, an employee page can be created anywhere in the wiki. If a page name is provided here, the employee card links to that page.