Template:ExportEvent: Difference between revisions

From Pirate Party Belgium
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(21 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#ask: {{#if: {{{1|}}}  
<includeonly>{{#ask:  
   | [[{{{1}}}]]  
  {{#if: {{{1|}}}  
   | {{#ifeq: {{{type|}}} | External
   | [[Has page::{{{1}}}]] [[Has event type::+]]
     | [[Category:External Event]]
   | {{#if: {{{type|}}}  
    | [[Category:{{{type|Event}}}]]
     | [[Has event type::{{#arraymap:{{{type}}}|,|x|x|{{!}}{{!}}}}]]
     }} {{#if: {{{workgroup|}}}
    | [[Has event type::+]]
     | [[Organized by::{{#arraymap:{{{workgroup}}}|,|x|x|{{!}}{{!}}}}]]
     }} {{#if: {{{workgroup|}}}  
    | [[Organized by::+]]
     | [[Organized by::{{#arraymap:{{{workgroup}}}|,|x|x|{{!}}{{!}} }}{{#ask: [[Category:Project]] [[Organized by::{{#arraymap:{{{workgroup}}}|,|x|x|{{!}}{{!}} }}]]  
    }} {{#if: {{{date|}}} | [[Has date::>{{#time:Y/m/j|{{{date}}} }}]] }}
      | intro = {{!}}{{!}}
  }}
      | link = none
| ?Has title=title
      | sep = {{!}}{{!}}
| ?Has title=summary
      }}]] OR {{#if: {{{type|}}}
| ?Has date=start
      | [[Has event type::{{#arraymap:{{{type}}}|,|x|x|{{!}}{{!}}}}]]
| ?Has date=end
      | [[Has event type::+]]
| ?Has location=location
      }} [[In topic::{{#arraymap:{{{workgroup}}}|,|x|x|{{!}}{{!}} }}{{#ask: [[Category:Topic]] [[Has parent::{{#arraymap:{{{workgroup}}}|,|x|x|{{!}}{{!}} }}]]
| ?Has url=description
      | intro = {{!}}{{!}}
| ?Has url=url
      | link = none
| format=icalendar
      | sep = {{!}}{{!}}
| title={{#if: {{{1|}}}
      }}]]
  | {{{workgroup}}} {{#if: {{{date|}}}  
    | - {{#time:d m Y|{{{date}}}}}
     }}
     }}
  | {{#ifeq: {{{workgroup|+}}} | + | | {{{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