Template:ExportEvent: Difference between revisions

From Pirate Party Belgium
Jump to navigation Jump to search
(export events from subprojects and subtopics)
mNo edit summary
 
(7 intermediate revisions by the same user not shown)
Line 6: Line 6:
     | [[Has event type::+]]
     | [[Has event type::+]]
     }} {{#if: {{{workgroup|}}}  
     }} {{#if: {{{workgroup|}}}  
     | [[Organized by::{{#arraymap:{{{workgroup}}}|,|x|x|{{!}}{{!}} }}{{#ask: [[Category:Project]] [[Has parent::{{#arraymap:{{{workgroup}}}|,|x|x|{{!}}{{!}} }}]]  
     | [[Organized by::{{#arraymap:{{{workgroup}}}|,|x|x|{{!}}{{!}} }}{{#ask: [[Category:Project]] [[Organized by::{{#arraymap:{{{workgroup}}}|,|x|x|{{!}}{{!}} }}]]  
       | intro = {{!}}{{!}}
       | intro = {{!}}{{!}}
       | link = none  
       | link = none  
Line 23: Line 23:
| ?Has title = summary
| ?Has title = summary
| ?Has date = start
| ?Has date = start
| ?Has date = end
| ?Has end date = end
| ?Has location = location
| ?Has location = location
| ?Has url = description
| ?Has url = description
| ?Has url = url
| ?Has url = url
| format = icalendar
| format = icalendar
| title ={{#if: {{{workgroup|}}}
  | {{{workgroup}}} - <nowiki />
  }}{{#time:d m Y|{{{date|now}}}}}
| searchlabel = {{{text|iCalendar}}}
| searchlabel = {{{text|iCalendar}}}
| sort = Has date
| sort = Has date
| order = desc
| order = desc
| limit = {{{limit|10}}}
| limit = {{{limit|10}}}
| timezone = Europe/Brussels
}}</includeonly><noinclude>
}}</includeonly><noinclude>
== Usage ==
== Usage ==
<!-- External / PirateBeer / Meeting -->
<!-- External / PirateDrink / Meeting -->
  <nowiki>{{ExportEvent|Some event
  <nowiki>{{ExportEvent|Some event
| type = Meeting <!-- External / PirateBeer / Meeting -->
| type = Meeting <!-- External / PirateDrink / Meeting -->
| workgroup = An awesome team
| workgroup = An awesome team
| date = 2017/05/25
| date = 2017/05/25

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