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>{{#vardefine: event_text_fr
<includeonly>{{#ask: {{#if: {{{type|}}} | [[Category:{{{type|}}}]] | [[Category:Event]] }} [[Organized by::{{{1|+}}}]] {{#if: {{{start|}}} | [[Has date::>{{#time:Y/m/j|{{{start}}} }}]] }}
| {{#switch: {{{type|}}}
  | Meeting = de réunions
  | PirateBeer = de pirate beers
  | d'évènements
  }}
}}{{#vardefine: event_text_nl
| {{#switch: {{{type|}}}
  | Meeting = samenkomsten
  | PirateBeer = pirate beers
  | evenementen
  }}
}}{{#vardefine: event_text
| {{#switch: {{{type|}}}
  | Meeting = meetings
  | PirateBeer = pirate beers
  | events
  }}
}}{{#ask: {{#if: {{{type|}}} | [[Category:{{{type|}}}]] | [[Category:Event]] }} [[Organized by::{{{1|+}}}]] {{#if: {{{start|}}} | [[Has date::>{{#time:Y/m/j|{{{start}}} }}]] }}
|?In language
|?In language
|?Has title
|?Has title
Line 47: Line 29:
|order = {{{order|desc}}}
|order = {{{order|desc}}}
|searchlabel={{#switch: {{{lang|}}}  
|searchlabel={{#switch: {{{lang|}}}  
   | fr = Afficher plus {{#var: event_text_fr}} !
   | fr = Afficher plus {{#switch: {{{type|}}}
   | nl = Toon meer {{#var: event_text_nl}} !
    | Meeting = de réunions
   | Show moarr {{#var: event_text}}!
    | PirateBeer = de pirate beers
    | d'évènements
    }} !
   | nl = Toon meer {{#switch: {{{type|}}}
    | Meeting = samenkomsten
    | PirateBeer = pirate beers
    | evenementen
    }} !
   | Show moarr {{#switch: {{{type|}}}
    | Meeting = meetings
    | PirateBeer = pirate beers
    | events
    }}!
   }}
   }}
|default={{#if: {{{1|}}} | [[{{{1}}}]]  
|default={{#if: {{{1|}}} | [[{{{1}}}]]  
Line 58: Line 52:
     }}  
     }}  
   }} {{#switch: {{{lang|}}}  
   }} {{#switch: {{{lang|}}}  
   | fr = n'a pas encore organisé {{#var: event_text_fr}}
   | fr = n'a pas encore organisé {{#switch: {{{type|}}}
   | nl = heeft nog geen {{#var: event_text_nl}} georganiseerd
    | Meeting = de réunions
   | haven't organized any {{#var: event_text}} yet  
    | PirateBeer = de pirate beers
    | d'évènements
    }}
   | nl = heeft nog geen {{#switch: {{{type|}}}
    | Meeting = samenkomst
    | PirateBeer = pirate beer
    | evenement
    }} georganiseerd
   | haven't organized any {{#switch: {{{type|}}}
    | Meeting = meeting
    | PirateBeer = pirate beer
    | event
    }} yet  
   }}.
   }}.
}} {{#ifeq: {{{type|}}} | Meeting  
}} {{#ifeq: {{{type|}}} | Meeting  

Revision as of 00:00, 15 February 2017

Usage

{{Events|An awesome crew|type=Event|start=now|order=desc|limit=10|lang=en|preload=page}}

Examples

No event

{{Events|An awesome crew}}

An awesome crew haven't organized any event yet. Template:Event ics

Events by Crew BW

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

Crew BW n'a pas encore organisé d'évènements. Template:Event ics

Future events by Pirates de Liège

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

Pirates de Liège n'a pas encore organisé d'évènements. Template:Event ics

Future Pirate Lab

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

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

Pirate Lab haven't organized any meeting yet. Template:NewMeeting Template:Event ics