Difference between revisions of "Template:Person"

From ICPWiki
Jump to navigation Jump to search
Line 1: Line 1:
<includeonly>{{#if:{{{nostore|}}}||{{#if:{{{image|}}}|[[Image::Image:{{{image}}}| ]]}}{{#if:{{{title|}}}|[[Title::{{{title}}} | ]]}}{{#if:{{{status|}}}|[[Status::{{{status}}}| ]]}}{{#if:{{{former|}}}|[[Former::yes| ]]|[[Former::no| ]]}}{{#if:{{{room|}}}|[[Room::{{{room}}}| ]]}}{{#if:{{{phone|}}}|[[Phone::{{{phone}}}| ]]}}{{#if:{{{altphone|}}}|[[External phone::{{{altphone}}}| ]]}}{{#if:{{{fax|}}}|[[Fax::{{{fax}}}| ]]}}[[Email::{{{email|???}}}| ]]}}<div style="border: thin solid #D6D6D6; padding:10px; background-color: #F6F6F6; font-size:small;">
+
<includeonly>{{#if:{{{nostore|}}}||{{#if:{{{former|}}}|[[Category:Former]]|{{#if:{{{staff|}}}|[[Category:Staff]]|[[Category:Member of the research group]]}}}}{{#if:{{{image|}}}|[[Image::Image:{{{image}}}| ]]}}{{#if:{{{title|}}}|[[Title::{{{title}}} | ]]}}{{#if:{{{status|}}}|[[Status::{{{status}}}| ]]}}{{#if:{{{room|}}}|[[Room::{{{room}}}| ]]}}{{#if:{{{phone|}}}|[[Phone::{{{phone}}}| ]]}}{{#if:{{{altphone|}}}|[[External phone::{{{altphone}}}| ]]}}{{#if:{{{fax|}}}|[[Fax::{{{fax}}}| ]]}}[[Email::{{{email|???}}}| ]]}}<div style="border: thin solid #D6D6D6; padding:10px; background-color: #F6F6F6; font-size:small;">
 
[[Image:{{{image|No_photo.png}}}|right|180px]]'''{{#if:{{{title|}}}|{{{title}}} {{PAGENAME}}|{{PAGENAME}}}}'''<br>{{#if:{{{status|}}}|{{{status}}}}}<br><table>
 
[[Image:{{{image|No_photo.png}}}|right|180px]]'''{{#if:{{{title|}}}|{{{title}}} {{PAGENAME}}|{{PAGENAME}}}}'''<br>{{#if:{{{status|}}}|{{{status}}}}}<br><table>
 
   {{#if:{{{room|}}}
 
   {{#if:{{{room|}}}
Line 65: Line 65:
 
:The ICP email address. Do not enter other Email-Adresses here! Sets [[Property:Email]].
 
:The ICP email address. Do not enter other Email-Adresses here! Sets [[Property:Email]].
 
;former
 
;former
:Whether or not the person is a former member of the group. Set this to any string for a former member. Sets [[Property:Former]].
+
:Whether or not the person is a former member of the group. Set this to any string for a former member. Sets [[:Category::Former member]].
 +
;staff
 +
:Whether or not the person is a staff member (secretary, system admin, ...). Sets [[:Category:Staff member]] if it is set, [[:Category:Member of the research group]] otherwise.
  
 
</noinclude>
 
</noinclude>

Revision as of 15:45, 11 June 2010

This template should be used at the top of each user page. It will generate a uniform header for the page and furthermore add the data to the database so that it can be used in the list of people.

Example

Olaf Lenz.jpg
His Royal Majesty Person
King
Office:123
Phone:+49(0)711/685-12345
External phone:0123/3456789
Fax:+49(0)711/685-54321
Email:king _at_ icp.uni-stuttgart.de
Address:His Royal Majesty Person
Institute for Computational Physics
Universität Stuttgart
Pfaffenwaldring 27
70569 Stuttgart
Germany


Template

You can copy the following template onto your user page and fill in the data.

{{Person
|image=
|title=
|status=
|room=
|phone=
|altphone=
|fax=
|email=
}}

Parameters

image
Image name. Default: No_photo.png. Sets Property:Image.
title
The title of the person (e.g. Dr. or Prof. Dr.). Sets Property:Title.
status
Status in the group (PostDoc, Professor, PhD-student, ...). Sets Property:Status.
room
Office number. Sets Property:Room.
phone
In-house phone number. Sets Property:Phone.
altphone
External phone number (optional!). Sets Property:External phone.
fax
Fax number. Default: Secretaries fax number. Sets Property:Fax.
email
The ICP email address. Do not enter other Email-Adresses here! Sets Property:Email.
former
Whether or not the person is a former member of the group. Set this to any string for a former member. Sets [[:Category::Former member]].
staff
Whether or not the person is a staff member (secretary, system admin, ...). Sets Category:Staff member if it is set, Category:Member of the research group otherwise.