Difference between revisions of "Template:Systems expert info"

From SNIC Documentation
Jump to: navigation, search
 
(5 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
This template creates a standard info blurb for an application expert, and registers the relevant categories and properties (excluding expertises!). Will protest loudly in bold red if mandatory information is missing. If you do not wish to provide a certain piece of required information: do not use this template. Or else you will corrupt the database with incorrect information.
 
This template creates a standard info blurb for an application expert, and registers the relevant categories and properties (excluding expertises!). Will protest loudly in bold red if mandatory information is missing. If you do not wish to provide a certain piece of required information: do not use this template. Or else you will corrupt the database with incorrect information.
  
Usage: <nowiki>{{</nowiki>application expert info|''first name''=|''last name''=|''centre''=|''field''=|''image''=|''office''=|''phone''=|''other activities''=<nowiki>}}</nowiki>
+
Usage: <nowiki>{{</nowiki>application expert info|''first name''=|''last name''=|''centre''=|''field''=|''image''=|''office''=|''phone''=|''other activities''=<nowiki>|''start date''=|''end date''=|''is active''=}}</nowiki>
  
 
All the parameters are named, and can be given in any order. ''office'', ''phone'' and ''other activities'' are optional, all others are required.  
 
All the parameters are named, and can be given in any order. ''office'', ''phone'' and ''other activities'' are optional, all others are required.  
Line 17: Line 17:
  
 
Why semicolons you ask? Because people like to use commas for other things than input field separation. For further reading, see rationales on [[Property:Office]], [[Property:Phone]] and [[Property:Other activities]].  
 
Why semicolons you ask? Because people like to use commas for other things than input field separation. For further reading, see rationales on [[Property:Office]], [[Property:Phone]] and [[Property:Other activities]].  
 +
 +
''is active'' defines whether or not you are to be considered in active duty as a systems expert. Omitted or left empty means 'yes'.
 +
 +
''start date'' and ''end date'' define the period when you are/were working as a systems expert. Omit if not appliccable.
  
 
Neither ''fist name'' or ''last name'' (nor the concatenation "name") are currently used for anything fancy, since that information is already provided in the user name (which also has the benefit of nearly always being a link to that person's user page). We thought it prudent to get this filled in anyway, since this might change in the future.
 
Neither ''fist name'' or ''last name'' (nor the concatenation "name") are currently used for anything fancy, since that information is already provided in the user name (which also has the benefit of nearly always being a link to that person's user page). We thought it prudent to get this filled in anyway, since this might change in the future.
Line 32: Line 36:
 
|office=Room 159, House G; Linköpings Universitet; SE-581 83 Linköping
 
|office=Room 159, House G; Linköpings Universitet; SE-581 83 Linköping
 
|phone=+46(0)13 282423 (office); +46(0)734 607126 (mobile)
 
|phone=+46(0)13 282423 (office); +46(0)734 607126 (mobile)
 +
|start date=2010-01-01
 +
|end date=2099-01-01
 +
|is active=yes
 
}}
 
}}
 
</pre>
 
</pre>
Line 40: Line 47:
 
|'''[[first name::{{{first name|<span style="font-weight: bold; color: red;">ERROR</span>}}}]] [[last name::{{{last name|<span style="font-weight: bold; color: red;">ERROR</span>}}}]]''' ([[centre::{{{centre|<span style="font-weight: bold; color: red;">ERROR</span>}}}]]) [[name::{{{first name}}} {{{last name}}}| ]]
 
|'''[[first name::{{{first name|<span style="font-weight: bold; color: red;">ERROR</span>}}}]] [[last name::{{{last name|<span style="font-weight: bold; color: red;">ERROR</span>}}}]]''' ([[centre::{{{centre|<span style="font-weight: bold; color: red;">ERROR</span>}}}]]) [[name::{{{first name}}} {{{last name}}}| ]]
  
{{set category|role|systems expert}} in {{set category list|field|{{{fields|<span style="font-weight: bold; color: red;">ERROR</span>}}}}} {{#show: {{FULLPAGENAME}}|?field}}
+
{{set category|role|systems expert}} in {{set category list|field|{{{fields|<span style="font-weight: bold; color: red;">ERROR</span>}}}}} {{#show: {{FULLPAGENAME}}|?field}}<!--
 +
--> {{#switch: {{lc:{{{is active|yes}}}}}|#default=;Is active:<span style="font-weight: bold; color: red;">ERROR</span>|yes|1|true|on={{#set: is active=yes}}|no|0|false|off={{#set: is active=no}};Is active: No.}} <!--
 +
-->
 
{{#if: {{{other activities|}}}|;Other activities
 
{{#if: {{{other activities|}}}|;Other activities
:{{set list|other activities|{{{other activities|}}}|sep=;|glue=\n:}}}}
+
:{{set list|other activities|{{{other activities|}}}|sep=;|glue=\n:}}}} <!--
{{#if: {{{office|}}}|;Office
+
--> {{#if: {{{start date|}}}|;Start date
 +
:[[Start date::{{{start date}}}]]}}{{#if: {{{end date|}}}|;End date
 +
:[[End date::{{{end date}}}]]}} <!--
 +
--> {{#if: {{{office|}}}|;Office
 
:{{set list|office|{{{office|}}}|sep=;|glue=\n:}}}}
 
:{{set list|office|{{{office|}}}|sep=;|glue=\n:}}}}
 
{{#if: {{{phone|}}}|;Phone
 
{{#if: {{{phone|}}}|;Phone
 
:{{set list|phone|{{{phone|}}}|sep=;|glue=\n:}}}}
 
:{{set list|phone|{{{phone|}}}|sep=;|glue=\n:}}}}
 
|}</includeonly>
 
|}</includeonly>

Latest revision as of 11:31, 18 September 2013

This template creates a standard info blurb for an application expert, and registers the relevant categories and properties (excluding expertises!). Will protest loudly in bold red if mandatory information is missing. If you do not wish to provide a certain piece of required information: do not use this template. Or else you will corrupt the database with incorrect information.

Usage: {{application expert info|first name=|last name=|centre=|field=|image=|office=|phone=|other activities=|''start date''=|''end date''=|''is active''=}}

All the parameters are named, and can be given in any order. office, phone and other activities are optional, all others are required.

fields should be a semicolon separated list of field category page names, in decreasing order of relevance.

image is the filename of an already uploaded image file. See the portrait image requirements for restrictions of sizes, formats, colors and other things. Read and conform, or risk looking like a doofus in dynamically generated content. It is probably best to upload the file first, so make sure that mediawiki likes your filename. In theory, you could abstain from uploading and setting and image, but then you would be depicted as a soulless automaton, and a rather chubby one at that.

phone should be a semicolon separated list of telephone numbers (with optional explanation).

office should be a semicolon separated list of visiting address lines.

other activities should be a semicolon separated list of minimal explanations of things that may steal you away from your pure application expertry at a regular basis, like part time employments, parental leave, special functions like AE/PRACE/etc coordination, or other distractions of that kind. For rendering reasons: use full sentences, complete with capital first character and ending full stop. Note that it is currently not possible to get clickable links in properties of Type:String, such as other activities.

Why semicolons you ask? Because people like to use commas for other things than input field separation. For further reading, see rationales on Property:Office, Property:Phone and Property:Other activities.

is active defines whether or not you are to be considered in active duty as a systems expert. Omitted or left empty means 'yes'.

start date and end date define the period when you are/were working as a systems expert. Omit if not appliccable.

Neither fist name or last name (nor the concatenation "name") are currently used for anything fancy, since that information is already provided in the user name (which also has the benefit of nearly always being a link to that person's user page). We thought it prudent to get this filled in anyway, since this might change in the future.

Example:

{{systems expert info
|first name=Joel
|last name=Hedlund
|centre=NSC
|fields=grid computing
|other activities=50% research at IFM Bioinformatics
|image=Joel_small.jpg
|office=Room 159, House G; Linköpings Universitet; SE-581 83 Linköping
|phone=+46(0)13 282423 (office); +46(0)734 607126 (mobile)
|start date=2010-01-01
|end date=2099-01-01
|is active=yes
}}