Difference between revisions of "Template:NextEventLink"

From Pirate Party Belgium
Jump to: navigation, search
(Undo revision 27587 by HgO (talk))
 
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|}}} }}]]|}} {{#switch: {{{type|}}}
+
     }} {{#arraymap:{{{date}}}|,|x|[[Has date::>>{{#time:Y/m/d H:i|x {{{time|}}} }}]]|}} {{#if: {{{workgroup|}}}
     | External = {{#if: {{{topics|}}}
+
     | [[Organized by::{{#arraymap:{{{workgroup}}}|,|x|x|{{!}}{{!}}}}]]  
      | [[In topic::{{#arraymap:{{{topics}}}|,|x|x|{{!}}{{!}}}}]]  
+
    }} {{#if: {{{topics|}}}  
      | {{#if: {{{workgroup|}}}
+
    | {{#if: {{{workgroup|}}}  
        | [[Organized by::{{#arraymap:{{{workgroup}}}|,|x|x|{{!}}{{!}}}}]]
+
      | OR {{#if: {{{type|}}}  
         }}
+
         | [[Has event type::{{{type}}}]]
      }}
+
        | [[Has event type::+]]
    | Meeting = {{#if: {{{workgroup|}}}
+
        }} {{#arraymap:{{{date}}}|,|x|[[Has date::>>{{#time:Y/m/d H:i|x {{{time|}}} }}]]|}}
      | [[Organized by::{{#arraymap:{{{workgroup}}}|,|x|x|{{!}}{{!}}}}]]
+
       }} [[In topic::{{#arraymap:{{{topics}}}|,|x|x|{{!}}{{!}}}}]]  
       | {{#if: {{{topics|}}}
 
        | [[In topic::{{#arraymap:{{{topics}}}|,|x|x|{{!}}{{!}}}}]]  
 
        }}
 
      }}
 
 
     }}
 
     }}
 
   | ?Has page
 
   | ?Has page

Latest revision as of 12:44, 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