Template:CalendarEvent/sandbox: Difference between revisions

From Pirate Party Belgium
Jump to navigation Jump to search
(Created page with "<includeonly><div class="pirate-event {{#if: {{{?type|}}} | {{lc:{{{?type}}}}}-event }}">{{CalendarDate|{{{?date}}}|{{{?time|}}}}} <div class="details"> <div class="title">{...")
 
(tag, external and location icons)
Line 5: Line 5:
   | Meeting = Community_Noun_project_2280.svg
   | Meeting = Community_Noun_project_2280.svg
   | PirateBeer = Toicon-icon-avocado-chat.svg
   | PirateBeer = Toicon-icon-avocado-chat.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
Line 11: Line 11:
   }}|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 ==

Revision as of 12:59, 29 October 2017

Usage

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

Example

External event

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

PirateBeer

Meeting

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