Difference between revisions of "Template:Person"

From ICPWiki
Jump to navigation Jump to search
 
(24 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
<includeonly>{{#ifeq:{{{category}}}|former
 
<includeonly>{{#ifeq:{{{category}}}|former
 
   |<div style="font-weight:bold;font-size:larger;margin:3%;">As {{PAGENAME}} is not a member of our working group anymore, the information on this page might be outdated.</div>}}<div class="personbox">
 
   |<div style="font-weight:bold;font-size:larger;margin:3%;">As {{PAGENAME}} is not a member of our working group anymore, the information on this page might be outdated.</div>}}<div class="personbox">
{{#if:{{{image|}}}|[[Image:{{{image}}}|right|180px]]|<div class="floatright">{{#widget:Gravatar|email={{{email}}}@icp.uni-stuttgart.de|default=monsterid|size=180}}</div>}}'''{{#if:{{{title|}}}|{{{title}}} {{PAGENAME}}|{{PAGENAME}}}}'''<br>{{#if:{{{status|}}}|{{{status}}}}}<br>
+
{{#if:{{{image|}}}|[[Image:{{{image}}}|right|180px]]|[[Image:Placeholder.jpg|right|180px]]}}'''{{#if:{{{title|}}}|{{{title}}} {{PAGENAME}}|{{PAGENAME}}}}'''<br>{{#if:{{{status|}}}|{{{status}}}}}<br>
 
   <table>
 
   <table>
 
     {{#if:{{{room|}}}
 
     {{#if:{{{room|}}}
 
       |<tr valign="top"><th style="text-align:right;">Office:</th><td>{{{room}}}</td></tr>
 
       |<tr valign="top"><th style="text-align:right;">Office:</th><td>{{{room}}}</td></tr>
 
       }}{{#if:{{{phone|}}}
 
       }}{{#if:{{{phone|}}}
       |<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;">Phone:</th><td>+49 711 685-'''{{{phone}}}'''</td></tr>
 
       }}{{#if:{{{altphone|}}}
 
       }}{{#if:{{{altphone|}}}
 
       |<tr valign="top"><th style="text-align:right;">External phone:</th><td>{{{altphone}}}'''</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;">Fax:</th><td>+49(0)711/685-'''{{{fax|63658}}}'''</td></tr>
+
       <tr valign="top"><th style="text-align:right;">Fax:</th><td>+49 711 685-'''{{{fax|63658}}}'''</td></tr>
 
       <tr valign="top"><th style="text-align:right;">Email:</th><td>[{{SERVER}}/nmt.php?page={{{email}}} {{{email}}} _at_ icp.uni-stuttgart.de]</td></tr>
 
       <tr valign="top"><th style="text-align:right;">Email:</th><td>[{{SERVER}}/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/>Allmandring 3<br/>70569 Stuttgart<br/>Germany</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/>Allmandring 3<br/>70569 Stuttgart<br/>Germany</td></tr>
Line 18: Line 18:
 
</div>
 
</div>
 
{{#if:{{{nostore|}}}||
 
{{#if:{{{nostore|}}}||
   {{#switch:{{{category}}}|former=[[Category:Former member]]|staff=[[Category:Staff member]]|holm=[[Category:Holm]]|hilfer=[[Category:Hilfer]]|harting=[[Category:Harting]]|arnold=[[Category:Arnold]]|fyta=[[Category:Fyta]]|#default=[[Category:Member of the research group]]
+
   {{#switch:{{{category}}}|former=[[Category:Former member]]|staff=[[Category:Staff member]]|holm=[[Category:Holm]]|hilfer=[[Category:Hilfer]]|harting=[[Category:Harting]]|arnold=[[Category:Arnold]]|fyta=[[Category:Fyta]]|smiatek=[[Category:Smiatek]]|degraaf=[[Category:deGraaf]]|schlaich=[[Category:Schlaich]]|#default=[[Category:Member of the research group]]
 
   }}{{#if:{{{image|}}}
 
   }}{{#if:{{{image|}}}
 
   |{{#set:Image=Image:{{{image}}}}}
 
   |{{#set:Image=Image:{{{image}}}}}
Line 39: Line 39:
 
   {{#set:Ordering={{{ordering|10}}}}}
 
   {{#set:Ordering={{{ordering|10}}}}}
 
   {{#set:Name={{{name|}}}}}
 
   {{#set:Name={{{name|}}}}}
   {{#switch:{{{category}}}|holm|arnold|fyta={{#set:Topical Meeting={{{topical|undefined}}}}}|{{{topical2|}}}|{{{topical3|}}}|{{{topical4|}}}|{{{topical5|}}}|#default={{#set:Topical Meeting=none}}
+
  {{#set:board={{{board|1}}}}}
 +
   {{#switch:{{{category}}}|holm|arnold|fyta|smiatek|degraaf={{#set:Topical Meeting={{{topical|undefined}}}|{{{topical2|}}}|{{{topical3|}}}|{{{topical4|}}}|{{{topical5|}}} | {{{topical6|}}} }}|#default={{#set:Topical Meeting=none}}
 
   }}
 
   }}
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
Line 52: Line 53:
 
|room=123
 
|room=123
 
|phone=12345
 
|phone=12345
|altphone=0123/3456789
+
|altphone=+49 123 3456789
 
|fax=54321
 
|fax=54321
 
|email=king
 
|email=king
Line 58: Line 59:
 
|ordering=10
 
|ordering=10
 
|nostore=1
 
|nostore=1
 +
|topical=gel
 +
|topical2=nanopore
 
}}
 
}}
  
Line 66: Line 69:
 
|room=123
 
|room=123
 
|phone=12345
 
|phone=12345
|altphone=0123/3456789
+
|altphone=+49 123 3456789
 
|fax=54321
 
|fax=54321
 
|email=king
 
|email=king
Line 90: Line 93:
 
|category=
 
|category=
 
|topical=
 
|topical=
 +
|topical2=
 +
|topical3=
 +
|topical4=
 +
|topical5=
 
|ordering=
 
|ordering=
 
}}
 
}}
Line 119: Line 126:
 
:*''staff'' for [[:Category:Staff member|staff members]]  
 
:*''staff'' for [[:Category:Staff member|staff members]]  
 
:*''former'' for [[:Category:Former member|former group members]]
 
:*''former'' for [[:Category:Former member|former group members]]
:*[[:Category:Holm|''holm'']], [[:Category:Hilfer|''hilfer'']], [[:Category:Harting|''harting'']], [[:Category:Fyta|''fyta'']] or [[:Category:Arnold|''arnold'']] for members of the research groups of the corresponding group leader
+
:*[[:Category:Holm|''holm'']], [[:Category:Hilfer|''hilfer'']], [[:Category:Harting|''harting'']], [[:Category:Fyta|''fyta'']], [[:Category:deGraaf|''degraaf'']] or [[:Category:Arnold|''arnold'']] for members of the research groups of the corresponding group leader
 
;topical
 
;topical
 
:Set this to the topical meeting the person belongs to. Possible values: ''undefined'', ''none'', ''espresso'', ''nanopore'', ''gel'', ''sampling'', ''electrokinetics'', ''atomistic''. Applies only to people in the categories [[:Category:Holm|''holm'']], [[:Category:Fyta|''fyta'']] and [[:Category:Arnold|''arnold'']].
 
:Set this to the topical meeting the person belongs to. Possible values: ''undefined'', ''none'', ''espresso'', ''nanopore'', ''gel'', ''sampling'', ''electrokinetics'', ''atomistic''. Applies only to people in the categories [[:Category:Holm|''holm'']], [[:Category:Fyta|''fyta'']] and [[:Category:Arnold|''arnold'']].
 +
;topical2
 +
:second topical meeting
 +
;topical3
 +
:third topical meeting
 +
;topical4
 +
:forth topical meeting
 +
;topical5
 +
:fifth topical meeting
 
;ordering
 
;ordering
 
:How the person is sorted inside the category. By default, this is 10.
 
:How the person is sorted inside the category. By default, this is 10.
  
 
</noinclude>
 
</noinclude>

Latest revision as of 17:05, 29 July 2020

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 711 685-12345
External phone:+49 123 3456789
Fax:+49 711 685-54321
Email:king _at_ icp.uni-stuttgart.de
Address:His Royal Majesty Person
Institute for Computational Physics
Universität Stuttgart
Allmandring 3
70569 Stuttgart
Germany


Placeholder.jpg
His Royal Majesty Person
King
Office:123
Phone:+49 711 685-12345
External phone:+49 123 3456789
Fax:+49 711 685-54321
Email:king _at_ icp.uni-stuttgart.de
Address:His Royal Majesty Person
Institute for Computational Physics
Universität Stuttgart
Allmandring 3
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=
|researcherid=
|category=
|topical=
|topical2=
|topical3=
|topical4=
|topical5=
|ordering=
}}

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 academic title of the person (e.g. Dr. or Prof. Dr.). Sets Property:Academic 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 address.
researcherId
Your ResearcherId. Sets Property:ResearcherId.
category
Set this to the category the person is in. Possible values:
topical
Set this to the topical meeting the person belongs to. Possible values: undefined, none, espresso, nanopore, gel, sampling, electrokinetics, atomistic. Applies only to people in the categories holm, fyta and arnold.
topical2
second topical meeting
topical3
third topical meeting
topical4
forth topical meeting
topical5
fifth topical meeting
ordering
How the person is sorted inside the category. By default, this is 10.