Template:NextEventLink: Difference between revisions

From Pirate Party Belgium
Jump to navigation Jump to search
(Created page with "<includeonly>{{#if: {{{date|}}} | {{#ask: {{#if: {{{type|}}} | [[Has event type::{{{type}}}]] | Has event type::+ }} {{#if: {{{1|}}} | Organi...")
 
(Undo revision 27587 by HgO (talk))
 
(5 intermediate revisions by the same user not shown)
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::+]]
      }} {{#if: {{{1|}}}
    }} {{#arraymap:{{{date}}}|,|x|[[Has date::>>{{#time:Y/m/d H:i|x {{{time|}}} }}]]|}} {{#if: {{{workgroup|}}}
      | [[Organized by::{{#arraymap:{{{1}}}|,|x|x|{{!}}{{!}}}}]]  
    | [[Organized by::{{#arraymap:{{{workgroup}}}|,|x|x|{{!}}{{!}}}}]]  
      }} [[Has date::>>{{#time:Y/m/d H:i|{{{date}}} }}]] OR {{#if: {{{type|}}}  
    }} {{#if: {{{topics|}}}  
      | [[Has event type::{{{type}}}]]
    | {{#if: {{{workgroup|}}}
      | [[Has event type::+]]
      | OR {{#if: {{{type|}}}  
      }} {{#if: {{{1|}}}
        | [[Has event type::{{{type}}}]]
       | [[In topic::{{#arraymap:{{{1}}}|,|x|x|{{!}}{{!}}}}]]  
        | [[Has event type::+]]
      }} [[Has date::>>{{#time:Y/m/d H:i|{{{date}}} }}]]
        }} {{#arraymap:{{{date}}}|,|x|[[Has date::>>{{#time:Y/m/d H:i|x {{{time|}}} }}]]|}}  
    | ?Has page
       }} [[In topic::{{#arraymap:{{{topics}}}|,|x|x|{{!}}{{!}}}}]]  
    | limit=1  
    }}
    | searchlabel=
  | ?Has page
    | link = none
  | limit=1
    | headers = hide
  | searchlabel=
    | mainlabel=-
  | link = none
    | sort = Has date
  | headers = hide
    | order = asc
  | mainlabel=-
    }}  
  | sort = Has date
  }}
  | order = asc
}}</includeonly>
  }}
}}</includeonly><noinclude>
== Usage ==
 
<nowiki>{{NextEventLink
| workgroup =An awesome team
| topics = Some good topic
| date = 2017/09/23
| time = 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,2017/08/07|time=13:00|type=Meeting}}</nowiki>
 
{{NextEventLink|workgroup=Pirate Lab|date=2017/08/26,2017/08/27|time=13:00|type=Meeting}}
</noinclude>

Latest revision as of 11: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