Difference between revisions of "Template:Application expert info"

From SNIC Documentation
Jump to: navigation, search
Line 7: Line 7:
  
 
''fields'' should be a semicolon separated list of field category page names, in decreasing order of relevance. Start with your research area.
 
''fields'' should be a semicolon separated list of field category page names, in decreasing order of relevance. Start with your research area.
 +
 +
''fte'' = full time equivalent dedicated to application expertise, see [[Property:FTE]] for details.
 +
 +
''financing'' minimal description of where your salary comes from. Ideally: one word.
  
 
''image'' is the filename of an already uploaded image file. See the [[Help:Recommendations for editors#Portrait image requirements|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.
 
''image'' is the filename of an already uploaded image file. See the [[Help:Recommendations for editors#Portrait image requirements|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.
Line 29: Line 33:
 
|fields=bioinformatics
 
|fields=bioinformatics
 
|fte=50
 
|fte=50
 +
|financing=SNIC
 
|other activities=50% research at IFM Bioinformatics
 
|other activities=50% research at IFM Bioinformatics
 
|image=Joel_small.jpg
 
|image=Joel_small.jpg
Line 41: Line 46:
 
|'''[[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|application expert}} in {{set category list|field|{{{fields|<span style="font-weight: bold; color: red;">ERROR</span>}}}}} {{#show: {{FULLPAGENAME}}|?field}}{{#if:{{{fte|}}}|, [[FTE::{{{fte}}}]]% full time equivalent.|}}
+
{{set category|role|application expert}} in {{set category list|field|{{{fields|<span style="font-weight: bold; color: red;">ERROR</span>}}}}} {{#show: {{FULLPAGENAME}}|?field}}{{#if:{{{fte|}}}|, [[FTE::{{{fte}}}]]% full time equivalent|}}{{#if:{{{financing|}}}|, financed by {{{financing}}}|}}
 
{{#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:}}}}

Revision as of 12:22, 8 September 2011

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=}}

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. Start with your research area.

fte = full time equivalent dedicated to application expertise, see Property:FTE for details.

financing minimal description of where your salary comes from. Ideally: one word.

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.

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:

{{application expert info
|first name=Joel
|last name=Hedlund
|centre=NSC
|fields=bioinformatics
|fte=50
|financing=SNIC
|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)
}}