Template:CalendarEvent: Difference between revisions

From Pirate Party Belgium
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 6: Line 6:
   | PirateBeer = Community Noun project 578510.svg
   | PirateBeer = Community Noun project 578510.svg
   | External = Noun_project_-_Calendar.svg
   | External = Noun_project_-_Calendar.svg
   }}|x16px|link=Category:{{#switch: {{{?Has event type}}}
   }}|link=Category:{{#switch: {{{?Has event type}}}
   | External = External Event
   | External = External Event
   | {{{?Has event type}}}
   | {{{?Has event type}}}
   }}]]
   }}|class=icon]]
}}<span>{{NamedLink|{{{?Has page}}}|{{{?Has title|}}}}}</span></div>{{#if: {{{?Has location|}}}
}}<span>{{NamedLink|{{{?Has page}}}|{{{?Has title|}}}}}</span></div>{{#if: {{{?Has location|}}}
| <div class="location">[[File:Simpleicons Places placeholder-tool.svg|x15px|link=|Location]]<span>{{{?Has location}}}</span></div>
| <div class="location">[[File:Simpleicons Places placeholder-tool.svg|link=|Location|class=icon]]<span>{{{?Has location}}}</span></div>
}}{{#vardefine:tags
}}{{#vardefine:tags
| {{#arraymap:{{{?Organized by|}}},{{{?In topic|}}}|,|x|{{#ifeq:x|{{BASEPAGENAME}}||[[x|{{ShowTitle|x}}]]}}}}
| {{#arraymap:{{{?Organized by|}}},{{{?In topic|}}}|,|x|{{#ifeq:x|{{BASEPAGENAME}}||[[x|{{ShowTitle|x}}]]}}}}
}}{{#if: {{#var:tags|}}
}}{{#if: {{#var:tags|}}
| <div class="tags">[[File:Tag icon.svg|x15px|link=|Tags]]<span>{{#var:tags}}</span></div>  
| <div class="tags">[[File:Tag icon.svg|link=|Tags|class=icon]]<span>{{#var:tags}}</span></div>  
}}
}}
</div></div></includeonly><noinclude>== Usage ==
</div></div></includeonly><noinclude>== Usage ==

Revision as of 21:18, 1 October 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}}}]]