Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung Markierung: 2017-Quelltext-Bearbeitung |
||
Zeile 1: | Zeile 1: | ||
<div class="downloadarea"> | |||
<span class="getButton">[[Media:HW-Mitarbeiter.zip|Download]]</span> | |||
[[File:HW-Mitarbeiter.png|alt=Screenshot der Mitarbeitergalerie|450x450px]] | |||
</div>Diese Vorlage erstellt eine Mitarbeitergalerie, die Sie beispielsweise auf Portalseiten einbinden können. | |||
==Vorlage importieren== | |||
==Import der Vorlage== | |||
Die benötigte Import-Datei befindet sich im Archiv ''HW-Mitarbeiter.zip''. Sie enthält die Datei ''HW-Mitarbeiter.xml''. | |||
Führen Sie auf der Seite <code>Spezial:Import</code> in Ihrem Wiki folgende Schritte durch: | |||
#'''Entpacken''' Sie die zip-Datei. | |||
#'''Klicken''' Sie ''Browse...'' und wählen Sie die Datei ''HW-Mitarbeiter.xml''. | |||
#'''Geben''' Sie ein Interwiki-Präfix '''an'''. Da dieses Feld erforderlich ist, geben Sie hier einfach ''hw'' (für hallowelt) ein. | |||
#Belassen Sie die Vorauswahl ''Zu den Standard-Speicherorten'' importieren. | |||
#'''Klicken''' Sie ''Datei hochladen...'' . | |||
== | Die Vorlage ist nun in Ihrem Wiki verfügbar. | ||
==Im Import enthaltene Seiten== | |||
Der XML-Import erstellt die folgenden Dateien in Ihrem Wiki: | |||
*Vorlage:Mitarbeiter | |||
*Vorlage:Mitarbeiter/styles.css | |||
==Erstellen der Mitarbeitergalerie== | |||
Sie können jede einzelne Mitarbeiterkarte als Vorlage "Mitarbeiter" hinzufügen. Alternativ können Sie [[Vorlagen Download/Mitarbeiter#Stapelbearbeitung|einen „Stapel“ von Mitarbeitern]] direkt im Quellmodus der Seite hinzufügen. | |||
# Fügen Sie im Visual Editor-Menü „Einfügen > Vorlage“ die Vorlage „Mitarbeiter“ hinzu. [[File:Employee template.png|alt=Screenshot des Dialogfelds zur Auswahl der Employee-Vorlage|center|thumb|450x450px|Einfügen der Mitarbeiter-Vorlage]] | |||
# Geben Sie die erforderlichen Informationen in den [[Vorlagen Download/Mitarbeiter#Verfügbare Parameter|Parameterfeldern]] an. | |||
== | === Stapelbearbeitung === | ||
Um den Vorgang zu beschleunigen, können Sie die Vorlage direkt im Quellbearbeitungsmodus schnell und mehrfach hinzufügen. Dadurch können Sie auch einen grauen Kasten um die Galerie hinzufügen:<syntaxhighlight lang="text"> | |||
<div style="background:#e9e9ee"> | |||
{{Mitarbeiter|title=Titel|image=|name=Mitarbeitername|department=Abteilung|username=}} | |||
{{Mitarbeiter|title=Titel|image=|name=Mitarbeitername|department=Abteilung|username=}} | |||
== | {{Mitarbeiter|title=Titel|image=|name=Mitarbeitername|department=Abteilung|username=}} | ||
{{Mitarbeiter|title=Titel|image=|name=Mitarbeitername|department=Abteilung|username=}} | |||
{{Mitarbeiter|title=Titel|image=|name=Mitarbeitername|department=Abteilung|username=}} | |||
{{Mitarbeiter|title=Titel|image=|name=Mitarbeitername|department=Abteilung|username=}} | |||
== | |||
= | |||
</div> | </div> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== Available parameters== | |||
{| class="wikitable" style="width: 100%;" | {| class="wikitable" style="width: 100%;" | ||
| | ! style="background-color:rgb(234, 236, 240);text-align:center;box-sizing:inherit;padding:0.2em 0.4em;border:1px solid rgb(162, 169, 177);" class="" | | ||
! style="width: | ! style="background-color:rgb(234, 236, 240);text-align:center;width:200px;box-sizing:inherit;padding:0.2em 0.4em;border:1px solid rgb(162, 169, 177);" class="" |Element | ||
! | ! style="background-color:rgb(234, 236, 240);text-align:center;width:180px;box-sizing:inherit;padding:0.2em 0.4em;border:1px solid rgb(162, 169, 177);" class="" |Value | ||
! style="background-color:rgb(234, 236, 240);text-align:center;box-sizing:inherit;padding:0.2em 0.4em;border:1px solid rgb(162, 169, 177);" class="" | Description | |||
|- | |- | ||
| | |1 | ||
| | |Titel | ||
|text | |||
|Stellenbezeichnung | |||
|- | |- | ||
| | |2 | ||
| | |image | ||
|Dateiname (without naemspace prefix) | |||
|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. | |||
|} | |} | ||
__NOTOC__ | |||
[[en:Vorlagen_Download/Seitenbanner]] | |||
[[en:{{FULLPAGENAME}}]] | |||
==Importing the template== | |||
{{Templateimport|HW-Employee}} | |||
==Pages included in the import== | |||
The xml import creates the following files in your wiki: | |||
*Template:Employee | |||
*Template:Employee/styles.css | |||
== | ==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]]. | ||
| | |||
| | |||
=== Adding a "batch" of employees === | |||
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 colored grey wrapper around the gallery:<syntaxhighlight lang="text"> | |||
<div style="background:#e9e9ee"> | |||
{{Mitarbeiter|title=Title|image=|name=Employee name|department=Department|username=}} | |||
{{Mitarbeiter|title=Title|image=|name=Employee name|department=Department|username=}} | |||
{{Mitarbeiter|title=Title|image=|name=Employee name|department=Department|username=}} | |||
{{Mitarbeiter|title=Title|image=|name=Employee name|department=Department|username=}} | |||
{{Mitarbeiter|title=Title|image=|name=Employee name|department=Department|username=}} | |||
{{Mitarbeiter|title=Title|image=|name=Employee name|department=Department|username=}} | |||
</div> | |||
</syntaxhighlight> | |||
=== | == Available parameters== | ||
{| class="wikitable" style="width: 100%;" | |||
{| class=" | ! style="background-color:rgb(234, 236, 240);text-align:center;box-sizing:inherit;padding:0.2em 0.4em;border:1px solid rgb(162, 169, 177);" class="" | | ||
! style="background-color:rgb(234, 236, 240);text-align:center;width:200px;box-sizing:inherit;padding:0.2em 0.4em;border:1px solid rgb(162, 169, 177);" class="" |Element | |||
! style=" | ! style="background-color:rgb(234, 236, 240);text-align:center;width:180px;box-sizing:inherit;padding:0.2em 0.4em;border:1px solid rgb(162, 169, 177);" class="" |Value | ||
! style="background-color:rgb(234, 236, 240);text-align:center;box-sizing:inherit;padding:0.2em 0.4em;border:1px solid rgb(162, 169, 177);" class="" | Description | |||
| | |||
|- | |- | ||
| | |1 | ||
| | |title | ||
|text | |||
|Job title | |||
|- | |- | ||
| | |2 | ||
| | |image | ||
|file name (without naemspace prefix) | |||
|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. | |||
|} | |} | ||
[[en: | __NOTOC__ | ||
[[en:Vorlagen_Download/Seitenbanner]] | |||
[[en:{{FULLPAGENAME}}]] |
Version vom 13. Oktober 2023, 12:19 Uhr
Diese Vorlage erstellt eine Mitarbeitergalerie, die Sie beispielsweise auf Portalseiten einbinden können.
Vorlage importieren
Import der Vorlage
Die benötigte Import-Datei befindet sich im Archiv HW-Mitarbeiter.zip. Sie enthält die Datei HW-Mitarbeiter.xml.
Führen Sie auf der Seite Spezial:Import
in Ihrem Wiki folgende Schritte durch:
- Entpacken Sie die zip-Datei.
- Klicken Sie Browse... und wählen Sie die Datei HW-Mitarbeiter.xml.
- Geben Sie ein Interwiki-Präfix an. Da dieses Feld erforderlich ist, geben Sie hier einfach hw (für hallowelt) ein.
- Belassen Sie die Vorauswahl Zu den Standard-Speicherorten importieren.
- Klicken Sie Datei hochladen... .
Die Vorlage ist nun in Ihrem Wiki verfügbar.
Im Import enthaltene Seiten
Der XML-Import erstellt die folgenden Dateien in Ihrem Wiki:
- Vorlage:Mitarbeiter
- Vorlage:Mitarbeiter/styles.css
Erstellen der Mitarbeitergalerie
Sie können jede einzelne Mitarbeiterkarte als Vorlage "Mitarbeiter" hinzufügen. Alternativ können Sie einen „Stapel“ von Mitarbeitern direkt im Quellmodus der Seite hinzufügen.
- Fügen Sie im Visual Editor-Menü „Einfügen > Vorlage“ die Vorlage „Mitarbeiter“ hinzu.
- Geben Sie die erforderlichen Informationen in den Parameterfeldern an.
Stapelbearbeitung
Um den Vorgang zu beschleunigen, können Sie die Vorlage direkt im Quellbearbeitungsmodus schnell und mehrfach hinzufügen. Dadurch können Sie auch einen grauen Kasten um die Galerie hinzufügen:
<div style="background:#e9e9ee">
{{Mitarbeiter|title=Titel|image=|name=Mitarbeitername|department=Abteilung|username=}}
{{Mitarbeiter|title=Titel|image=|name=Mitarbeitername|department=Abteilung|username=}}
{{Mitarbeiter|title=Titel|image=|name=Mitarbeitername|department=Abteilung|username=}}
{{Mitarbeiter|title=Titel|image=|name=Mitarbeitername|department=Abteilung|username=}}
{{Mitarbeiter|title=Titel|image=|name=Mitarbeitername|department=Abteilung|username=}}
{{Mitarbeiter|title=Titel|image=|name=Mitarbeitername|department=Abteilung|username=}}
</div>
Available parameters
Element | Value | Description | |
---|---|---|---|
1 | Titel | text | Stellenbezeichnung |
2 | image | Dateiname (without naemspace prefix) | 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. |
Importing the template
Pages included in the import
The xml import creates the following files in your wiki:
- Template:Employee
- Template:Employee/styles.css
Creating the employee gallery
You can add each individual employee card as a template. Alternatively, you can add a "batch" of employees directly in the source mode of the page.
- From the Visual Editor Insert > Template menu, add the template "Employee".
- Provide the necessary information in the parameter fields.
Adding a "batch" of employees
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 colored grey wrapper around the gallery:
<div style="background:#e9e9ee">
{{Mitarbeiter|title=Title|image=|name=Employee name|department=Department|username=}}
{{Mitarbeiter|title=Title|image=|name=Employee name|department=Department|username=}}
{{Mitarbeiter|title=Title|image=|name=Employee name|department=Department|username=}}
{{Mitarbeiter|title=Title|image=|name=Employee name|department=Department|username=}}
{{Mitarbeiter|title=Title|image=|name=Employee name|department=Department|username=}}
{{Mitarbeiter|title=Title|image=|name=Employee name|department=Department|username=}}
</div>
Available parameters
Element | Value | Description | |
---|---|---|---|
1 | title | text | Job title |
2 | image | file name (without naemspace prefix) | 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. |