Template:Events: Difference between revisions

From Pirate Party Belgium
Jump to navigation Jump to search
(Created page with "<includeonly>{{#vardefine: event_text_fr | {{#switch: {{{type|}}} | Meeting = de réunions | PirateBeer = de pirate beers | d'évènements }} }}{{#vardefine: event_te...")
 
(show meeting for abandoned and done projects as well)
 
(63 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#vardefine: event_text_fr
<includeonly>{{#ask:  
| {{#switch: {{{type|}}}  
  {{#if: {{{type|}}}
   | Meeting = de réunions
  | [[Has event type::{{#arraymap:{{{type}}}|,|x|x|{{!}}{{!}}}}]]
   | PirateBeer = de pirate beers
   | [[Has event type::+]]
   | d'évènements
  }} {{#if: {{{1|}}}
  | [[Organized by::{{#arraymap:{{{1}}}|,|x|x|{{!}}{{!}}}}{{#ask: [[Category:Project]] [[In topic::{{#arraymap:{{{1}}}|,|x|x|{{!}}{{!}}}}{{#ask: [[Category:Topic]] [[Has parent::{{{1}}}]]
      | link = none
      | intro = {{!}}{{!}}
      | sep = {{!}}{{!}}
      }}]] [[Has status::doing||active||inactive||done||abandoned]] OR [[Category:Project]] [[Organized by::{{#arraymap:{{{1}}}|,|x|x|{{!}}{{!}}}}]] [[Has status::doing||active||inactive||done||abandoned]]
    | link = none
    | intro = {{!}}{{!}}
    | sep = {{!}}{{!}}
    }}]]
  }} {{#if: {{{start|}}}
   | [[Has date::>{{#time:Y/m/j|{{{start}}} }}]]
  }} {{#if: {{{end|}}}
  | [[Has date::<{{#time:Y/m/j|{{{end}}} }}]]
  }} OR {{#if: {{{type|}}}
  | [[Has event type::{{#arraymap:{{{type}}}|,|x|x|{{!}}{{!}}}}]]
  | [[Has event type::+]]
  }} {{#if: {{{1|}}}
  | [[In topic::{{#arraymap:{{{1}}}|,|x|x|{{!}}{{!}}}}{{#ask: [[Category:Topic]] [[Has parent::{{{1}}}]]
    | link = none
    | intro = {{!}}{{!}}
    | sep = {{!}}{{!}}
    }}]]
   }} {{#if: {{{start|}}}
  | [[Has date::>{{#time:Y/m/j|{{{start}}} }}]]
  }} {{#if: {{{end|}}}
  | [[Has date::<{{#time:Y/m/j|{{{end}}} }}]]
   }}
   }}
}}{{#vardefine: event_text_nl
| ?Has page=page
| {{#switch: {{{type|}}}
| ?Has title=title
   | Meeting = samenkomsten
| ?Has date#ISO=date
   | PirateBeer = pirate beers
| ?Has time=time
   | evenementen
| ?In venue=venue
| ?Has link venue=linkvenue
| ?Has address=address
| ?In city=city
| ?In postal code#=postalcode
| ?Organized by#=workgroup
| ?Has event type=type
| ?In topic=topics
| ?Has location=location
| mainlabel = -
| format = {{#switch: {{{format|}}}  
   | list = list
   | ul = ul
   | template
   }}
   }}
}}{{#vardefine: event_text
| link = none
| {{#switch: {{{type|}}}
| limit = {{{limit|10}}}
  | Meeting = meetings
| introtemplate = {{#switch: {{{format|}}}
  | PirateBeer = pirate beers
  | list =
  | events
  | ul =
  | calendar =
  | {{#if: {{{1|}}}
    | {{#switch: {{{type|}}}
      | Meeting = Table meeting intro
      | Table event intro
      }}
    | {{#switch: {{{type|}}}
      | Meeting = Table meeting organized intro
      | Table event organized intro
      }}
    }}
   }}
   }}
}}{{#ask: {{#if: {{{type|}}} | [[Category:{{{type|}}}]] | [[Category:Event]] }} [[Organized by::{{{1|+}}}]] {{#if: {{{start|}}} | [[Has date::>{{#time:Y/m/j|{{{start}}} }}]] }}
| template = {{#switch: {{{format|}}}  
|?In language
  | list = Event item  
|?Has title
  | ul = Event item
|?Has date#ISO
  | calendar = CalendarEvent
|?Has time
  | {{#if: {{{1|}}}  
|?In venue
    | Table event
|?Has link venue
    | Table event organized
|?Has address
    }}
|?In city
|?In postal code#
|?Organized by
|format=template
|link=none
|limit={{{limit|10}}}
|introtemplate={{#ifeq: {{{1|+}}} | + | Table meeting organized intro | Table meeting intro }}{{#switch: {{{lang|}}} | fr = /fr | nl = /nl }}
|template={{#ifeq: {{{1|+}}} | + | Meeting organized item | Meeting item }}
|outrotemplate=Table outro
|sep=
|sort = Has date
|order = {{{order|desc}}}
|searchlabel={{#switch: {{{lang|}}}  
  | fr = Afficher plus {{#var: event_text_fr}} !
  | nl = Toon meer {{#var: event_text_nl}} !
  | Show moarr {{#var: event_text}}!
   }}
   }}
|default={{#if: {{{1|}}} | [[{{{1}}}]]
| outrotemplate = {{#switch: {{{format|}}}
   | {{#switch: {{{lang|}}}
   | list =  
    | fr = Ce groupe de travail
   | ul =
    | nl = Deze werkgroep
   | calendar =  
    | This workgroup
   | Table outro
    }}
   }}
  }} {{#switch: {{{lang|}}}
| sep = {{#if: {{{sep|}}}
   | fr = n'a pas encore organisé {{#var: event_text_fr}}
   | {{{sep}}}
   | nl = heeft nog geen {{#var: event_text_nl}} georganiseerd
  | {{#switch: {{{format|}}}  
   | haven't organized any {{#var: event_text}} yet
     | list = <hr />
   }}.
}} {{#ifeq: {{{type|}}} | Meeting
| {{#ifeq: {{{formlink|true}}} | true
   | {{NewMeeting
    | {{{1|+}}}
    | lang={{{lang|}}}
    | preload={{{preload|}}}
     | type={{{type|}}}
     }}
     }}
   }}
   }}
}} {{#ifeq: {{{export|true}}} | true
| sort = Has date
| <span style="float:right">''{{Event ics
| order = {{{order|desc}}}
  | workgroup={{{1|+}}}
| searchlabel = {{#ifeq: {{{more|true}}} | true
  | type={{{type|}}}
   | {{#switch: {{{type|}}}
   | lang={{{lang|}}}
    | Meeting = {{int:event-show-more-meetings}}
  | limit={{{limit|10}}}
    | PirateDrink = {{int:event-show-more-pirate-drinks}}
  | order={{{order|desc}}}
    | {{int:event-show-more}}
  | date={{{start|}}}
  | text={{#switch: {{{lang|}}}
    | fr = Exporter au format iCalendar
    | Export for iCalendar
     }}
     }}
   }}''</span><br />
   }}
| userparam = true
| default = {{NoEvent|{{{1|}}}|type={{{type|}}}}}
| named args = {{#switch: {{{format|}}}
  | list = 1
  | ul = 1
  | calendar = 1
  | 0
  }}
}}{{#ifeq: {{{formlink|true}}} | true
| {{#switch: {{{format|}}}
  | list = <hr />
  }}<span style="float:right;">''{{NewEvent|{{{1|}}}|preload={{{preload|}}}|type={{{type|}}}}}''</span><br />
}}  {{#ifeq: {{{export|true}}} | true
| <span style="float:right">''{{ExportEvent|workgroup={{{1|}}}|type={{{type|}}}|limit={{{limit|10}}}|date={{{start|}}}|text={{int:event-export-for|iCalendar}} }}''</span><br />
}}</includeonly><noinclude>
}}</includeonly><noinclude>
== Usage ==
== Usage ==


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


== Examples ==
== Examples ==
Line 90: Line 126:
=== Events by [[Crew BW]] ===
=== Events by [[Crew BW]] ===


  <nowiki>{{Events|Crew BW|lang=fr|limit=5}}</nowiki>
  <nowiki>{{Events|Crew BW|limit=5}}</nowiki>


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


=== Future events by [[Pirates de Liège]] ===
=== Future events by [[Pirates de Liège]] ===


  <nowiki>{{Events|Pirates de Liège|lang=fr|start=now|order=asc}}</nowiki>
  <nowiki>{{Events|Pirates de Liège|format=calendar|start=now|order=asc}}</nowiki>


{{Events|Pirates de Liège|lang=fr|start=now|order=asc}}
{{Events|Pirates de Liège|format=calendar|start=now|order=asc}}


=== Future [[Pirate Lab]] ===
=== Future [[Pirate Lab]] ===
Line 104: Line 140:
This example will preload the content of [[Template:EmptyPirateLab/Preload|this page]] to create an new meeting.
This example will preload the content of [[Template:EmptyPirateLab/Preload|this page]] to create an new meeting.


  <nowiki>{{Events|Pirate Lab|type=Meeting|lang=en|start=now|preload=Template:EmptyPirateLab/Preload}}</nowiki>
  <nowiki>{{Events|Pirate Lab|type=Meeting|format=list|start=now|preload=Template:EmptyPirateLab/Preload}}</nowiki>


{{Events|Pirate Lab|type=Meeting|lang=en|start=now|preload=Template:EmptyPirateLab/Preload}}</noinclude>
{{Events|Pirate Lab|type=Meeting|format=list|start=now|preload=Template:EmptyPirateLab/Preload}}</noinclude>

Latest revision as of 12:17, 5 April 2020

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
Toicon-icon-avocado-schedule.svg 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
Toicon-icon-avocado-cheer.svg Pirate Drink (Louvain-la-Neuve) Fri 21 February 2020, 7:30pm Black Friars – rue René Magritte 7
1348 Louvain-la-Neuve
Toicon-icon-avocado-cheer.svg Pirate Drink (Louvain-La-Neuve) Thu 31 October 2019, 7:30pm The Blackfriars Pub – rue René Magritte 7
1348 Louvain-La-Neuve
Toicon-icon-avocado-cheer.svg Pirate Drink (Louvain-La-Neuve) Fri 27 September 2019, 7:30pm The Blackfriars Pub – rue René Magritte 7
1348 Louvain-La-Neuve
Toicon-icon-avocado-schedule.svg 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|format=calendar|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