Difference between revisions of "Template:Person"

From ICPWiki
Jump to navigation Jump to search
 
(97 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{nostore|}}}|{{#if:{{{image|}}}|[[Image::Image:{{{image}}}| ]]}}{{#if:{{{title|}}}|[[Title::{{{title}}} | ]]}}{{#if:{{{status|}}}|[[Status::{{{status}}}| ]]}}{{#if:{{{former|}}}|[[Former::{{{former}}}| ]]}}{{#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>{{#ifeq:{{{category}}}|former
[[Image:{{{image|No_photo.png}}}|right|180px]]'''{{#if:{{{title|}}}|{{{title}}} {{PAGENAME}}|{{PAGENAME}}}}'''<br>{{#if:{{{status|}}}|{{{status}}}}}<br><table>
+
  |<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:{{{room|}}}
+
{{#if:{{{image|}}}|[[Image:{{{image}}}|right|180px]]|[[Image:Placeholder.jpg|right|180px]]}}'''{{#if:{{{title|}}}|{{{title}}} {{PAGENAME}}|{{PAGENAME}}}}'''<br>{{#if:{{{status|}}}|{{{status}}}}}<br>
    |<tr valign="top"><th style="text-align:right;">Office:</th><td>{{{room}}}</td></tr>
+
  <table>
 +
    {{#if:{{{room|}}}
 +
      |<tr valign="top"><th style="text-align:right;">Office:</th><td>{{{room}}}</td></tr>
 +
      }}{{#if:{{{phone|}}}
 +
      |<tr valign="top"><th style="text-align:right;">Phone:</th><td>+49 711 685-'''{{{phone}}}'''</td></tr>
 +
      }}{{#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;">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;">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>
 +
{{#if:{{{researcherid|}}}|<tr><td colspan="2">{{#widget:ResearcherId|id={{{researcherid}}}}}</td></tr>}}
 +
  </table>
 +
  <div style="clear:both;margin:0;padding:0;"></div>
 +
</div>
 +
{{#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]]|smiatek=[[Category:Smiatek]]|degraaf=[[Category:deGraaf]]|schlaich=[[Category:Schlaich]]|#default=[[Category:Member of the research group]]
 +
  }}{{#if:{{{image|}}}
 +
  |{{#set:Image=Image:{{{image}}}}}
 +
  }}{{#if:{{{title|}}}
 +
  |{{#set:Academic Title={{{title}}}}}
 +
  }}{{#if:{{{status|}}}
 +
  |{{#set:Status={{{status}}}}}
 +
   }}{{#if:{{{room|}}}
 +
  |{{#set:Room={{{room}}}}}
 
   }}{{#if:{{{phone|}}}
 
   }}{{#if:{{{phone|}}}
    |<tr valign="top"><th style="text-align:right;">Phone:</th><td>+49(0)711/685-'''{{{phone}}}'''</td></tr>
+
  |{{#set:Phone={{{phone}}}}}
 
   }}{{#if:{{{altphone|}}}
 
   }}{{#if:{{{altphone|}}}
    |<tr valign="top"><th style="text-align:right;">External phone:</th><td>{{{altphone}}}'''</td></tr>
+
  |{{#set:External phone={{{altphone}}}}}
 +
  }}{{#if:{{{fax|}}}
 +
  |{{#set:Fax={{{fax}}}}}
 +
  }}{{#if:{{{researcherid|}}}
 +
  |{{#set:ResearcherId={{{researcherid}}}}}
 +
  }}
 +
  {{#set:Email address={{{email|???}}}}}
 +
  {{#set:Ordering={{{ordering|10}}}}}
 +
  {{#set:Name={{{name|}}}}}
 +
  {{#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}}
 
   }}
 
   }}
  <tr valign="top"><th style="text-align:right;">Fax:</th><td>+49(0)711/685-'''{{{fax|63658}}}'''</td></tr>
+
}}</includeonly><noinclude>
  <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>
 
</table>
 
{{#if:{{{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>}}
 
<div style="clear:both;margin:0;padding:0;"></div>
 
</div>
 
</includeonly><noinclude>
 
 
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.
 
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 ==
 
== Example ==
 
{{Person
 
{{Person
 +
|name=Kong, King
 
|image=Olaf_Lenz.jpg
 
|image=Olaf_Lenz.jpg
 
|title=His Royal Majesty
 
|title=His Royal Majesty
Line 26: Line 53:
 
|room=123
 
|room=123
 
|phone=12345
 
|phone=12345
|altphone=0123/3456789
+
|altphone=+49 123 3456789
 +
|fax=54321
 +
|email=king
 +
|researcherid=A-7713-2008
 +
|ordering=10
 +
|nostore=1
 +
|topical=gel
 +
|topical2=nanopore
 +
}}
 +
 
 +
{{Person
 +
|name=Kong, King
 +
|title=His Royal Majesty
 +
|status=King
 +
|room=123
 +
|phone=12345
 +
|altphone=+49 123 3456789
 
|fax=54321
 
|fax=54321
 
|email=king
 
|email=king
 +
|researcherid=A-7713-2008
 +
|ordering=10
 
|nostore=1
 
|nostore=1
 
}}
 
}}
Line 37: Line 82:
 
{{Person
 
{{Person
 
|image=
 
|image=
 +
|name=
 
|title=
 
|title=
 
|status=
 
|status=
Line 44: Line 90:
 
|fax=
 
|fax=
 
|email=
 
|email=
 +
|researcherid=
 +
|category=
 +
|topical=
 +
|topical2=
 +
|topical3=
 +
|topical4=
 +
|topical5=
 +
|ordering=
 
}}
 
}}
 
</nowiki></pre>
 
</nowiki></pre>
Line 49: Line 103:
 
== Parameters ==
 
== Parameters ==
 
;image
 
;image
:Image name. Default: <code>No_photo.png</code>
+
: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
 
;title
:The title of the person (e.g. ''Dr.'' or ''Prof. Dr.'')
+
:The academic title of the person (e.g. ''Dr.'' or ''Prof. Dr.''). Sets [[Property:Academic Title]].
 
;status
 
;status
:Status in the group (PostDoc, Professor, PhD-student, ...)
+
:Status in the group (PostDoc, Professor, PhD-student, ...). Sets [[Property:Status]].
 
;room
 
;room
:Office number
+
:Office number. Sets [[Property:Room]].
 
;phone
 
;phone
:In-house phone number
+
:In-house phone number. Sets [[Property:Phone]].
 
;altphone
 
;altphone
:External phone number (optional!)
+
:External phone number (optional!). Sets [[Property:External phone]].
 
;fax
 
;fax
:Fax number. Default: ''Secretaries fax number''.
+
:Fax number. Default: ''Secretaries fax number''. Sets [[Property:Fax]].
 
;email
 
;email
:The ICP email address. Do not enter other Email-Adresses here!
+
:The ICP email address. Do not enter other Email-Adresses here! Sets [[Property:Email address]].
;former
+
;researcherId
:Whether or not the person is a former member of the group. Set this to any string for a former member.
+
:Your ResearcherId. Sets [[Property:ResearcherId]].
 +
;category
 +
:Set this to the category the person is in. Possible values:
 +
:*''staff'' for [[:Category:Staff member|staff members]]
 +
:*''former'' for [[:Category:Former member|former group members]]
 +
:*[[: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
 +
: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
 +
: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.