Difference between revisions of "Template:ExportEvent"

From Pirate Party Belgium
Jump to: navigation, search
Line 1: Line 1:
<includeonly>{{#ask: {{#if: {{{1|}}}  
+
<includeonly>{{#ask:  
 +
  {{#if: {{{1|}}}  
 
   | [[Has page::{{{1}}}]] [[Has event type::+]]
 
   | [[Has page::{{{1}}}]] [[Has event type::+]]
 
   | {{#if: {{{type|}}}  
 
   | {{#if: {{{type|}}}  
 
     | [[Has event type::{{#arraymap:{{{type}}}|,|x|x|{{!}}{{!}}}}]]
 
     | [[Has event type::{{#arraymap:{{{type}}}|,|x|x|{{!}}{{!}}}}]]
 
     | [[Has event type::+]]
 
     | [[Has event type::+]]
     }} {{#if: {{{workgroup|}}}
+
     }} {{#if: {{{workgroup|}}} | [[Organized by::{{#arraymap:{{{workgroup}}}|,|x|x|{{!}}{{!}}}}]] }}
    | [[Organized by::{{#arraymap:{{{workgroup}}}|,|x|x|{{!}}{{!}}}}]]
 
    | [[Organized by::+]]
 
    }}
 
 
   }}
 
   }}
| ?Has title=title
+
| ?Has title = title
| ?Has title=summary
+
| ?Has title = summary
| ?Has date=start
+
| ?Has date = start
| ?Has date=end
+
| ?Has 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: {{{1|}}}
+
| title = {{#ifeq: {{{workgroup|+}}} | +
   | {{{workgroup}}} {{#if: {{{date|}}}  
+
  |
    | - {{#time:d m Y|{{{date}}}}}
+
   | {{{workgroup}}} {{#if: {{{date|}}} | - {{#time:d m Y|{{{date}}}}} }}
    }}
 
  | {{#ifeq: {{{workgroup|+}}} | + | | {{{workgroup}}} }}  
 
 
   }}
 
   }}
| searchlabel={{{text|iCalendar}}}
+
| searchlabel = {{{text|iCalendar}}}
| sort=Has date
+
| sort = Has date
| order=desc
+
| order = desc
| limit={{{limit|10}}}
+
| limit = {{{limit|10}}}
 
}}</includeonly>
 
}}</includeonly>

Revision as of 21:56, 9 March 2017