Difference between revisions of "Template:CalendarEvent/sandbox"

From Pirate Party Belgium
Jump to: navigation, search
(Created page with "<includeonly><div class="pirate-event {{#if: {{{?type|}}} | {{lc:{{{?type}}}}}-event }}">{{CalendarDate|{{{?date}}}|{{{?time|}}}}} <div class="details"> <div class="title">{...")
 
m (fixes for SMW 3.0)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div class="pirate-event {{#if: {{{?type|}}} | {{lc:{{{?type}}}}}-event }}">{{CalendarDate|{{{?date}}}|{{{?time|}}}}}
+
<includeonly><div class="pirate-event {{#if: {{{type|}}} | {{lc:{{{type}}}}}-event }}">{{CalendarDate|{{{date}}}|{{{time|}}}}}
 
<div class="details">
 
<div class="details">
   <div class="title">{{#if: {{{?type|}}}
+
   <div class="title">{{#if: {{{type|}}}
| [[File:{{#switch: {{{?type|}}}
+
| [[File:{{#switch: {{{type|}}}
   | Meeting = Community_Noun_project_2280.svg
+
   | Meeting = Toicon-icon-avocado-chat.svg
   | PirateBeer = Toicon-icon-avocado-chat.svg
+
   | PirateDrink = Toicon-icon-avocado-cheer.svg
   | External = Noun_project_-_Calendar.svg
+
   | External = Toicon-icon-avocado-schedule.svg
   }}|link=Category:{{#switch: {{{?type}}}
+
   }}|link=Category:{{#switch: {{{type}}}
 
   | External = External Event
 
   | External = External Event
   | {{{?type}}}
+
   | {{{type}}}
 
   }}|class=icon]]
 
   }}|class=icon]]
}}<span>{{NamedLink|{{{?page}}}|{{{?title|}}}}}</span></div>{{#if: {{{?location|}}}
+
}}<span>{{NamedLink|{{{page}}}|{{{title|}}}}}</span></div>{{#if: {{{location|}}}
| <div class="location">[[File:Simpleicons Places placeholder-tool.svg|link=|Location|class=icon]]<span>{{{?location}}}</span></div>
+
| <div class="location">[[File:Toicon-icon-avocado-locate.svg|link=|Location|class=icon]]<span>{{{location}}}</span></div>
 
}}{{#vardefine:tags
 
}}{{#vardefine:tags
| {{#arraymap:{{{?workgroup|}}},{{{?topics|}}}|,|x|{{#ifeq:x|{{BASEPAGENAME}}||[[x|{{ShowTitle|x}}]]}}}}
+
| {{#arraymap:{{{workgroup|}}},{{{topics|}}}|,|x|{{#ifeq:x|{{BASEPAGENAME}}||[[x|{{ShowTitle|x}}]]}}}}
 
}}{{#if: {{#var:tags|}}
 
}}{{#if: {{#var:tags|}}
| <div class="tags">[[File:Tag icon.svg|link=|Tags|class=icon]]<span>{{#var:tags}}</span></div>  
+
| <div class="tags">[[File:Toicon-icon-avocado-tag.svg|link=|Tags|class=icon]]<span>{{#var:tags}}</span></div>  
 
}}
 
}}
 
</div></div></includeonly><noinclude>== Usage ==
 
</div></div></includeonly><noinclude>== Usage ==
Line 55: Line 55:
 
}}
 
}}
  
=== PirateBeer ===
+
=== PirateDrink ===
  
{{#ask: [[Has event type::PirateBeer]] [[Organized by::Crew BW]]
+
{{#ask: [[Has event type::PirateDrink]] [[Organized by::Crew BW]]
 
| ?Has page=page
 
| ?Has page=page
 
| ?Has date=date
 
| ?Has date=date

Latest revision as of 13:11, 5 March 2019

Usage

{{CalendarEvent
| page = <!-- mandatory -->
| title =
| date =  <!-- mandatory, format = yyyy/mm/dd -->
| time = <!-- optional, format = hh:mm -->
| workgroup =
| topics =
| location = 
| type = 
}}

Example

External event

LocationAssociation des Habitants de Louvain-la-Neuve – 3, scavée du Biéreau, Louvain-la-Neuve

PirateDrink

LocationBlack Friars – rue René Magritte 7, Louvain-la-Neuve

Meeting

LocationBlackfriars – rue René Magritte 7, Louvain-la-Neuve