Template:MeetingSidebar: Difference between revisions

From Pirate Party Belgium
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#set: In language={{{lang|en}}}}}{| style="min-width: 275px; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; position:relative; text-align:left;"
<includeonly>{| style="width: 300px; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; position:relative; text-align:left;"
! style="text-align: center; background-color: #692D89; color:white;padding:0.3em; font-size:medium;" colspan="2" |[[Has title::{{{meetingname|Pirate Meeting #X}}}]]
! style="text-align: center; background-color: #692D89; color:white;padding:0.3em; font-size:medium;" colspan="2" |[[Has title::{{{meetingname|Pirate Meeting}}}]]
|-
|-
! style="vertical-align: top;" | {{#switch: {{{lang|}}} | fr = Groupe de travail | Workgroup }}
! style="vertical-align: top;" | {{#switch: {{{lang|}}} | fr = Groupe de travail | Workgroup }}
Line 6: Line 6:
|-
|-
! style="vertical-align: top;" | {{#switch: {{{lang|}}} | fr = Date | Date }}
! style="vertical-align: top;" | {{#switch: {{{lang|}}} | fr = Date | Date }}
| {{#if: {{{date|}}} | {{#set:Has date={{#time:Y-m-d|{{{date}}}}}}} {{#show: {{FULLPAGENAME}} | ?Has date#MEDIAWIKI-F[D j M Y]}} {{#if: {{{time|}}} | {{#switch: {{{lang|}}} | fr = à | at }} {{{time}}} }} | ? }}
| {{#if: {{{date|}}} | [[Has date::{{{date}}}|{{#time:D j F Y|{{{date}}}|{{{lang|en}}} }}]] | ? }}  
|-
! style="vertical-align: top;" | {{#switch: {{{lang|}}} | fr = Heure | Time }}
| {{#if: {{{time|}}} | [[Has time::{{{time}}}]] | ? }}
|-
|-
{{#if: {{{place|}}} |  
{{#if: {{{place|}}} |  
! style="vertical-align: top;" {{!}} {{#switch: {{{lang|}}} | fr = Lieu | nl = Locatie | Venue }}
! style="vertical-align: top;" {{!}} {{#switch: {{{lang|}}} | fr = Lieu | nl = Locatie | Venue }}
{{!}} {{#set: In venue={{{place}}} }}{{{place}}}
{{!}} [[In venue::{{{place}}}]]
{{!}}- }}
{{!}}- }}
! style="vertical-align: top;" | {{#switch: {{{lang|}}} | fr = Adresse | Address }}
! style="vertical-align: top;" | {{#switch: {{{lang|}}} | fr = Adresse | Address }}
| rowspan=2 style="padding:0px" |  
| rowspan=2 style="padding:0px" |  
{| cellspacing="0" style="width:100%;"  
{| cellspacing="0" style="width:100%;"  
| [[Has address::{{#if: {{{address|}}} | {{{address}}} | {{{street|?}}} {{{number|}}} }}]]
| {{#if: {{{address|}}}
  | [[Has address::{{{address}}}]]
  | {{#if: {{{street|}}}  
    | {{#if: {{{number|}}}
      | [[Has address::{{{street}}} {{{number}}}]]
      | [[Has address::{{{street}}}]] }}
    | {{{number|?}}} }} }}
|-
|-
| {{#if: {{{postalcode|}}} | [[In postal code::{{{postalcode}}}]]&nbsp; }}[[In city::{{{city|?}}}]]
| {{#if: {{{postalcode|}}} | [[In postal code::{{{postalcode}}}]] }} {{#if: {{{city|}}} | [[In city::{{{city}}}]] | ? }}
|}
|}
|-
|-
Line 24: Line 33:
{{#if: {{{participants|}}} |
{{#if: {{{participants|}}} |
! style="vertical-align: top;" {{!}} {{#switch: {{{lang|}}} | fr = Participants | nl = Aanwezigen | Attendees }}
! style="vertical-align: top;" {{!}} {{#switch: {{{lang|}}} | fr = Participants | nl = Aanwezigen | Attendees }}
{{!}} {{#arraymap: {{{participants}}}|,|x|{{#set: Has attendee=x }}x|<br />}}
{{!}} {{#arraymap: {{{participants}}}|,|x|{{#set: Has attendee=x}}x}}
{{!}}- }}  
{{!}}- }}  
{{#if: {{{absentees|}}} |
{{#if: {{{absentees|}}} |
! style="vertical-align: top;" {{!}} {{#switch: {{{lang|}}} | fr = Excusés | Absentees }}
! style="vertical-align: top;" {{!}} {{#switch: {{{lang|}}} | fr = Excusés | Absentees }}
{{!}} {{#arraymap: {{{absentees}}}|,|x|{{#set: Has absentee=x }}x|<br />}}
{{!}} {{#arraymap: {{{absentees}}}|,|x|{{#set: Has absentee=x}}x}}
{{!}}- }}
{{!}}- }}
! colspan=2 | {{#if: {{{agenda|}}}{{{minutes|}}} |
{{#if: {{{agenda|}}}{{{minutes|}}} |
{{{!}} width="100%" style="text-align:center; padding:0.3em;"  
{{!}} colspan=2 {{!}}
! width="{{#if: {{{minutes|}}} | 50% | 100% }}" {{!}} {{#if: {{{agenda|}}} | {{#switch: {{{lang|}}} | fr = [[{{{agenda}}}|Ordre du jour]] | [[{{{agenda}}}|Agenda]] }} }}
{{{!}} style="width:100%; text-align:center;"
! width="{{#if: {{{agenda|}}} | 50% | 100% }}" {{!}} {{#if: {{{minutes|}}} | {{#switch: {{{lang|}}} | fr = [[{{{minutes}}}|Compte-rendu]] | [[{{{minutes}}}|Minutes]] }} }}
{{#if: {{{agenda|}}} | ! style="width: 50%;" {{!}} {{#switch: {{{lang|}}} | fr = [[{{{agenda}}}|Ordre du jour]] | [[{{{agenda}}}|Agenda]] }} }}  
{{!}}} }}
{{#if: {{{minutes|}}} | ! style="width: 50%;" {{!}} {{#switch: {{{lang|}}} | fr = [[{{{minutes}}}|Compte-rendu]] | [[{{{minutes}}}|Minutes]] }} }}  
|}
{{!}}}
{{#if: {{{nocat|}}} | |  
{{!}}- }}
  [[Category:Meeting]]
{{#if: {{{city|}}} | {{#vardefine: coords|{{#geocode: {{#if: {{{address|}}} | {{{address}}}, | {{#if: {{{street|}}} | {{{street}}} {{{number|}}}, }} }} {{{postalcode|}}} {{{city}}}, BE }} }} {{#ifeq: {{#var: coords }} | Geocoding failed | |
  {{#if: {{{workgroup|}}} | [[Category:{{{workgroup}}}]] }}
{{!}} colspan=2 {{!}} {{#display_map:{{#var: coords}}|height=225px}}
}}</includeonly><noinclude>{{MeetingSidebar
}} }}
|} {{#if: {{{nocat|}}} | |  [[Category:Event]] [[Category:Meeting]] }} [[In language::{{{lang|en}}}| ]] [[Has default form::Meeting event| ]] [[Has event type::Meeting| ]]</includeonly><noinclude>{{MeetingSidebar
|lang = en
|lang = en
|meetingname = Our awesome meeting
|meetingname = Our awesome meeting
Line 46: Line 56:
|time = 12:00am
|time = 12:00am
|place = Flying Dutchman
|place = Flying Dutchman
|street = Treasure Island
|address = Treasure Island 666
|number = 666
|postalcode = 9000
|postalcode = 9000
|city = Atlantica
|city = Atlantica
Line 56: Line 65:
|nocat = true
|nocat = true
}}
}}
== Usage ==
== Usage ==
  <nowiki>
  <nowiki>
Line 66: Line 74:
|time = 12:00am
|time = 12:00am
|place = Flying Dutchman
|place = Flying Dutchman
|street = Treasure Island
|address = Treasure Island 666
|number = 666
|postalcode = 9000
|postalcode = 9000
|city = Atlantica
|city = Atlantica

Revision as of 17:41, 1 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
Agenda Minutes

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
}}