Difference between revisions of "Template:CalendarEvent"

From Pirate Party Belgium
Jump to: navigation, search
(icon for tags)
m
Line 11: Line 11:
 
   }}]] <nowiki />
 
   }}]] <nowiki />
 
}}{{NamedLink|{{{?Has page}}}|{{{?Has title|}}}}}</div>{{#if: {{{?Has location|}}}
 
}}{{NamedLink|{{{?Has page}}}|{{{?Has title|}}}}}</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|x15px|link=|Location]]&nbsp;<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|x15px|link=|Tags]]&nbsp;<span>{{#var:tags}}</span></div>  
 
}}
 
}}
 
</div></div></includeonly><noinclude>== Usage ==
 
</div></div></includeonly><noinclude>== Usage ==

Revision as of 21:20, 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.
 
[[{{{page}}}]]