Difference between revisions of "Template:Prof"

From AIRWiki
Jump to: navigation, search
m
m
 
(3 intermediate revisions by the same user not shown)
Line 16: Line 16:
  
 
</noinclude><includeonly>
 
</noinclude><includeonly>
{| style="padding:0px" align="right" cellpadding="2" cellspacing="1" width="200px"
+
{| style="padding:0px" align="right" cellpadding="2" cellspacing="1" width="250px"
  
 
|-
 
|-
Line 22: Line 22:
  
 
|-
 
|-
{{#ifeq:{{{photo|}}}|||{{Tablelongrow|Value=[[Image:'''{{{photo}}}|200px|Foto di {{PAGENAME}}''']]}}}}
+
{{#ifeq:{{{photo|}}}|||{{Tablelongrow|Value='''[[Image:{{{photo}}}|250px|Foto di {{PAGENAME}}]]'''}}}}
 
+
 
<!--
 
<!--
 
|-
 
|-
Line 32: Line 31:
  
 
-->
 
-->
 
 
|-
 
|-
 
{{#ifeq:{{{email|}}}|||{{Tablerow|Label=E-Mail|Value={{Mailbox|{{{email}}}}}}}}}
 
{{#ifeq:{{{email|}}}|||{{Tablerow|Label=E-Mail|Value={{Mailbox|{{{email}}}}}}}}}
 
 
|-
 
|-
 
{{#ifeq:{{{resarea|}}}|||{{#arraymap:{{{resarea|}}}|;|x|[[hasResArea::x| ]]|}}}}
 
{{#ifeq:{{{resarea|}}}|||{{#arraymap:{{{resarea|}}}|;|x|[[hasResArea::x| ]]|}}}}
Line 44: Line 41:
  
 
<!--{{Tablerow|Label=Research Areas|Value={{#show: User:{{PAGENAME}} | ?hasResArea }}}}-->
 
<!--{{Tablerow|Label=Research Areas|Value={{#show: User:{{PAGENAME}} | ?hasResArea }}}}-->
|-
+
<!--|-
{{#ifeq:{{{status|}}}|||{{Tablerow|Label=Status|Value=[[userStatus::{{{status}}}]]}}}}
+
{{#ifeq:{{{status|}}}|||{{Tablerow|Label=Status|Value=[[userStatus::{{{status}}}]]}}}}-->
 
|}[[Category:Prof]]</includeonly>
 
|}[[Category:Prof]]</includeonly>

Latest revision as of 23:26, 17 August 2017

This template simplifies the creation of articles about professors. 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!

{{Prof
 | 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 or inactive
}}

The order of the fields is not relevant. The template should be given as the first thing on a page.