Template:CalendarEvent: Difference between revisions
Jump to navigation
Jump to search
(change meeting icon) |
mNo edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><div class="pirate-event {{#if: {{{ | <includeonly><div class="pirate-event {{#if: {{{type|}}} | {{lc:{{{type}}}}}-event }}">{{CalendarDate|{{{date}}}|{{{time|}}}}} | ||
<div class="details"> | <div class="details"> | ||
<div class="title">{{#if: {{{ | <div class="title">{{#if: {{{type|}}} | ||
| [[File:{{#switch: {{{ | | [[File:{{#switch: {{{type|}}} | ||
| Meeting = Toicon-icon-avocado-discuss.svg | | Meeting = Toicon-icon-avocado-discuss.svg | ||
| | | PirateDrink = Toicon-icon-avocado-cheer.svg | ||
| External = Toicon-icon-avocado-schedule.svg | | External = Toicon-icon-avocado-schedule.svg | ||
}}|link=Category:{{#switch: {{{ | }}|link=Category:{{#switch: {{{type}}} | ||
| External = External Event | | External = External Event | ||
| {{{ | | {{{type}}} | ||
}}|class=icon]] | }}|class=icon]] | ||
}}<span>{{NamedLink|{{{ | }}<span>{{NamedLink|{{{page}}}|{{{title|}}}}}</span></div>{{#if: {{{location|}}} | ||
| <div class="location">[[File:Toicon-icon-avocado-locate.svg|link=|Location|class=icon]]<span>{{{ | | <div class="location">[[File:Toicon-icon-avocado-locate.svg|link=|Location|class=icon]]<span>{{{location}}}</span></div> | ||
}}{{#vardefine:tags | }}{{#vardefine:tags | ||
| {{#arraymap:{{{ | | {{#arraymap:{{{workgroup|}}},{{{topics|}}}|,|x|{{#ifeq:x|{{BASEPAGENAME}}||[[x|{{ShowTitle|x}}]]}}}} | ||
}}{{#if: {{#var:tags|}} | }}{{#if: {{#var:tags|}} | ||
| <div class="tags">[[File:Toicon-icon-avocado-tag.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> | ||
Line 40: | Line 40: | ||
| ?Has title=title | | ?Has title=title | ||
| ?Has location=location | | ?Has location=location | ||
| ?Organized by#=workgroup | |||
| ?Organized by=workgroup | | ?In topic#=topics | ||
| ?In topic=topics | |||
| ?Has event type=type | | ?Has event type=type | ||
| link = none | | link = none | ||
Line 55: | Line 54: | ||
}} | }} | ||
=== | === PirateDrink === | ||
{{#ask: [[Has event type:: | {{#ask: [[Has event type::PirateDrink]] [[Organized by::Crew BW]] | ||
| ?Has page=page | | ?Has page=page | ||
| ?Has date=date | | ?Has date=date | ||
Line 63: | Line 62: | ||
| ?Has title=title | | ?Has title=title | ||
| ?Has location=location | | ?Has location=location | ||
| ?Organized by#=workgroup | |||
| ?Organized by=workgroup | | ?In topic#=topics | ||
| ?In topic=topics | |||
| ?Has event type=type | | ?Has event type=type | ||
| link = none | | link = none | ||
Line 86: | Line 84: | ||
| ?Has title=title | | ?Has title=title | ||
| ?Has location=location | | ?Has location=location | ||
| ?Organized by#=workgroup | |||
| ?Organized by=workgroup | | ?In topic#=topics | ||
| ?In topic=topics | |||
| ?Has event type=type | | ?Has event type=type | ||
| link = none | | link = none |
Latest revision as of 12:50, 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
Association des Habitants de Louvain-la-Neuve – 3, scavée du Biéreau, Louvain-la-Neuve
PirateDrink
Black Friars – rue René Magritte 7, Louvain-la-Neuve
Meeting
Blackfriars – rue René Magritte 7, Louvain-la-Neuve