Difference between revisions of "Template:MeetingSidebar"

From Pirate Party Belgium
Jump to: navigation, search
(minutes)
 
(165 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#vardefine:NA| {{#ifeq: {{{lang|}}} | fr | Non assigné | {{#ifeq: {{{lang|}}} | nl | | Not assigned }} }} }}
+
<includeonly>{{#set:Title Icon=Toicon-icon-avocado-discuss.svg}}{{#vardefine: time | {{TimeRegex | {{{time|}}} }} }}{{#vardefine: endtime | {{TimeRegex | {{{endtime|}}} }} }}{| class="pirate-sidebar meeting-event"
{{#vardefine:TBD| {{#ifeq: {{{lang|}}} | fr | À définir | {{#ifeq: {{{lang|}}} | nl | | To be defined }} }} }}
+
| style="padding:0" colspan=2 |
{| class="toccolours vatop" cellpadding="1" cellspacing="1" style="float:right; clear:right; width:150px; padding:0px; margin:0px 0px 1em 1em; font-size:85%; text-align:center;"
+
{| cellspacing=0 style="width:100%;"
! colspan=2 bgcolor=#692D89 |<center><font color="white">'''{{{meetingname|Pirate Meeting #X}}}'''</font></center>
+
! class="title" | {{{meetingname|Meeting}}}
 +
| class="icon" | [[File:Toicon-icon-avocado-discuss.svg|x24px|link=Special:MyLanguage/Calendar/Meeting]]
 +
|}
 
|-
 
|-
! colspan=2 bgcolor=gainsboro |<center>'''{{#ifeq: {{{lang|}}} | fr | Groupe de travail | {{#ifeq: {{{lang|}}} | nl | | Workgroup }} }}'''</center>
+
{{#if: {{{image|}}} |
 +
{{!}} colspan=2 {{!}} [[File:{{{image}}}|frameless|150px|center]]
 +
{{!}}- }}
 +
{{#if: {{{workgroup|}}} |
 +
! {{int:sidebar-workgroup}}
 +
{{!}} {{#arraymap:{{{workgroup}}}|,|x|[[x|{{ShowTitle|x}}]]|<br />}}
 +
{{!}}- }}
 +
! {{int:sidebar-date}}
 +
| {{#if: {{{date|}}}
 +
  | {{#time:D j F Y|{{{date}}}|{{int:language-code}} }}{{#vardefine: next
 +
    | {{NextEventLink
 +
      | workgroup = {{{workgroup|}}}
 +
      | topics = {{{topics|}}}
 +
      | type = Meeting
 +
      | date = {{{date}}}
 +
      | time = {{#var:time}}
 +
      }}
 +
    }}{{#vardefine: prev
 +
    | {{PrevEventLink
 +
      | workgroup = {{{workgroup|}}}
 +
      | topics = {{{topics|}}}
 +
      | type = Meeting
 +
      | date = {{{date}}}
 +
      | time = {{#var:time}}
 +
      }}
 +
    }}
 +
  | ?
 +
  }}  
 
|-
 
|-
|{{{workgroup| {{#var:NA}} }}}
+
! {{int:sidebar-time}}
 +
| {{#if: {{{time|}}}
 +
  | {{#time:{{int:sidebar-time-format}}|{{#var:time}} }} {{#if: {{{endtime|}}} | - {{#time:{{int:sidebar-time-format}}|{{#var:endtime}} }} }}
 +
  | ?
 +
  }}
 
|-
 
|-
! colspan=2 bgcolor=gainsboro |<center>'''{{#ifeq: {{{lang|}}} | fr | Date | {{#ifeq: {{{lang|}}} | nl | | Date }} }}'''</center>
+
{{#if: {{{venue|}}} |
|-
+
! {{int:sidebar-venue}}
|{{{date| {{#var:NA}} }}}
+
{{!}} {{#if: {{{linkvenue|}}} | [{{{linkvenue}}} {{{venue}}}] | {{{venue}}} }}
|-
+
{{!}}- }}
! colspan=2 bgcolor=gainsboro |<center>'''Location'''</center>
+
{{#switch: {{lc:{{{venue|}}}}} | internet = | online =
|-
+
| #default =
|{{{place|Not assigned}}}
+
! {{{lc:venue|}}} {{int:sidebar-address}}
|-
+
{{!}} rowspan=2 style="padding:0" {{!}}
|{{{street|}}} {{{number|}}}
+
{{{!}} cellspacing="0" style="width:100%;"
|-
+
{{!}} {{#if: {{{address|}}} | {{{address}}} | ? }}
|{{{postalcode|}}} {{{city|}}}
+
{{!}}-
|-
+
{{!}} {{{postalcode|}}} {{#if: {{{city|}}} | {{{city}}} | ? }}
| colspan=2 bgcolor=gainsboro |<div style="text-align: center;">'''{{#ifeq: {{{lang|}}} | fr | Participants | {{#ifeq: {{{lang|}}} | nl | | Participants }} }}'''</div>
+
{{!}}}
|-  
+
{{!}}-
| {{#arraymap: {{{participants| {{#var:NA}} }}}|,|x|x|<br />}}
+
! {{int:sidebar-city}}
|-  
+
{{!}}- }}
colspan=2 bgcolor=gainsboro |<center>'''{{#ifeq: {{{lang|}}} | fr | Ordre du jour | {{#ifeq: {{{lang|}}} | nl | | Agenda }} }}'''</center>
+
{{#if: {{{attendees|}}} |
|-
+
! {{int:sidebar-attendees}}
| {{{agenda| {{#var:TBD}} }}}
+
{{!}} {{{attendees}}}
|-
+
{{!}}- }}  
!  colspan=2 bgcolor=gainsboro |<center>'''{{#ifeq: {{{lang|}}} | fr | [[{{{minutes|#Compte-rendu}}}|Compte-rendu]] | {{#ifeq: {{{lang|}}} | nl | | [[{{{minutes|#Minutes}}}|Minutes]] }} }}'''</center>
+
{{#if: {{{absentees|}}} |
|}
+
! {{int:sidebar-absentees}}
{{#if: {{{nocat|}}} | |
+
{{!}} {{{absentees}}}
  {{#ifeq: {{{active|}}} | true | [[Category:Active_Projects]] |  
+
{{!}}- }}
    {{#ifeq: {{{archived|}}} | true | [[Category:Archived Project]] |  
+
{{#if: {{#var:prev|}}{{#var:next|}}
      [[Category:Inactive Project]]
+
|
 +
{{!}} colspan=2 {{!}}
 +
{{{!}} style="width:100%; text-align:center;"
 +
{{!}} style="width:50%" {{!}} {{#if: {{#var:prev|}}
 +
  | [[File:Toicon-icon-afiado-rewind.svg|x24px|link={{#var: prev}}|{{int:sidebar-previous-meeting}}]]
 +
  }}
 +
{{!}} style="width:50%" {{!}} {{#if: {{#var:next|}}
 +
  | [[File:Toicon-icon-afiado-forward.svg|x24px|link={{#var: next}}|{{int:sidebar-next-meeting}}]]
 +
  }}
 +
{{!}}}
 +
{{!}}- }}
 +
{{#if: {{{topics|}}} |
 +
! {{int:sidebar-topics}}
 +
{{!}} {{#arraymap:{{{topics}}}|,|x|[[x|{{ShowTitle|x}}]]|<br />}}
 +
{{!}}- }}
 +
{{#if: {{{city|}}}  
 +
| {{#vardefine: coords
 +
  | {{Coordinates
 +
    |venue={{{venue|}}}
 +
    |address={{{address|}}}
 +
    |city={{{city|}}}
 +
    }}
 +
  }}{{#if: {{#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|}}} |
 +
! {{int:sidebar-export}}
 +
{{!}} style="text-align:center;" {{!}} {{ExportEvent|{{FULLPAGENAME}}|workgroup={{{workgroup|}}}|date={{{date|}}} }}
 +
{{!}}- }}
 +
| colspan="2" style="text-align: center;" | '''{{#formlink:form=Meeting event|preload={{FULLPAGENAME}}|link text={{int:sidebar-clone-meeting}} }}'''
 +
|}{{#switch: {{SUBPAGENAME}}
 +
| fr = | nl = | en = | de =
 +
| {{#ifeq: {{{noproperties|}}} | true
 +
  |  
 +
  | {{#set:
 +
    | Has title={{#ifeq: {{{meetingname|Meeting}}} | Meeting
 +
      | Meeting {{#if: {{{workgroup|}}} | ({{{workgroup}}}) }}
 +
      | {{{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}}
 
     }}
 
     }}
 
   }}
 
   }}
  [[Category:Project]]
+
}} {{#if: {{{nocat|}}}
 +
|  <!-- no categories -->
 +
| [[Category:Event]] [[Category:Pirate Event]] [[Category:Meeting]] {{#default_form:Meeting event}}
 
}}</includeonly><noinclude>{{MeetingSidebar
 
}}</includeonly><noinclude>{{MeetingSidebar
|lang = en
 
 
|meetingname = Our awesome meeting
 
|meetingname = Our awesome meeting
|workgroup = An awesome team
+
|image = Logo-heart 135px.png
|date = 01/01/1970 at 12:00am
+
|workgroup = An awesome team, Another team
|place = Flying Dutchman
+
|topics = Some good topic
|street = Treasure Island
+
|date = 14 nov 2016
|number = 666
+
|time = 12am
 +
|endtime = 2am
 +
|venue = Flying Dutchman
 +
|linkvenue = http://www.the-flying-dutchman.nl/
 +
|address = Treasure Island 666
 
|postalcode = 9000
 
|postalcode = 9000
 
|city = Atlantica
 
|city = Atlantica
|participants = Jack, Mary, Jurgen
+
|attendees = Jack, Mary, Jurgen
|agenda = To take on the world !
+
|absentees = Paul, Eve
|minutes = #Minutes
 
 
|nocat = true
 
|nocat = true
 
}}
 
}}
 
 
== Usage ==
 
== Usage ==
 
  <nowiki>
 
  <nowiki>
 
{{MeetingSidebar
 
{{MeetingSidebar
|lang = en
 
 
|meetingname = Our awesome meeting
 
|meetingname = Our awesome meeting
|workgroup = An awesome team
+
|image = Logo-heart 135px.png
|date = 01/01/1970 at 12:00am
+
|workgroup = An awesome team, Another team
|place = Flying Dutchman
+
|topics = Some good topic
|street = Treasure Island
+
|date = 14 nov 2016
|number = 666
+
|time = 12am
 +
|endtime = 2am
 +
|venue = Flying Dutchman
 +
|linkvenue = http://www.the-flying-dutchman.nl/
 +
|address = Treasure Island 666
 
|postalcode = 9000
 
|postalcode = 9000
 
|city = Atlantica
 
|city = Atlantica
|participants = Jack, Mary, Jurgen
+
|attendees = Jack, Mary, Jurgen
|agenda = To take on the world !
+
|absentees = Paul, Eve
|minutes = [[#Minutes|Minutes]]
 
 
}}</nowiki></noinclude>
 
}}</nowiki></noinclude>

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