Template:ExportEvent: Difference between revisions

From Pirate Party Belgium
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(36 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#ask: {{#if: {{{1|}}}  
<includeonly>{{#ask:  
   | [[{{{1}}}]]  
  {{#if: {{{1|}}}  
  | [[Category:Meeting]] [[Organized by::{{{workgroup|+}}}]] {{#if: {{{date|}}} | [[Has date::>{{#time:Y/m/j|{{{date}}} }}]] }}
   | [[Has page::{{{1}}}]] [[Has event type::+]]
  }}
  | {{#if: {{{type|}}}  
| ?Has title=title
    | [[Has event type::{{#arraymap:{{{type}}}|,|x|x|{{!}}{{!}}}}]]
| ?Has title=summary
    | [[Has event type::+]]
| ?Has date=start
    }} {{#if: {{{workgroup|}}}  
| ?Has date=end
    | [[Organized by::{{#arraymap:{{{workgroup}}}|,|x|x|{{!}}{{!}} }}{{#ask: [[Category:Project]] [[Organized by::{{#arraymap:{{{workgroup}}}|,|x|x|{{!}}{{!}} }}]]
| ?Has location=location
      | intro = {{!}}{{!}}
| ?Has url=description
      | link = none
| ?Has url=url
      | sep = {{!}}{{!}}  
| format=icalendar
      }}]] OR {{#if: {{{type|}}}
| title={{#if: {{{1|}}}
      | [[Has event type::{{#arraymap:{{{type}}}|,|x|x|{{!}}{{!}}}}]]
  | {{{workgroup}}} {{#if: {{{date|}}}  
       | [[Has event type::+]]
    | - {{#time:d m Y|{{{date}}} }}
       }} [[In topic::{{#arraymap:{{{workgroup}}}|,|x|x|{{!}}{{!}} }}{{#ask: [[Category:Topic]] [[Has parent::{{#arraymap:{{{workgroup}}}|,|x|x|{{!}}{{!}} }}]]
    }}
       | intro = {{!}}{{!}}
  | {{#ifeq: {{{workgroup|+}}} | +
       | link = none
    |  
       | sep = {{!}}{{!}}
    | {{{workgroup}}}
      }}]]
    }}
  }}
| description={{#if: {{{1|}}}
  | {{#if: {{{workgroup|}}}
    | {{#switch: {{{lang|}}}  
       | fr = Réunion organisée par
      | Meeting organized by
       }} {{{workgroup}}}
    }}
  | {{#ifeq: {{{workgroup|+}}} | +
    | {{#switch: {{{lang|}}}
       | fr = Réunions du Parti Pirate de Belgique
      | Meetings of the Pirate Party Belgium
      }}
    | {{#switch: {{{lang|}}}
       | fr = Réunions organisées par
       | Meetings organized by
      }} {{{workgroup}}}
     }}
     }}
   }}
   }}
| searchlabel={{{text|iCalendar}}}
| ?Has title = title
| sort=Has date
| ?Has title = summary
| order={{{order|desc}}}
| ?Has date = start
| limit={{{limit|10}}}
| ?Has end date = end
}}</includeonly>
| ?Has location = location
| ?Has url = description
| ?Has url = url
| format = icalendar
| searchlabel = {{{text|iCalendar}}}
| sort = Has date
| order = desc
| limit = {{{limit|10}}}
| timezone = Europe/Brussels
}}</includeonly><noinclude>
== Usage ==
<!-- External / PirateDrink / Meeting -->
<nowiki>{{ExportEvent|Some event
| type = Meeting <!-- External / PirateDrink / Meeting -->
| workgroup = An awesome team
| date = 2017/05/25
| text = iCalendar
| limit = 10
}}</nowiki>
 
== Example ==
 
=== Export all [[:Category:Meeting|meetings]] ===
 
<nowiki>{{ExportEvent|type=Meeting}}</nowiki>
 
{{ExportEvent|type=Meeting}}
 
=== Export one event ===
 
<nowiki>{{ExportEvent|WikiSquad/Meeting/23 09 2017}}</nowiki>
 
{{ExportEvent|WikiSquad/Meeting/23 09 2017}}
 
=== Export external events of [[Pirates de Liège]] ===
 
<nowiki>{{ExportEvent|type=External|workgroup=Pirates de Liège}}</nowiki>
 
{{ExportEvent|type=External|workgroup=Pirates de Liège}}
 
=== Export all events, indicate the date of export ===
 
<nowiki>{{ExportEvent|date=now}}</nowiki>
 
{{ExportEvent|date=now}}
</noinclude>

Latest revision as of 10:59, 6 March 2019

Usage

{{ExportEvent|Some event
| type = Meeting <!-- External / PirateDrink / Meeting -->
| workgroup = An awesome team
| date = 2017/05/25
| text = iCalendar
| limit = 10
}}

Example

Export all meetings

{{ExportEvent|type=Meeting}}

iCalendar

Export one event

{{ExportEvent|WikiSquad/Meeting/23 09 2017}}

iCalendar

Export external events of Pirates de Liège

{{ExportEvent|type=External|workgroup=Pirates de Liège}}

iCalendar

Export all events, indicate the date of export

{{ExportEvent|date=now}}

iCalendar