Last edited one year ago
by Demo writer

Template:Employee: Difference between revisions

hw>Mlink-rodrigue
No edit summary
No edit summary
Tag: 2017 source edit
 
(4 intermediate revisions by the same user not shown)
Line 5: Line 5:
* image
* image
* username (if employee exists as user)
* username (if employee exists as user)
* employeepage (if no user exists, but a wikipage for the employee exists)</noinclude><includeonly> <div class="employee"> <div class="eimage">{{#if:{{{image|}}}|[[File:{{{image}}}|150x150px|link={{#if:{{{username|}}}|User:{{{username}}}|{{#if:{{{employeepage|}}}|{{{employeepage}}}|}}}}]]|[[File:Portrait_Placeholder_Square.png|150x150px|link={{#if:{{{username|}}}|User:{{{username}}}|{{#if:{{{employeepage|}}}|{{{employeepage}}}|}}}}]]}}</div> <div class="ename">{{#if:{{{username|}}}|[[User:{{{username}}}{{!}}{{{name}}}]]|{{#if:{{{employeepage|}}}|[[{{{employeepage}}}{{!}}{{{name}}}]]|{{{name}}}}}}}</div> <div class="edepartment">{{{department|}}}</div> <div class="etitle">{{{title|}}}</div> </div></includeonly>
* employeepage (if no user exists, but a wikipage for the employee exists)</noinclude><includeonly><templatestyles src="Employee/styles.css" />
<div class="employee">
<div class="eimage">{{#if:{{{image|}}}
|<!--image has a value-->{{#ifeq:{{{image|}}}|profileimage
|<!--show profileimage:-->{{#if:{{{username|}}}|[[User:{{{username}}}{{!}}<profileimage username="{{{username|}}}" width="150" height="150" raw="1" />]]
|{{#if:{{{employeepage|}}}|[[{{{employeepage|}}}{{!}}<profileimage username="noexist" width="150" height="150" raw="1" />]]|<profileimage username="{{{username|}}}" width="150" height="150" raw="1" />}}
}}
|<!--show uploaded image:-->
{{#if:{{{username|}}}
|[[File:{{{image|}}}|150px|alt=Photo of {{{name|}}}|link=User:{{{username}}}]]
|{{#if:{{{employeepage|}}}|[[File:{{{image|}}}|150px|alt=Photo of {{{name|}}}|link=User:{{{employeepage}}}]]|[[File:{{{image|}}}|150px|alt=Photo of {{{name|}}}|link=]]}}
}}
}}
|<!--image has no value--><profileimage username="noexist" width="150" height="150" raw="1" />
}}
</div>
<div class="ename">{{#if:{{{username|}}}|[[User:{{{username}}}{{!}}{{{name}}}]]|{{#if:{{{employeepage|}}}|[[{{{employeepage}}}{{!}}{{{name}}}]]|{{{name}}}}}}}</div>
<div class="edepartment">{{{department|}}}</div>
<div class="etitle">{{{title|}}}</div>
</div></includeonly>
<noinclude>
<noinclude>
<templatedata>
<templatedata>
Line 12: Line 31:
"image": {
"image": {
"type": "wiki-file-name",
"type": "wiki-file-name",
"suggested": true
"suggested": true,
"label": {
"de": "Foto",
"en": "Photo"
},
"default": {
"de": "Profilbild",
"en": "profileimage"
}
},
},
"username": {
"username": {
"type": "wiki-user-name",
"type": "wiki-user-name",
"suggested": true
"suggested": true,
"label": {
"de": "Benutzername (falls vorhanden)",
"en": "User name (if exists)"
}
},
},
"name": {
"name": {
"suggested": true
"suggested": true,
"label": {
"de": "Anzeigename",
"en": "Name"
}
},
},
"department": {
"department": {
"suggested": true
"suggested": true,
"label": {
"de": "Abteilung",
"en": "Department"
}
},
},
"title": {
"title": {
"suggested": true
"suggested": true,
"label": {
"de": "Stellenbezeichnung",
"en": "Job title"
}
},
},
"employeepage": {
"employeepage": {
"type": "wiki-page-name",
"type": "wiki-page-name",
"suggested": true
"suggested": true,
"label": {
"de": "Mitarbeiterseite (falls keine Benutzerseite existiert)",
"en": "Employee page (if no user page exists)"
}
}
}
},
},

Latest revision as of 13:34, 3 July 2023

  • title
  • name
  • department
  • image
  • username (if employee exists as user)
  • employeepage (if no user exists, but a wikipage for the employee exists)

No description.

Template parameters

ParameterDescriptionTypeStatus
Namename

no description

Unknownsuggested
Departmentdepartment

no description

Unknownsuggested
Job titletitle

no description

Unknownsuggested
Photoimage

no description

Default
profileimage
Filesuggested
User name (if exists)username

no description

Usersuggested
Employee page (if no user page exists)employeepage

no description

Page namesuggested