Difference between revisions of "Template:SciTalk"

From ICPWiki
Jump to navigation Jump to search
 
(131 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{{person|}}}
+
<includeonly>
{|class="eventTable"
+
;Title
! colspan ="2" align="left"| {{{person}}}
+
:{{#if:{{{title|}}}|[[Talk Title::{{{title}}}]]|(tba)}}
|-
+
;Speaker
|width = "15%" align="center" |{{{place|{{#ifeq:{{{type}}}|ICP Kolloquium|V27.01}}}}}
+
:{{#if:{{{speaker|}}}|{{#set:Speaker={{{speaker}}}}}{{{speaker}}}|(tba)}}
| align="left" | {{{person|}}}, {{{from|}}}
+
;Affiliation
|-
+
:{{#if:{{{affiliation|}}}|[[Affiliation::{{{affiliation}}}]]|(none)}}
|width = "15%" align="center" |{{{time|{{#ifeq:{{{type}}}|ICP Kolloquium|14:00}}}}}
+
;Date
| align="left" | {{{title|}}}
+
:[[Date::{{{date}}}]]
|}
+
;Time
</includeonly>
+
:[[Time::{{{time|???}}}]]
<noinclude>
+
;Location
Example
+
:[[Location::{{{location|???}}}]]
{{event
+
;Hosting seminar / institution
|type=other
+
:{{#if:{{{host|}}}|[[Host::{{{host}}}]]|(none)}}
|place= V57.01
+
;PDF
|person=Prof.X.Ample
+
:{{#if:{{{pdflink|}}}|[[{{{pdflink}}}]]|(none)}}
|from= IE Institute, Specimen University
+
{{#if:{{{speaker|}}}{{{title|}}}|{{#set:Tba=false}}|{{#set:Tba=true}}}}
|time= 16:30
+
[[Category:SciTalk]]
|title= The art of nonstatements
+
</includeonly><noinclude>
}}
+
This template layouts the talk page and puts the data into SMW.
Usage:
+
 
<pre><nowiki>
+
The talk pages are added to the [[:Category:SciTalk]].
{{event
+
If both ''speaker'' and ''title'' are empty, the [[Property:Tba]] is set to true, otherwise it is false.
|type=ICP Kolloquium|ICP Seminar|other
+
 
|place= The Room and Location
+
== Parameters ==
|person=The Speaker
+
;location
|from= Institute, University, City, Country
+
:Location of the talk. Sets [[Property:Location]].
|time= The time the talk starts
+
;date
|title= The title of the talk
+
:Date of the talks. Sets [[Property:Date]].
}}
+
;time
</nowiki></pre>
+
:Time of the talk. Sets [[Property:Time]].
Type sets default values for place and time, if you do not specify them. For example:
+
;speaker
<pre><nowiki>
+
:Speaker of the talk. Sets [[Property:Speaker]].
{{event
+
;affilitation
|type=ICP Kolloquium
+
:Affiliation of the speaker. Sets [[Property:Affiliation]].
|person= The Speaker
+
;title
|from= Institute, University, City, Country
+
:Title of the talk. Sets [[Property:Talk Title]].
|title= The title of the talk
+
;host
}}
+
:Hosting seminar/institution of the talk (e.g. ICP Kolloquium). Sets [[Property:Host]].
</nowiki></pre>
+
;pdflink
assumes "place= V27.01" and "time= 14:00":
+
:Link to an (uploaded) PDF file. Sets [[Property:PDFlink]].
{{event
 
|type=ICP Kolloquium
 
|person=The Speaker
 
|from= Institute, University, City, Country
 
|title= The title of the talk
 
}}
 
  
 
</noinclude>
 
</noinclude>

Latest revision as of 16:53, 3 April 2012

This template layouts the talk page and puts the data into SMW.

The talk pages are added to the Category:SciTalk. If both speaker and title are empty, the Property:Tba is set to true, otherwise it is false.

Parameters

location
Location of the talk. Sets Property:Location.
date
Date of the talks. Sets Property:Date.
time
Time of the talk. Sets Property:Time.
speaker
Speaker of the talk. Sets Property:Speaker.
affilitation
Affiliation of the speaker. Sets Property:Affiliation.
title
Title of the talk. Sets Property:Talk Title.
host
Hosting seminar/institution of the talk (e.g. ICP Kolloquium). Sets Property:Host.
pdflink
Link to an (uploaded) PDF file. Sets Property:PDFlink.