Difference between revisions of "Template:Researcher"
From AIRWiki
m (Reverted edits by RiccardoTasso (Talk) to last version by DavidLaniado) |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 11: | Line 11: | ||
| ***NOTE:*** you can specify a LIST of research areas, separating them with a semicolon (;) | | ***NOTE:*** you can specify a LIST of research areas, separating them with a semicolon (;) | ||
| photo=name of picture (e.g. "Mario.jpg"), use "upload file" on the left | | photo=name of picture (e.g. "Mario.jpg"), use "upload file" on the left | ||
+ | | status= active | ||
}}</pre> | }}</pre> | ||
The order of the fields is not relevant. The template should be given as the ''first'' thing on a page. | The order of the fields is not relevant. The template should be given as the ''first'' thing on a page. | ||
Line 44: | Line 45: | ||
{{Tablerow|Label=Research Areas|Value=<ul>{{#arraymap:{{#ask: [[User:{{PAGENAME}}]] | ?hasResArea= }}|, |x|<li>x</li>|}}</ul>}} | {{Tablerow|Label=Research Areas|Value=<ul>{{#arraymap:{{#ask: [[User:{{PAGENAME}}]] | ?hasResArea= }}|, |x|<li>x</li>|}}</ul>}} | ||
--> | --> | ||
+ | {{Tablerow|Label=Research Areas|Value=<ul>{{#arraymap:{{#show: User:{{PAGENAME}} | ?hasResArea= }}|, |x|<li>x</li>|}}</ul>}} | ||
+ | <!-- | ||
{{Tablerow|Label=Research Areas|Value={{#ask: [[User:{{PAGENAME}}]] | ?hasResArea= }}}} | {{Tablerow|Label=Research Areas|Value={{#ask: [[User:{{PAGENAME}}]] | ?hasResArea= }}}} | ||
+ | --> | ||
+ | |- | ||
+ | {{#ifeq:{{{status|}}}|||{{Tablerow|Label=Status|Value=[[userStatus::{{{status}}}]]}}}} | ||
|}[[Category:Researcher]]</includeonly> | |}[[Category:Researcher]]</includeonly> |
Latest revision as of 11:24, 11 March 2013
This template simplifies the creation of articles about researchers. When inserted in a person's page, it creates a decorative table with much helpful information. It also takes care of annotating the given data semantically, so that users can easily find it or query it in other articles. Do not try to read this page's source code for learning table syntax – there are far easier ways of creating tables in MediaWiki.
To use this template, insert the following at the beginning of your user page. All fields are strictly optional and should be omitted if no data is given.
Please delete all lines that you do not give useful information for!
{{Researcher | firstname=Mario | lastname=Rossi | email=mario.rossi@elet.polimi.it | resarea=The name of your research area | ***NOTE:*** you can specify a LIST of research areas, separating them with a semicolon (;) | photo=name of picture (e.g. "Mario.jpg"), use "upload file" on the left | status= active }}
The order of the fields is not relevant. The template should be given as the first thing on a page.