Difference between revisions of "Template:Person"

From Openresearch
Jump to: navigation, search
 
(41 intermediate revisions by 3 users not shown)
Line 8: Line 8:
 
  | Last name = Auer
 
  | Last name = Auer
 
  | Degree = Dr., MSc, BA etc.
 
  | Degree = Dr., MSc, BA etc.
  | Type = Professor, Assistant Professor, PhD Student, Student, Researcher, PostDoc, Senior Researcher or other sub-category of [[Category:Person]]
+
  | Type = Professor, Assistant Professor, PhD Student, Student, Researcher, Postdoc, Senior Researcher or other sub-category of [[Category:Person]]
 
  | Affiliation=AKSW
 
  | Affiliation=AKSW
 
  | Field = Semantic Web
 
  | Field = Semantic Web
 
  | Picture=name of picture (e.g. "Rudolph.jpg"), use "upload file" on the left
 
  | Picture=name of picture (e.g. "Rudolph.jpg"), use "upload file" on the left
 
  | Homepage=www.informatik.uni-leipzig.de/~auer
 
  | Homepage=www.informatik.uni-leipzig.de/~auer
 +
| ORCID account=http://orcid.org/0000-0002-0698-2864
 +
| WIKIPEDIA link=
 +
| Twitter account=https://twitter.com/SoerenAuer
 
  | Email=auer@informatik.uni-leipzig.de
 
  | Email=auer@informatik.uni-leipzig.de
 
  | Phone=+49(341)97-32357
 
  | Phone=+49(341)97-32357
 
  | FOAF=http://www.informatik.uni-leipzig.de/~auer/foaf.rdf
 
  | FOAF=http://www.informatik.uni-leipzig.de/~auer/foaf.rdf
 +
| dissertation title = PhD or doctorate dissertation title
 +
| dissertation year = year the dissertation was awarded
 +
| dissertation awarded by = organization the dissertation was awarded by
 +
| dissertation advisor = name of the dissertation advisor (additional ones can be given in the text below)
 
}}</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 21: Line 28:
 
</noinclude><includeonly>
 
</noinclude><includeonly>
 
{| cellspacing="0" cellpadding="5" style="position:relative; margin: 0 0 0.5em 1em; border-collapse: collapse; border: 1px solid #aaa; background: #fff; float: right; clear: right; width: 20em"
 
{| cellspacing="0" cellpadding="5" style="position:relative; margin: 0 0 0.5em 1em; border-collapse: collapse; border: 1px solid #aaa; background: #fff; float: right; clear: right; width: 20em"
! colspan="2" style="background: #86ba0c; color: white" |<span style="font-size: 80%; float: right; ">{{#ask: [[{{FULLPAGENAME}}]]  
+
! colspan="2" style="background: #86ba0c; color: black"|<span style="font-size: 80%; float: right; ">{{#ask: [[{{FULLPAGENAME}}]]  
 
| format=vcard
 
| format=vcard
 
| ?Name
 
| ?Name
Line 28: Line 35:
 
| ?Foaf:phone=workphone
 
| ?Foaf:phone=workphone
 
| ?Homepage
 
| ?Homepage
 +
| ?Twitter account
 
| searchlabel=vCard
 
| searchlabel=vCard
}}</span> [[Name::{{{Name|{{PAGENAME}}}}}]]
+
}}</span>[[Name::{{{Name|{{PAGENAME}}}}}]]
 
|-
 
|-
 
{{Tablerow|Label=[[:Category:Science|Field]]:|Value=[[:Category:{{{Field|Science}}}|{{{Field|Science}}}]][[Category:{{{Field|Science}}}]]}}
 
{{Tablerow|Label=[[:Category:Science|Field]]:|Value=[[:Category:{{{Field|Science}}}|{{{Field|Science}}}]][[Category:{{{Field|Science}}}]]}}
 
|-
 
|-
{{Tablerow|Label=Position:|Value=[[:Category:{{{Type|Person}}}|{{{Type|Person}}}]][[Category:{{{Type|Person}}}]] ([[Degree::{{{Degree}}}]])}}
+
{{Tablerow|Label=Position:|Value=[[:Category:{{{Type|Person}}}|{{{Type|Person}}}]][[Category:{{{Type|Person}}}]]{{#ifeq:{{{Degree|}}}||| ([[Degree::{{{Degree}}}]])}}}}
 
|-
 
|-
 
{{#ifeq:{{{Picture|}}}|||{{Tablelongrow|Value=[[Image:{{{Picture}}}|150px|{{{Name|{{PAGENAME}}}}}]]|Color=white}}}}
 
{{#ifeq:{{{Picture|}}}|||{{Tablelongrow|Value=[[Image:{{{Picture}}}|150px|{{{Name|{{PAGENAME}}}}}]]|Color=white}}}}
 
|-
 
|-
{{#ifeq:{{{Email|}}}|||{{Tablelongrow|Value={{Mailbox|{{{Email}}}}}|Color=#e4f8b6}}}}
+
{{#ifeq:{{{Email|}}}|||{{Tablelongrow|Value={{mailbox|{{{Email}}}}}|Color=#e4f8b6}}}}
 
|-
 
|-
 
{{#ifeq:{{{Affiliation|}}}|||{{Tablerow|Label=Affiliation:|Value=[[member of::affiliation::{{{Affiliation}}}]]}}}}
 
{{#ifeq:{{{Affiliation|}}}|||{{Tablerow|Label=Affiliation:|Value=[[member of::affiliation::{{{Affiliation}}}]]}}}}
 
|-
 
|-
 
{{#ifeq:{{{Homepage|}}}|||{{Tablerow|Label=Homepage:|Value=[[homepage::http://{{{Homepage}}}|{{{Homepage label|{{{Homepage}}}}}}]]}}}}
 
{{#ifeq:{{{Homepage|}}}|||{{Tablerow|Label=Homepage:|Value=[[homepage::http://{{{Homepage}}}|{{{Homepage label|{{{Homepage}}}}}}]]}}}}
 +
|-
 +
{{#ifeq:{{{Has wikipedia link|}}}|||{{Tablerow|Label=Has wikipedia link:|Value=[[Has wikipedia link::https://{{{Has wikipedia link}}}|{{{Has wikipedia link|{{{Has wikipedia link}}}}}}]]}}}}
 +
|-
 +
{{#ifeq:{{{Has orcid link|}}}|||{{Tablerow|Label=Has orcid link:|Value=[[Has orcid link::http://orcid.org/{{{Has orcid link}}}|{{{Has orcid link|{{{Has orcid link}}}}}}]]}}}}
 +
|-
 +
{{#ifeq:{{{Twitter account|}}}|||{{Tablerow|Label=Twitter account:|Value=[[Has twitter:={{{Twitter account}}}]]}}}}
 
|-
 
|-
 
{{#ifeq:{{{Phone|}}}|||{{Tablerow|Label=Phone:|Value=[[foaf:phone::{{{Phone}}}]]}}}}
 
{{#ifeq:{{{Phone|}}}|||{{Tablerow|Label=Phone:|Value=[[foaf:phone::{{{Phone}}}]]}}}}
 +
|-
 +
{{#ifeq:{{{dissertation title|}}}|||
 +
{{Tablerow|Label=Dissertation:|Value=[[dissertation title::{{{dissertation title}}}]] ({{#ifeq:{{{dissertation year|}}}|||[[dissertation year::{{{dissertation year}}}]], }} {{#ifeq:{{{dissertation advisor|}}}||| [[dissertation advisor::{{{dissertation advisor}}}]]}}{{#ifeq:{{{dissertation awarded by|}}}|||, [[dissertation awarded by::{{{dissertation awarded by}}}]]}})}}}}
 +
|-
 +
<!--  *** Journals ***  -->
 +
{{Tablelongrow|Align=Left|Font size=80%|Value={{#ask:[[has EB member::{{PAGENAME}}]]
 +
| format=list
 +
| sort=start date | order=desc
 +
| sep=,_
 +
| intro=EB member of:_ }}|Color=#e4f8b6}}
 
|-
 
|-
 
<!--  *** Events ***  -->
 
<!--  *** Events ***  -->
Line 59: Line 83:
 
|-
 
|-
 
{{#ifeq:{{{FOAF|}}}|||{{Tablerow|Label=See also:|Value=[[see also::{{{FOAF}}}|FOAF]]}}|Color=white}}
 
{{#ifeq:{{{FOAF|}}}|||{{Tablerow|Label=See also:|Value=[[see also::{{{FOAF}}}|FOAF]]}}|Color=white}}
|}</includeonly>
+
|-
 +
{{Tablesection|Label=Table of Contents|Color=#86ba0c|Textcolor=#fff}}
 +
|-
 +
| colspan="2" style="padding-top: 2px; " |<div id="smworgtable-toc" style="font-size: 90%;">__TOC__</div>
 +
|-
 +
<!--  *** Twitter ***  -->
 +
{{#if:{{{Twitter account|}}}|{{Tablesection|Label=Tweets by {{{Twitter account}}}|Color=#86ba0c|Textcolor=#fff}}|}}
 +
|-
 +
| colspan="2" style="padding-top: 2px; " | {{#if:{{{Twitter account|}}}|<div><html><a class="twitter-timeline" height="400" width="350" href="https://twitter.com/</html>{{{Twitter account}}}<html>">Tweets by {{{Twitter account}}}</a> <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script></html></div>|}}
 +
|}
 +
{{#default_form:Person}}
 +
</includeonly>

Latest revision as of 23:19, 14 January 2017

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

{{Person
 | First name = Sören
 | Last name = Auer
 | Degree = Dr., MSc, BA etc.
 | Type = Professor, Assistant Professor, PhD Student, Student, Researcher, Postdoc, Senior Researcher or other sub-category of [[Category:Person]]
 | Affiliation=AKSW
 | Field = Semantic Web
 | Picture=name of picture (e.g. "Rudolph.jpg"), use "upload file" on the left
 | Homepage=www.informatik.uni-leipzig.de/~auer
 | ORCID account=http://orcid.org/0000-0002-0698-2864
 | WIKIPEDIA link=
 | Twitter account=https://twitter.com/SoerenAuer
 | Email=auer@informatik.uni-leipzig.de
 | Phone=+49(341)97-32357
 | FOAF=http://www.informatik.uni-leipzig.de/~auer/foaf.rdf
 | dissertation title = PhD or doctorate dissertation title
 | dissertation year = year the dissertation was awarded
 | dissertation awarded by = organization the dissertation was awarded by
 | dissertation advisor = name of the dissertation advisor (additional ones can be given in the text below)
}}

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