Template:ExportEvent: Difference between revisions

From Pirate Party Belgium
Jump to navigation Jump to search
(Usage and examples)
(export events from subprojects and subtopics)
Line 5: Line 5:
     | [[Has event type::{{#arraymap:{{{type}}}|,|x|x|{{!}}{{!}}}}]]
     | [[Has event type::{{#arraymap:{{{type}}}|,|x|x|{{!}}{{!}}}}]]
     | [[Has event type::+]]
     | [[Has event type::+]]
     }} {{#if: {{{workgroup|}}} | [[Organized by::{{#arraymap:{{{workgroup}}}|,|x|x|{{!}}{{!}}}}]] }}
     }} {{#if: {{{workgroup|}}}  
    | [[Organized by::{{#arraymap:{{{workgroup}}}|,|x|x|{{!}}{{!}} }}{{#ask: [[Category:Project]] [[Has parent::{{#arraymap:{{{workgroup}}}|,|x|x|{{!}}{{!}} }}]]
      | intro = {{!}}{{!}}
      | link = none
      | sep = {{!}}{{!}}
      }}]] OR {{#if: {{{type|}}}
      | [[Has event type::{{#arraymap:{{{type}}}|,|x|x|{{!}}{{!}}}}]]
      | [[Has event type::+]]
      }} [[In topic::{{#arraymap:{{{workgroup}}}|,|x|x|{{!}}{{!}} }}{{#ask: [[Category:Topic]] [[Has parent::{{#arraymap:{{{workgroup}}}|,|x|x|{{!}}{{!}} }}]]
      | intro = {{!}}{{!}}
      | link = none
      | sep = {{!}}{{!}}
      }}]]
    }}
   }}
   }}
| ?Has title = title
| ?Has title = title
Line 15: Line 28:
| ?Has url = url
| ?Has url = url
| format = icalendar
| format = icalendar
| title = {{#if: {{{workgroup|}}}  
| title ={{#if: {{{workgroup|}}}  
   | {{{workgroup}}} {{#if: {{{type|}}}{{{date|}}} | - }}
   | {{{workgroup}}} - <nowiki />
  }} {{#if: {{{type|}}}
   }}{{#time:d m Y|{{{date|now}}}}}
  | {{{type}}} {{#if: {{{date|}}} | - }}
   }} {{#if: {{{date|}}}
  | {{#time:d m Y|{{{date}}}}}
  }}
| searchlabel = {{{text|iCalendar}}}
| searchlabel = {{{text|iCalendar}}}
| sort = Has date
| sort = Has date

Revision as of 14:21, 7 October 2017

Usage

{{ExportEvent|Some event
| type = Meeting <!-- External / PirateBeer / 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