Difference between revisions of "Template:Event"

From Creative Commons
Jump to: navigation, search
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This template simplifies the creation of articles about [[Event|Events]]. When inserted in a directory's page, it creates a decorative table with information about the content provided. 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 page. All fields are optional and should be omitted if no information is available. The page name should reflect the name of the Case Study. It should be called in the following format:
 
 
<pre>
 
<pre>
{{Event
+
{{Event|
|EventType=
+
  venue= The venue or event (ie: OSCON 2007)|
|Mainurl=
+
  EventType= The type of event|
|Date=
+
  title= The title or topic of the presentation; if not provided, the page title is used|
|City=
+
  Mainurl= URL to event's info page|
|Country=
+
  presenter= The presenter (ie: Nathan Yergler)|
|Division=
+
  date= The presentation date|
|Attendance=
+
  City= |
 +
  Country= |
 +
  Division= The division of CC interested in the event (ie: Learn)|
 +
  Attendance= Will CC have a representative there?|
 
}}
 
}}
 
</pre>
 
</pre>
Edit the page to see the template text.
 
</noinclude><includeonly>
 
{| style="width: 30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: center; clear: left; text-align:left;"
 
{| border="1" cellpadding="3" cellspacing="0"
 
!style="text-align: left; background-color:#ccccff;" colspan="2" |<big>{{PAGENAME}}</big>
 
|-
 
! Event Type:
 
| {{#arraymap:{{{EventType|}}}|,|x|[[EventType::x]]}}
 
|-
 
! URL:
 
| {{#arraymap:{{{Mainurl|}}}|,|x|[[Mainurl::x]]}}
 
|-
 
! Date: 
 
| {{#arraymap:{{{Date|}}}|,|x|[[Date::x]]}}
 
|-
 
! City:
 
| {{#arraymap:{{{City|}}}|,|x|[[City::x]]}}
 
|-
 
! Country:
 
| {{#arraymap:{{{Country|}}}|,|x|[[Country::x]]}}
 
|-
 
! CC Division:
 
| {{#arraymap:{{{Division|}}}|,|x|[[Division::x]]}}
 
|-
 
! CC Attendance:
 
| {{#arraymap:{{{Attendance|}}}|,|x|[[Attendance::x]]}}
 
  
|}
+
</noinclude>
 +
<includeonly>
 +
{{#if:{{{title|}}}|[[Title::{{{title}}}|]]|[[Title::{{PAGENAME}}|]] }}
 +
{{#if:{{{venue|}}}|[[Venue::{{{venue}}}|]]| }}
 +
{{#if:{{{EventType|}}}|{{#arraymap:{{{EventType|}}}|,|x|[[EventType::x]]}} | }}
 +
{{#if:{{{Mainurl|}}}|{{#arraymap:{{{Mainurl|}}}|,|x|[[Mainurl::x]]}} | }}
 +
{{#if:{{{presenter|}}}|{{#arraymap:{{{presenter}}}|,|x|[[Author::User:x| ]]}} | }}
 +
{{#if:{{{date|}}}|[[Date::{{{date}}}|]]| }}
 +
{{#if:{{{City|}}}|{{#arraymap:{{{City|}}}|,|x|[[City::x]]}} | }}
 +
{{#if:{{{Country|}}}|{{#arraymap:{{{Country|}}}|,|x|[[Country::x]]}} | }}
 +
{{#if:{{{Division|}}}|{{#arraymap:{{{Division|}}}|,|x|[[Division::x]]}} | }}
 +
{{#if:{{{Attendance|}}}|{{#arraymap:{{{Attendance|}}}|,|x|[[Attendance::x]]}} | }}
  
 
[[Category:Event]]
 
[[Category:Event]]
 +
 
</includeonly>
 
</includeonly>

Revision as of 17:38, 28 March 2008


{{Event|
   venue= The venue or event (ie: OSCON 2007)|
   EventType= The type of event|
   title= The title or topic of the presentation; if not provided, the page title is used|
   Mainurl= URL to event's info page|
   presenter= The presenter (ie: Nathan Yergler)|
   date= The presentation date|
   City= |
   Country= |
   Division= The division of CC interested in the event (ie: Learn)|
   Attendance= Will CC have a representative there?|
}}