Template:Events: Difference between revisions

From Pirate Party Belgium
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#ask: {{#if: {{{type|}}}  
<includeonly>{{#ask:  
  {{#if: {{{type|}}}  
   | [[Has event type::{{#arraymap:{{{type}}}|,|x|x|{{!}}{{!}}}}]]
   | [[Has event type::{{#arraymap:{{{type}}}|,|x|x|{{!}}{{!}}}}]]
   | [[Has event type::+]]
   | [[Has event type::+]]
Line 5: Line 6:
   | [[Organized by::{{#arraymap:{{{1}}}|,|x|x|{{!}}{{!}}}}]]  
   | [[Organized by::{{#arraymap:{{{1}}}|,|x|x|{{!}}{{!}}}}]]  
   | [[Organized by::+]]
   | [[Organized by::+]]
   }} {{#if: {{{start|}}} | [[Has date::>{{#time:Y/m/j|{{{start}}} }}]] }}
   }} {{#if: {{{start|}}} | [[Has date::>{{#time:Y/m/j|{{{start}}} }}]] }} {{#if: {{{end|}}} | [[Has date::<{{#time:Y/m/j|{{{end}}} }}]] }}
|?Has page
| ?Has page
|?Has title
| ?Has title
|?Has date#ISO
| ?Has date#ISO
|?Has time
| ?Has time
|?In venue
| ?In venue
|?Has link venue
| ?Has link venue
|?Has address
| ?Has address
|?In city
| ?In city
|?In postal code#
| ?In postal code#
|?Organized by#
| ?Organized by#
|mainlabel=-
| mainlabel = -
|format={{#switch: {{{format|}}}  
| format = {{#switch: {{{format|}}}  
   | list = list  
   | list = list  
   | template
   | template
   }}
   }}
|link=none
| link = none
|limit={{{limit|10}}}
| limit = {{{limit|10}}}
|introtemplate={{#switch: {{{format|}}}
| introtemplate = {{#switch: {{{format|}}}
   | list =
   | list =
   | {{#ifeq: {{{1|+}}} | +  
   | {{#ifeq: {{{1|+}}} | +  
Line 36: Line 37:
     }}
     }}
   }}
   }}
|template={{#switch: {{{format|}}}  
| template = {{#switch: {{{format|}}}  
   | list = Event item  
   | list = Event item  
   | {{#ifeq: {{{1|+}}} | + | Table event organized | Table event }}
   | {{#ifeq: {{{1|+}}} | +  
    | Table event organized  
    | Table event
    }}
   }}
   }}
|outrotemplate={{#switch: {{{format|}}}
| outrotemplate = {{#switch: {{{format|}}}
   | list =  
   | list =  
   | Table outro
   | Table outro
   }}
   }}
|sep={{#switch: {{{format|}}}  
| sep = {{#if: {{{sep|}}}
  | list = <hr />
  | {{{sep}}}
  | ,
  | {{#switch: {{{format|}}}  
    | list = <hr />
    | ,
    }}
   }}
   }}
|sort = Has date
| sort = Has date
|order = {{{order|desc}}}
| order = {{{order|desc}}}
|searchlabel={{#ifeq: {{{more|true}}} | true
| searchlabel = {{#ifeq: {{{more|true}}} | true
   | {{#switch: {{{type|}}}
   | {{#switch: {{{type|}}}
     | Meeting = {{int:event-show-more-meetings}}
     | Meeting = {{int:event-show-more-meetings}}
Line 57: Line 64:
     }}
     }}
   }}
   }}
|userparam=true
| userparam = true
|default={{NoEvent|{{{1|}}}|type={{{type|}}}}}
| default = {{NoEvent|{{{1|}}}|type={{{type|}}}}}
|named args={{#switch: {{{format|}}}  
| named args = {{#switch: {{{format|}}}  
   | list = 1
   | list = 1
   | 0
   | 0
Line 66: Line 73:
| {{#ifeq: {{{format|}}} | list | <hr /> }}<span style="float:right;">''{{NewEvent|{{{1|}}}|preload={{{preload|}}}|type={{{type|}}}}}''</span><br />
| {{#ifeq: {{{format|}}} | list | <hr /> }}<span style="float:right;">''{{NewEvent|{{{1|}}}|preload={{{preload|}}}|type={{{type|}}}}}''</span><br />
}}  {{#ifeq: {{{export|true}}} | true  
}}  {{#ifeq: {{{export|true}}} | true  
| <span style="float:right">''{{Event ics
| <span style="float:right">''{{ExportEvent|workgroup={{{1|}}}|type={{{type|}}}|limit={{{limit|10}}}|date={{{start|}}}|text={{int:event-export-for|iCalendar}} }}''</span><br />
  | workgroup={{{1|}}}
  | type={{{type|}}}
  | limit={{{limit|10}}}
  | order={{{order|desc}}}
  | date={{{start|}}}
  | text={{int:event-export-for|iCalendar}}
  }}''</span><br />
}}</includeonly><noinclude>
}}</includeonly><noinclude>
== Usage ==
== Usage ==

Revision as of 20:59, 9 March 2017

Usage

{{Events|An awesome crew|type=Event|start=now|order=desc|limit=10|preload=page|format=table|formlink=true|export=true|more=true}}

Examples

No event

{{Events|An awesome crew}}

There is no event for An awesome crew. Add a new event
Export for iCalendar

Events by Crew BW

{{Events|Crew BW|limit=5}}


Event Date Venue
Débat sans conférence: Comment résister à l'invasion technologique ? Mon 2 March 2020, 8:00pm Association des Habitants de Louvain-la-Neuve – 3, scavée du Biéreau
1348 Louvain-la-Neuve,
Pirate Drink (Louvain-la-Neuve) Fri 21 February 2020, 7:30pm Black Friars – rue René Magritte 7
1348 Louvain-la-Neuve,
Pirate Drink (Louvain-La-Neuve) Thu 31 October 2019, 7:30pm The Blackfriars Pub – rue René Magritte 7
1348 Louvain-La-Neuve,
Pirate Drink (Louvain-La-Neuve) Fri 27 September 2019, 7:30pm The Blackfriars Pub – rue René Magritte 7
1348 Louvain-La-Neuve,
Débat sans conférence: Décroissance vs illimitation, une attitude réactionnaire ? Mon 3 June 2019, 8:00pm Maison du Développement Durable – pl. Agora 2
1348 Louvain-la-Neuve

Show moarr events! Add a new event
Export for iCalendar

Future events by Pirates de Liège

{{Events|Pirates de Liège|start=now|order=asc}}

There is no event for Pirates de Liège. Add a new event
Export for iCalendar

Future Pirate Lab

This example will preload the content of this page to create an new meeting.

{{Events|Pirate Lab|type=Meeting|format=list|start=now|preload=Template:EmptyPirateLab/Preload}}

There is no meeting for Pirate Lab.


Add a new meeting
Export for iCalendar