Template:MeetingSidebar: Difference between revisions

From Pirate Party Belgium
Jump to navigation Jump to search
No edit summary
No edit summary
 
(63 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#vardefine: time | {{TimeRegex | {{{time|}}} }} }}{| style="width: 300px; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 0.5em; padding: 0.2em; float: right; position:relative; text-align:left;"
<includeonly>{{#set:Title Icon=Toicon-icon-avocado-discuss.svg}}{{#vardefine: time | {{TimeRegex | {{{time|}}} }} }}{{#vardefine: endtime | {{TimeRegex | {{{endtime|}}} }} }}{| class="pirate-sidebar meeting-event"
! style="text-align: center; background-color: #692D89; color:white;padding:0.3em; font-size:medium;" colspan="2" |[[Has title::{{{meetingname|Pirate Meeting}}}]]
| style="padding:0" colspan=2 |
{| cellspacing=0 style="width:100%;"
! class="title" | {{{meetingname|Meeting}}}
| class="icon" | [[File:Toicon-icon-avocado-discuss.svg|x24px|link=Special:MyLanguage/Calendar/Meeting]]
|}
|-
|-
! style="vertical-align: top;" | {{#switch: {{{lang|}}}  
{{#if: {{{image|}}} |
  | fr = Équipe
{{!}} colspan=2 {{!}} [[File:{{{image}}}|frameless|150px|center]]
  | nl = Werkgroep
{{!}}- }}
  | Workgroup
{{#if: {{{workgroup|}}} |
  }}
! {{int:sidebar-workgroup}}
| {{#if: {{{workgroup|}}} | [[Organized by::{{{workgroup}}}]] | ? }}
{{!}} {{#arraymap:{{{workgroup}}}|,|x|[[x|{{ShowTitle|x}}]]|<br />}}
|-
{{!}}- }}
! style="vertical-align: top;" | {{#switch: {{{lang|}}}  
! {{int:sidebar-date}}
   | fr = Date
| {{#if: {{{date|}}}  
  | nl = Datum
   | {{#time:D j F Y|{{{date}}}|{{int:language-code}} }}{{#vardefine: next
  | Date
    | {{NextEventLink
  }}
      | workgroup = {{{workgroup|}}}
| {{#if: {{{date|}}} | [[Has date::{{#time:Y/m/d H:i|{{{date}}} {{#var: time}} }}|{{#time:D j F Y|{{{date}}}|{{{lang|en}}} }}]] | ? }}  
      | topics = {{{topics|}}}
      | type = Meeting
      | date = {{{date}}}  
      | time = {{#var:time}}
      }}
    }}{{#vardefine: prev
    | {{PrevEventLink
      | workgroup = {{{workgroup|}}}
      | topics = {{{topics|}}}
      | type = Meeting
      | date = {{{date}}}
      | time = {{#var:time}}
      }}
    }}
  | ?  
  }}  
|-
|-
! style="vertical-align: top;" | {{#switch: {{{lang|}}}  
! {{int:sidebar-time}}
   | fr = Heure
| {{#if: {{{time|}}}  
  | nl = Uur
   | {{#time:{{int:sidebar-time-format}}|{{#var:time}} }} {{#if: {{{endtime|}}} | - {{#time:{{int:sidebar-time-format}}|{{#var:endtime}} }} }}
   | Time
   | ?
   }}
   }}
| {{#if: {{{time|}}} | [[Has time::{{#time:H:i|{{#var: time}} }}|{{#time:{{#switch: {{{lang|}}} | fr = H\hi | nl = H\ui | g:ia }}| {{#var:time}} }}]] | ? }}
|-
|-
{{#if: {{{venue|}}} |  
{{#if: {{{venue|}}} |  
! style="vertical-align: top;" {{!}} {{#switch: {{{lang|}}}
! {{int:sidebar-venue}}
  | fr = Lieu
{{!}} {{#if: {{{linkvenue|}}} | [{{{linkvenue}}} {{{venue}}}] | {{{venue}}} }}
  | nl = Locatie
  | Venue
  }}
{{!}} {{#set: In venue={{{venue}}}|Has link venue={{{linkvenue|}}} }}{{#if: {{{linkvenue|}}} | [{{{linkvenue}}} {{{venue}}}] | {{{venue}}} }}
{{!}}- }}
{{!}}- }}
! style="vertical-align: top;" | {{#switch: {{{lang|}}}  
{{#switch: {{lc:{{{venue|}}}}} | internet = | online =
  | fr = Adresse
| #default =
  | nl = Adres
! {{{lc:venue|}}} {{int:sidebar-address}}
  | Address
{{!}} rowspan=2 style="padding:0" {{!}}
  }}
{{{!}} cellspacing="0" style="width:100%;"  
| rowspan=2 style="padding:0px" |
{{!}} {{#if: {{{address|}}} | {{{address}}} | ? }}
{| cellspacing="0" style="width:100%;"  
{{!}}-
| {{#if: {{{address|}}} | [[Has address::{{{address}}}]] | ? }}
{{!}} {{{postalcode|}}} {{#if: {{{city|}}} | {{{city}}} | ? }}
|-
{{!}}}
| [[In postal code::{{{postalcode|}}}]] {{#if: {{{city|}}} | [[In city::{{{city}}}]] | ? }}
{{!}}-
|}
! {{int:sidebar-city}}
|-
{{!}}- }}  
! style="vertical-align: top;" | {{#switch: {{{lang|}}}  
  | fr = Ville
  | nl = Stad
  | City
  }}
|-
{{#if: {{{attendees|}}} |
{{#if: {{{attendees|}}} |
! style="vertical-align: top;" {{!}} {{#switch: {{{lang|}}}
! {{int:sidebar-attendees}}
  | fr = Participants
{{!}} {{{attendees}}}
  | nl = Aanwezigen
  | Attendees
  }}
{{!}} {{#arraymap: {{{attendees}}}|,|x|{{#set:Has attendee=x}}x}}
{{!}}- }}  
{{!}}- }}  
{{#if: {{{absentees|}}} |
{{#if: {{{absentees|}}} |
! style="vertical-align: top;" {{!}} {{#switch: {{{lang|}}}
! {{int:sidebar-absentees}}
  | fr = Excusés
{{!}} {{{absentees}}}
  | nl = Afwezingen
  | Absentees
  }}
{{!}} {{#arraymap: {{{absentees}}}|,|x|{{#set:Has absentee=x}}x}}
{{!}}- }}
{{!}}- }}
| colspan=2 |
{{#if: {{#var:prev|}}{{#var:next|}}
{| style="width:100%; text-align:center;"
|
| style="width:50%" | {{#if: {{{date|}}}
{{!}} colspan=2 {{!}}
  | {{#vardefine: prev  
{{{!}} style="width:100%; text-align:center;"
    | {{#ask: [[Category:Meeting]] [[Organized by::{{{workgroup|}}}]] [[Has date::<<{{#time:Y/m/d H:i|{{{date}}} {{#var:time}} }}]]
{{!}} style="width:50%" {{!}} {{#if: {{#var:prev|}}
      | limit=1
  | [[File:Toicon-icon-afiado-rewind.svg|x24px|link={{#var: prev}}|{{int:sidebar-previous-meeting}}]]
      | searchlabel=
      | link = none
      | headers = hide
      | sort = Has date
      | order = desc
      }}
    }}{{#if: {{#var:prev|}}  
    | [[{{#var: prev}} | {{#switch: {{{lang|}}}
      | fr = Réunion précédente
      | nl = Previous meeting
      | Previous meeting  
      }}]]  
    }}
   }}
   }}
| style="width:50%" | {{#if: {{{date|}}}  
{{!}} style="width:50%" {{!}} {{#if: {{#var:next|}}  
  | {{#vardefine: next
  | [[File:Toicon-icon-afiado-forward.svg|x24px|link={{#var: next}}|{{int:sidebar-next-meeting}}]]  
    | {{#ask: [[Category:Meeting]] [[Organized by::{{{workgroup|}}}]] [[Has date::>>{{#time:Y/m/d H:i|{{{date}}} {{#var:time}} }}]]
      | limit=1
      | searchlabel=
      | link = none
      | headers = hide
      | sort = Has date
      | order = asc
      }}
    }}{{#if: {{#var:next|}}  
    | [[{{#var: next}} | {{#switch: {{{lang|}}}
      | fr = Réunion suivante
      | nl = Next meeting
      | Next meeting
      }}]]  
    }}
   }}
   }}
|}
{{!}}}
|-
{{!}}- }}
{{#if: {{{topics|}}} |
! {{int:sidebar-topics}}
{{!}} {{#arraymap:{{{topics}}}|,|x|[[x|{{ShowTitle|x}}]]|<br />}}
{{!}}- }}
{{#if: {{{city|}}}  
{{#if: {{{city|}}}  
| {{#vardefine: coords  
| {{#vardefine: coords  
Line 113: Line 89:
     }}  
     }}  
   }}{{#if: {{#var: coords}}  
   }}{{#if: {{#var: coords}}  
   | {{!}} colspan=2 {{!}} {{#display_map: {{#var: coords}} | height = 225px }} [[Has coordinates::{{#var:coords}}| ]]
   | {{!}} colspan="2" {{!}} {{#display_map: {{#var: coords}} | height = 225px | enablefullscreen = yes | scrollwheelzoom = no }}
{{!}}-
{{!}} colspan="2" style="text-align:center;" {{!}} {{#vardefine: coords_float
  | {{#geocode:{{#var:coords}}|format=float|directional=no}}
  }} ''[http://openstreetmap.org/directions?route=;{{#arraymap:{{#var:coords_float}}|,|x|x|,}}#map=17/{{#arraymap:{{#var:coords_float}}|,|x|x|/}} {{int:event-find-routes}}]''
   {{!}}- }}  
   {{!}}- }}  
}}
}}
{{#if: {{{date|}}} |  
{{#if: {{{date|}}} |  
! style="vertical-align: top;" {{!}} {{#switch: {{{lang|}}} | fr = Exporter | Export }}  
! {{int:sidebar-export}}
{{!}} style="text-align:center;" {{!}} {{#show: {{FULLPAGENAME}}  
{{!}} style="text-align:center;" {{!}} {{ExportEvent|{{FULLPAGENAME}}|workgroup={{{workgroup|}}}|date={{{date|}}} }}
   | ?Has title=title
{{!}}- }}
  | ?Has title=summary
| colspan="2" style="text-align: center;" | '''{{#formlink:form=Meeting event|preload={{FULLPAGENAME}}|link text={{int:sidebar-clone-meeting}} }}'''
  | ?Has date=start
|}{{#switch: {{SUBPAGENAME}}
  | ?Has date=end
| fr = | nl = | en = | de =
  | ?Has location=location
| {{#ifeq: {{{noproperties|}}} | true
  | ?Has url=description
  |
  | ?Has url=url
   | {{#set:
  | format=icalendar
    | Has title={{#ifeq: {{{meetingname|Meeting}}} | Meeting
  | title={{#if: {{{workgroup|}}}  
      | Meeting {{#if: {{{workgroup|}}} | ({{{workgroup}}}) }}
    | {{{workgroup}}} - {{#time:d m Y|{{{date|}}} }}
      | {{{meetingname|}}}
      }}
    | Organized by={{{workgroup|}}}|+sep=,
    | In topic={{{topics|}}}|+sep=,
    | Has date={{#time:Y/m/d H:i|{{{date}}} {{#var: time}} }}
    | Has end date={{#time:Y/m/d H:i|{{{date}}} {{#if: {{#var: endtime}} | {{#var: endtime}} | {{#var: time}} }} }}
    | Has time={{#if: {{#var:time}} | {{#time:H:i|{{#var: time}} }} }}
    | Has end time={{#if: {{#var:endtime}}
      | {{#time:H:i|{{#var: endtime}} }}
      | {{#if: {{#var:time}} | {{#time:H:i|{{#var: time}} }} }}
      }}
    | In venue={{{venue|}}}
    | Has link venue={{{linkvenue|}}}
    | Has address={{{address|}}}
    | In postal code={{{postalcode|}}}
    | In city={{{city|}}}
    | Has attendee={{{attendees|}}}|+sep=,
    | Has absentee={{{absentees|}}}|+sep=,
    | Has url={{fullurl:{{FULLPAGENAME}}}}
    | Has coordinates={{#var:coords}}
    | Has location={{#if: {{{venue|}}}
      | {{{venue}}} {{#if: {{{address|}}}{{{city|}}} | – }}
      }} {{#if: {{{address|}}}
      | {{{address}}}{{#if: {{{city|}}} | , }}
      }} {{{city|}}}
    | Has event type=Meeting
    | Has default form=Meeting event
    | Has page={{FULLPAGENAME}}
     }}
     }}
  | description={{#if: {{{workgroup|}}}
    | {{#switch: {{{lang|}}}
      | fr = Réunion organisée par
      | Meeting organized by
      }} {{{workgroup}}}
    }}
  | searchlabel=iCalendar
   }}
   }}
}}
}} {{#if: {{{nocat|}}}  
|} {{#if: {{{nocat|}}}  
| <!-- no categories -->
| <!-- no categories -->
| [[Category:Event]] [[Category:Pirate Event]] [[Category:Meeting]] {{#default_form:Meeting event}}
| [[Category:Event]] [[Category:Meeting]]  
}}</includeonly><noinclude>{{MeetingSidebar
}} {{#set: Has location={{#if: {{{venue|}}}
  | {{{venue}}} {{#if: {{{address|}}}{{{city|}}} | – }}
  }} {{#if: {{{address|}}}
  | {{{address}}}{{#if: {{{city|}}} | , }}
  }} {{{city|}}}
}} [[Has url::{{fullurl:{{FULLPAGENAME}}}}| ]] [[In language::{{{lang|en}}}| ]] [[Has default form::Meeting event| ]] [[Has event type::Meeting| ]] {{#default_form:Meeting event}}</includeonly><noinclude>{{MeetingSidebar
|lang = en
|meetingname = Our awesome meeting
|meetingname = Our awesome meeting
|workgroup = An awesome team
|image = Logo-heart 135px.png
|workgroup = An awesome team, Another team
|topics = Some good topic
|date = 14 nov 2016
|date = 14 nov 2016
|time = 12am
|time = 12am
|endtime = 2am
|venue = Flying Dutchman
|venue = Flying Dutchman
|linkvenue = http://www.the-flying-dutchman.nl/
|linkvenue = http://www.the-flying-dutchman.nl/
Line 160: Line 156:
|attendees = Jack, Mary, Jurgen
|attendees = Jack, Mary, Jurgen
|absentees = Paul, Eve
|absentees = Paul, Eve
|agenda = #Agenda
|minutes = #Minutes
|nocat = true
|nocat = true
}}
}}
Line 167: Line 161:
  <nowiki>
  <nowiki>
{{MeetingSidebar
{{MeetingSidebar
|lang = en
|meetingname = Our awesome meeting
|meetingname = Our awesome meeting
|workgroup = An awesome team
|image = Logo-heart 135px.png
|workgroup = An awesome team, Another team
|topics = Some good topic
|date = 14 nov 2016
|date = 14 nov 2016
|time = 12am
|time = 12am
|endtime = 2am
|venue = Flying Dutchman
|venue = Flying Dutchman
|linkvenue = http://www.the-flying-dutchman.nl/
|linkvenue = http://www.the-flying-dutchman.nl/
Line 179: Line 175:
|attendees = Jack, Mary, Jurgen
|attendees = Jack, Mary, Jurgen
|absentees = Paul, Eve
|absentees = Paul, Eve
|agenda = #Agenda
|minutes = #Minutes
}}</nowiki></noinclude>
}}</nowiki></noinclude>

Latest revision as of 18:47, 23 March 2020

Our awesome meeting Toicon-icon-avocado-discuss.svg
Logo-heart 135px.png
Workgroup An awesome team
Another team
Date Mon 14 November 2016
Time 12:00am - 2:00am
Venue Flying Dutchman
Address
Treasure Island 666
9000 Atlantica
City
Attendees Jack, Mary, Jurgen
Absentees Paul, Eve
Topics Some good topic
Loading map...
Find routes on OpenStreetMap
Export iCalendar
Clone this meeting

Usage

{{MeetingSidebar
|meetingname = Our awesome meeting
|image = Logo-heart 135px.png
|workgroup = An awesome team, Another team
|topics = Some good topic
|date = 14 nov 2016
|time = 12am
|endtime = 2am
|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
}}