Difference between revisions of "Template:Person"

From ICPWiki
Jump to navigation Jump to search
Line 1: Line 1:
 
<includeonly><div style="border: thin solid #D6D6D6; padding:10px; background-color: #F6F6F6; font-size:small;">
 
<includeonly><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 style="background:transparent;">
+
[[Image:{{{image|No_photo.png}}}|right|180px]]'''{{#if:{{{title|}}}|{{{title}}} {{PAGENAME}}|{{PAGENAME}}}}'''<br>{{#if:{{{status|}}}|{{{status}}}}}<br>{{#ifeq:{{{category}}}|former
  {{#if:{{{room|}}}
+
  |<div style="font-weight:bold;font-size:larger">As {{PAGENAME}} is not a member of our working group anymore, the information on this page might be outdated.</div>
    |<tr valign="top"><th style="text-align:right;">Office:</th><td>{{{room}}}</td></tr>
+
  |<table style="background:transparent;">
  }}{{#if:{{{phone|}}}
+
    {{#if:{{{room|}}}
    |<tr valign="top"><th style="text-align:right;">Phone:</th><td>+49(0)711/685-'''{{{phone}}}'''</td></tr>
+
      |<tr valign="top"><th style="text-align:right;">Office:</th><td>{{{room}}}</td></tr>
  }}{{#if:{{{altphone|}}}
+
      }}{{#if:{{{phone|}}}
    |<tr valign="top"><th style="text-align:right;">External phone:</th><td>{{{altphone}}}'''</td></tr>
+
      |<tr valign="top"><th style="text-align:right;">Phone:</th><td>+49(0)711/685-'''{{{phone}}}'''</td></tr>
  }}
+
      }}{{#if:{{{altphone|}}}
  <tr valign="top"><th style="text-align:right;">Fax:</th><td>+49(0)711/685-'''{{{fax|63658}}}'''</td></tr>
+
      |<tr valign="top"><th style="text-align:right;">External phone:</th><td>{{{altphone}}}'''</td></tr>
  <tr valign="top"><th style="text-align:right;">Email:</th><td>[http://www.ica1.uni-stuttgart.de/nmt.php?page={{{email}}} {{{email}}} _at_ icp.uni-stuttgart.de]</td></tr>
+
      }}
  <tr valign="top"><th style="text-align:right;">Address:</th><td>{{#if:{{{title|}}}|{{{title}}} {{PAGENAME}}|{{PAGENAME}}}}<br/>Institute for Computational Physics<br/>Universität Stuttgart<br/>Pfaffenwaldring 27<br/>70569 Stuttgart<br/>Germany</td></tr>
+
      <tr valign="top"><th style="text-align:right;">Fax:</th><td>+49(0)711/685-'''{{{fax|63658}}}'''</td></tr>
</table>
+
      <tr valign="top"><th style="text-align:right;">Email:</th><td>[http://www.ica1.uni-stuttgart.de/nmt.php?page={{{email}}} {{{email}}} _at_ icp.uni-stuttgart.de]</td></tr>
{{#ifeq:{{{category}}}|former|<div style="font-weight:bold;font-size:larger">As {{PAGENAME}} is not a member of our working group anymore, the information on this page might be outdated.</div>}}
+
      <tr valign="top"><th style="text-align:right;">Address:</th><td>{{#if:{{{title|}}}|{{{title}}} {{PAGENAME}}|{{PAGENAME}}}}<br/>Institute for Computational Physics<br/>Universität Stuttgart<br/>Pfaffenwaldring 27<br/>70569 Stuttgart<br/>Germany</td></tr>
<div style="clear:both;margin:0;padding:0;"></div>
+
  </table>
 +
  <div style="clear:both;margin:0;padding:0;"></div>
 +
}}
 
</div>
 
</div>
 
{{#if:{{{nostore|}}}||
 
{{#if:{{{nostore|}}}||

Revision as of 17:40, 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=
|name=
|title=
|status=
|room=
|phone=
|altphone=
|fax=
|email=
}}

Parameters

image
Image name. Sets Property:Image.
name
Name of the person, in the order Surname, First name. This is required for sorting people in a table, it is not shown anywhere.
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.
category
Set this to the category the person is in. Possible values:
staff for staff members
former for former group members
anything else for other members of the research group