Template:MeetingSidebar: Difference between revisions

From Pirate Party Belgium
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 6: Line 6:
|-
|-
! style="vertical-align: top;" | {{int:sidebar-date}}
! style="vertical-align: top;" | {{int:sidebar-date}}
| {{#if: {{{date|}}} | {{#time:D j F Y|{{{date}}}|{{int:language-code}} }} | ? }}  
| {{#if: {{{date|}}}  
  | {{#time:D j F Y|{{{date}}}|{{int:language-code}} }}{{#vardefine: next
    | {{#ask: [[Has event type::Meeting]] {{#if: {{{workgroup|}}}
        | [[Organized by::{{#arraymap:{{{workgroup}}}|,|x|x|{{!}}{{!}}}}]]
        }} [[Has date::>>{{#time:Y/m/d H:i|{{{date}}} {{#var:time}} }}]]
      | ?Has page
      | limit=1
      | searchlabel=
      | link = none
      | headers = hide
      | mainlabel=-
      | sort = Has date
      | order = asc
      }}
    }}{{#vardefine: prev
    | {{#ask: [[Has event type::Meeting]] {{#if: {{{workgroup|}}}
        | [[Organized by::{{#arraymap:{{{workgroup}}}|,|x|x|{{!}}{{!}}}}]]
        }} [[Has date::<<{{#time:Y/m/d H:i|{{{date}}} {{#var:time}} }}]]
      | ?Has page
      | limit=1
      | searchlabel=
      | link = none
      | headers = hide
      | mainlabel=-
      | sort = Has date
      | order = desc
      }}
    }}
  | ?  
  }}  
|-
|-
! style="vertical-align: top;" | {{int:sidebar-time}}
! style="vertical-align: top;" | {{int:sidebar-time}}
Line 14: Line 43:
! style="vertical-align: top;" {{!}} {{int:sidebar-venue}}
! style="vertical-align: top;" {{!}} {{int:sidebar-venue}}
{{!}} {{#if: {{{linkvenue|}}} | [{{{linkvenue}}} {{{venue}}}] | {{{venue}}} }}
{{!}} {{#if: {{{linkvenue|}}} | [{{{linkvenue}}} {{{venue}}}] | {{{venue}}} }}
{{!}}- }}{{#ifeq: {{{venue|}}} | Internet  
{{!}}- }}
{{#ifeq: {{{venue|}}} | Internet  
|
|
|
| <nowiki />
! style="vertical-align: top;" {{!}} {{int:sidebar-address}}
! style="vertical-align: top;" {{!}} {{int:sidebar-address}}
{{!}} rowspan=2 style="padding:0px" {{!}}
{{!}} rowspan=2 style="padding:0px" {{!}}
Line 35: Line 65:
{{!}} {{{absentees}}}
{{!}} {{{absentees}}}
{{!}}- }}
{{!}}- }}
| colspan=2 |
{{#if: {{#var:prev|}}{{#var:next|}}
{| style="width:100%; text-align:center;"
{{!}} colspan=2 {{!}}
| style="width:50%" | {{#if: {{{date|}}}
{{{!}} style="width:100%; text-align:center;"
  | {{#vardefine: prev  
{{!}} style="width:50%" {{!}} {{#if: {{#var:prev|}}
    | {{#ask: [[Has event type::Meeting]] {{#if: {{{workgroup|}}}
  | [[{{#var: prev}} | {{int:sidebar-previous-meeting}}]]
        | [[Organized by::{{#arraymap:{{{workgroup}}}|,|x|x|{{!}}{{!}}}}]]
        }} [[Has date::<<{{#time:Y/m/d H:i|{{{date}}} {{#var:time}} }}]]
      | ?Has page
      | limit=1
      | searchlabel=
      | link = none
      | headers = hide
      | mainlabel=-
      | sort = Has date
      | order = desc
      }}
    }}{{#if: {{#var:prev|}}  
    | [[{{#var: prev}} | {{int:sidebar-previous-meeting}}]]  
    }}
   }}
   }}
| style="width:50%" | {{#if: {{{date|}}}
{{!}} style="width:50%" {{!}} {{#if: {{#var:next|}}  
  | {{#vardefine: next
  | [[{{#var: next}} | {{int:sidebar-next-meeting}}]]  
    | {{#ask: [[Has event type::Meeting]] {{#if: {{{workgroup|}}}
        | [[Organized by::{{#arraymap:{{{workgroup}}}|,|x|x|{{!}}{{!}}}}]]
        }} [[Has date::>>{{#time:Y/m/d H:i|{{{date}}} {{#var:time}} }}]]
      | ?Has page
      | limit=1
      | searchlabel=
      | link = none
      | headers = hide
      | mainlabel=-
      | sort = Has date
      | order = asc
      }}
    }}{{#if: {{#var:next|}}  
    | [[{{#var: next}} | {{int:sidebar-next-meeting}}]]  
    }}
   }}
   }}
|}
{{!}}}
|-
{{!}}- }}
{{#if: {{{city|}}}  
{{#if: {{{city|}}}  
| {{#vardefine: coords  
| {{#vardefine: coords  
Line 131: Line 132:
|date = 14 nov 2016
|date = 14 nov 2016
|time = 12am
|time = 12am
|venue = Internet
|venue = Flying Dutchman
|linkvenue = http://www.the-flying-dutchman.nl/
|linkvenue = http://www.the-flying-dutchman.nl/
|address = Treasure Island 666
|address = Treasure Island 666

Revision as of 17:08, 10 August 2017

Our awesome meeting
Workgroup An awesome team
Another team
Date Mon 14 November 2016
Time 12:00am
Venue Flying Dutchman
Address
Treasure Island 666
9000 Atlantica
City
Attendees Jack, Mary, Jurgen
Absentees Paul, Eve
Loading map...
Find routes on OpenStreetMap
Export iCalendar
Clone this meeting

Usage

{{MeetingSidebar
|meetingname = Our awesome meeting
|workgroup = An awesome team, Another team
|date = 14 nov 2016
|time = 12am
|venue = Flying Dutchman
|linkvenue = http://www.the-flying-dutchman.nl/
|address = Treasure Island 666
|postalcode = 9000
|city = Atlantica
|attendees = Jack, Mary, Jurgen
|absentees = Paul, Eve
}}