Template:MeetingSidebar: Difference between revisions

From Pirate Party Belgium
Jump to navigation Jump to search
No edit summary
No edit summary
Line 18: Line 18:
| rowspan=2 style="padding:0px" |  
| rowspan=2 style="padding:0px" |  
{| cellspacing="0" style="width:100%;"  
{| cellspacing="0" style="width:100%;"  
| {{#if: {{{address|}}}  
| {{#if: {{{address|}}} | [[Has address::{{{address}}}]] | ? }}
  | [[Has address::{{{address}}}]]  
  | {{#if: {{{street|}}}
    | {{#if: {{{number|}}} | [[Has address::{{{street}}} {{{number}}}]] | [[Has address::{{{street}}}]] }}
    | {{#if: {{{number|}}} | {{{number}}} | ? }} }} }}
|-
|-
| {{#if: {{{postalcode|}}} | [[In postal code::{{{postalcode}}}]] }} {{#if: {{{city|}}} | [[In city::{{{city}}}]] | ? }}
| {{#if: {{{postalcode|}}} | [[In postal code::{{{postalcode}}}]] }} {{#if: {{{city|}}} | [[In city::{{{city}}}]] | ? }}
Line 37: Line 33:
{{!}} {{#arraymap: {{{absentees}}}|,|x|{{#set: Has absentee=x}}x}}
{{!}} {{#arraymap: {{{absentees}}}|,|x|{{#set: Has absentee=x}}x}}
{{!}}- }}
{{!}}- }}
{{#if: {{{agenda|}}}{{{minutes|}}} |
| colspan=2 |
{{!}} colspan=2 {{!}}
{| style="width:100%; text-align:center;"  
{{{!}} style="width:100%; text-align:center;"
| style="width:50%" | {{#if: {{{date|}}}  
{{#if: {{{agenda|}}} | ! style="width: 50%;" {{!}} {{#switch: {{{lang|}}} | fr = [[{{{agenda}}}|Ordre du jour]] | [[{{{agenda}}}|Agenda]] }} }}  
  | {{#vardefine: prev
{{#if: {{{minutes|}}} | ! style="width: 50%;" {{!}} {{#switch: {{{lang|}}} | fr = [[{{{minutes}}}|Compte-rendu]] | [[{{{minutes}}}|Minutes]] }} }}  
    | {{#ask: [[Category:Meeting]] [[Organized by::{{{workgroup|}}}]] [[!{{PAGENAME}}]] [[Has date::<{{#time:Y/m/d|{{{date}}} }}]]  
{{!}}}
      | limit=1
{{!}}- }}
      | searchlabel=
      | link = none
      | headers = hide
      }}
    }}{{#if: {{#var:prev|}}  
    | [[{{#var: prev}} | {{#switch: {{{lang|}}} | fr = Réunion précédente | Previous meeting }}]]
    }}
  }}
| style="width:50%" | {{#if: {{{date|}}}  
  | {{#vardefine: next
    | {{#ask: [[Category:Meeting]] [[Organized by::{{{workgroup|}}}]] [[!{{PAGENAME}}]] [[Has date::>{{#time:Y/m/d|{{{date}}} }}]]  
      | limit=1
      | searchlabel=
      | link = none
      | headers = hide
      }}  
    }}{{#if: {{#var:next|}}  
    | [[{{#var: next}} | {{#switch: {{{lang|}}} | fr = Réunion suivante | Next meeting }}]]
    }}  
  }}
|}
|-
{{#if: {{{city|}}}  
{{#if: {{{city|}}}  
| {{#vardefine: address | {{#if: {{{address|}}} | {{{address}}}, }} {{{city}}}, BE }}<!-- define the complet address
| {{#vardefine: coords
-->{{#if: {{{place|}}}  
  | {{Coordinates
  | {{#vardefine: coords  | {{#geocode: {{{place}}}, {{#var: address}} }} }} }}<!-- define coordinates with with venue name
    |venue={{{venue|}}}
-->{{#ifeq: {{#var: coords|Geocoding failed}} | Geocoding failed
    |address={{{address|}}}
  | {{#if: {{{address|}}} | {{#vardefine: coords | {{#geocode: {{#var: address}} }} }} }} }}<!-- try without venue name
    |city={{{city|}}}
-->{{#ifeq: {{#var: coords|Geocoding failed}} | Geocoding failed | |  
    }}  
  }}{{#if: {{#var: coords}} |
{{!}} colspan=2 {{!}} {{#display_map: {{#var: coords}} | height = 225px }}{{#set: Has coordinates={{#var: coords}} }}
{{!}} colspan=2 {{!}} {{#display_map: {{#var: coords}} | height = 225px }}{{#set: Has coordinates={{#var: coords}} }}
}} }}
}} }}

Revision as of 21:10, 4 February 2017

Our awesome meeting
Workgroup An awesome 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...

Usage

{{MeetingSidebar
|lang = en
|meetingname = Our awesome meeting
|workgroup = An awesome team
|date = 14 nov 2016
|time = 12:00am
|place = Flying Dutchman
|address = Treasure Island 666
|postalcode = 9000
|city = Atlantica
|participants = Jack, Mary, Jurgen
|absentees = Paul, Eve
|agenda = #Agenda
|minutes = #Minutes
}}