Template:NextEventLink: Difference between revisions

From Pirate Party Belgium
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
     | [[Has event type::{{{type}}}]]
     | [[Has event type::{{{type}}}]]
     | [[Has event type::+]]
     | [[Has event type::+]]
     }} {{#arraymap:{{{date}}}|,|x|[[Has date::>>{{#time:Y/m/d H:i|x {{{time|}}} }}]]|}} {{#if: {{{workgroup|}}}
     }} {{#arraymap:{{{date}}}|,|x|[[Has date::>>{{#time:Y/m/d H:i|x {{{time|}}} }}]]|}} {{#switch: {{{type|}}}
    | [[Organized by::{{#arraymap:{{{workgroup}}}|,|x|x|{{!}}{{!}}}}]]  
    | External = {{#if: {{{topics|}}}  
    }} {{#if: {{{topics|}}}  
      | [[In topic::{{#arraymap:{{{topics}}}|,|x|x|{{!}}{{!}}}}]]  
    | {{#if: {{{workgroup|}}}  
      | {{#if: {{{workgroup|}}}
      | OR {{#if: {{{type|}}}  
        | [[Organized by::{{#arraymap:{{{workgroup}}}|,|x|x|{{!}}{{!}}}}]]
         | [[Has event type::{{{type}}}]]
         }}
        | [[Has event type::+]]
      }}
        }} {{#arraymap:{{{date}}}|,|x|[[Has date::>>{{#time:Y/m/d H:i|x {{{time|}}} }}]]|}}  
    | Meeting = {{#if: {{{workgroup|}}}
      }} [[In topic::{{#arraymap:{{{topics}}}|,|x|x|{{!}}{{!}}}}]]  
      | [[Organized by::{{#arraymap:{{{workgroup}}}|,|x|x|{{!}}{{!}}}}]]
      | {{#if: {{{topics|}}}  
        | [[In topic::{{#arraymap:{{{topics}}}|,|x|x|{{!}}{{!}}}}]]  
        }}
      }}
     }}
     }}
   | ?Has page
   | ?Has page

Revision as of 11:42, 27 September 2017

Usage

{{NextEventLink
| workgroup =An awesome team
| topics = Some good topic
| date = 2017/09/23 
| time = 12pm
| type = Meeting
}}

Example

Next meeting after Pirate Lab August

{{NextEventLink|workgroup=Pirate Lab|date=2017/08/26,2017/08/07|time=13:00|type=Meeting}}

Pirate Lab/Meeting/30 09 2017