Template:CalendarEvent: Difference between revisions

From Pirate Party Belgium
Jump to navigation Jump to search
(icon location + no time => no space)
(icon for event type)
Line 1: Line 1:
<includeonly><div style="overflow:hidden;">{{CalendarDate|{{{?Has date}}}|{{{?Has time|}}}}}
<includeonly><div style="overflow:hidden;">{{CalendarDate|{{{?Has date}}}|{{{?Has time|}}}}}
<div style="margin:0 .75em 6.5px 0; padding: 0 .6em;">
<div style="margin:0 .75em 6.5px 0; padding: 0 .6em;">
   <div style="font-weight:bold;">{{NamedLink|{{{?Has page}}}|{{{?Has title|}}}}}</div>{{#if: {{{?Has location|}}}
   <div style="font-weight:bold;">{{#if: {{{?Has event type|}}}
| [[File:{{#switch: {{{?Has event type|}}}
  | Meeting = Community_Noun_project_2280.svg
  | PirateBeer = Community Noun project 578510.svg
  | External = Noun_project_-_Calendar.svg
  }}|x16px|link=Category:{{#switch: {{{?Has event type}}}
  | External = External Event
  | {{{?Has event type}}}
  }}]] <nowiki />
}}{{NamedLink|{{{?Has page}}}|{{{?Has title|}}}}}</div>{{#if: {{{?Has location|}}}
| <div style="font-size:small;">[[File:Simpleicons Places placeholder-tool.svg|x15px|link=]] {{{?Has location}}}</div>
| <div style="font-size:small;">[[File:Simpleicons Places placeholder-tool.svg|x15px|link=]] {{{?Has location}}}</div>
}}{{#if: {{{?Organized by|}}}{{{?In topic|}}}
}}{{#if: {{{?Organized by|}}}{{{?In topic|}}}
Line 11: Line 20:
| ?Has page = <!-- mandatory -->
| ?Has page = <!-- mandatory -->
| ?Has title =
| ?Has title =
| ?Has date =  <!-- mandatory -->
| ?Has date =  <!-- mandatory, format = yyyy/mm/dd -->
| ?Has time =
| ?Has time = <!-- optional, format = hh:mm -->
| ?Organized by =
| ?Organized by =
| ?Has location =
| ?Has location =
| ?In topic =  
| ?In topic =  
| ?Has event type =
}}</nowiki>
}}</nowiki>


Line 28: Line 38:
| ?In topic
| ?In topic
| ?Organized by
| ?Organized by
| ?Has event type
| link = none
| link = none
| template = CalendarEvent
| template = CalendarEvent

Revision as of 17:05, 28 September 2017

Usage

{{CalendarEvent
| ?Has page = <!-- mandatory -->
| ?Has title =
| ?Has date =  <!-- mandatory, format = yyyy/mm/dd -->
| ?Has time = <!-- optional, format = hh:mm -->
| ?Organized by =
| ?Has location =
| ?In topic = 
| ?Has event type = 
}}

Example

<time datetime="Error: Invalid time." class="date">
Error: Invalid time.
Error: Invalid time.
Error: Invalid time.
 
[[{{{?Has page}}}]]