Template:NextEventLink: Difference between revisions

From Pirate Party Belgium
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#if: {{{date|}}}  
<includeonly>{{#if: {{{date|}}}  
  | {{#ask: {{#if: {{{type|}}}  
| {{#ask: {{#if: {{{type|}}}  
      | [[Has event type::{{{type}}}]]
    | [[Has event type::{{{type}}}]]
      | [[Has event type::+]]
    | [[Has event type::+]]
      }} [[Has date::>>{{#time:Y/m/d H:i|{{{date}}} }}]] {{#if: {{{workgroup|}}}
    }} [[Has date::>>{{#time:Y/m/d H:i|{{{date}}} }}]] {{#if: {{{workgroup|}}}
      | [[Organized by::{{#arraymap:{{{workgroup}}}|,|x|x|{{!}}{{!}}}}]]  
    | [[Organized by::{{#arraymap:{{{workgroup}}}|,|x|x|{{!}}{{!}}}}]]  
      }} {{#if: {{{topics|}}}  
    }} {{#if: {{{topics|}}}  
      | {{#if: {{{workgroup|}}}  
    | {{#if: {{{workgroup|}}}  
        | OR {{#if: {{{type|}}}  
      | OR {{#if: {{{type|}}}  
          | [[Has event type::{{{type}}}]]
        | [[Has event type::{{{type}}}]]
          | [[Has event type::+]]
        | [[Has event type::+]]
          }} [[Has date::>>{{#time:Y/m/d H:i|{{{date}}} }}]]
        }} [[Has date::>>{{#time:Y/m/d H:i|{{{date}}} }}]]
        }} [[In topic::{{#arraymap:{{{topics}}}|,|x|x|{{!}}{{!}}}}]]  
      }} [[In topic::{{#arraymap:{{{topics}}}|,|x|x|{{!}}{{!}}}}]]  
      }}
    }}
    | ?Has page
  | ?Has page
    | limit=1  
  | limit=1
    | searchlabel=
  | searchlabel=
    | link = none
  | link = none
    | headers = hide
  | headers = hide
    | mainlabel=-
  | mainlabel=-
    | sort = Has date
  | sort = Has date
    | order = asc
  | order = asc
    }}  
  }}
  }}
}}</includeonly><noinclude>
}}</includeonly>
== Usage ==
 
<nowiki>{{NextEventLink
| workgroup =An awesome team
| topics = Some good topic
| date = 2017/09/23 12pm
| type = Meeting
}}</nowiki>
 
== Example ==
 
=== Next meeting after [[Pirate Lab/Meeting/26 08 2017|Pirate Lab August]] ===
<nowiki>{{NextEventLink|workgroup=Pirate Lab|date=2017/08/26 13:00|type=Meeting}}</nowiki>
 
{{NextEventLink|workgroup=Pirate Lab|date=2017/08/26 13:00|type=Meeting}}
</noinclude>

Revision as of 08:30, 26 September 2017

Usage

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

Example

Next meeting after Pirate Lab August

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

Pirate Lab/Meeting/30 09 2017