Template:MeetingSidebar: Difference between revisions

From Pirate Party Belgium
Jump to navigation Jump to search
mNo edit summary
(use css class pirate-sidebar + topics support)
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>{{#vardefine: time | {{TimeRegex | {{{time|}}} }} }}{| class="pirate-sidebar"
! style="text-align: center; background-color: #692D89; color:white;padding:0.3em; font-size:medium;" colspan="2" | {{{meetingname|Meeting}}}
| style="padding:0" colspan=2 |
{| cellspacing=0 style="width:100%;"
! class="title" | {{{meetingname|Meeting}}}
| class="icon" | [[File:Community Noun project 2280.svg|x25px|link=Category:Meeting]]
|}
|-
|-
! style="vertical-align: top;" | {{int:sidebar-workgroup}}
{{#if: {{{workgroup|}}} |
| {{#if: {{{workgroup|}}} | {{#arraymap:{{{workgroup}}}|,|x|[[x]]|<br />}} | ? }}
! {{int:sidebar-workgroup}}
|-
{{!}} {{#arraymap:{{{workgroup}}}|,|x|[[x|{{ShowTitle|x}}]]|<br />}}
! style="vertical-align: top;" | {{int:sidebar-date}}
{{!}}- }}
! {{int:sidebar-date}}
| {{#if: {{{date|}}}  
| {{#if: {{{date|}}}  
   | {{#time:D j F Y|{{{date}}}|{{int:language-code}} }}{{#vardefine: next  
   | {{#time:D j F Y|{{{date}}}|{{int:language-code}} }}{{#vardefine: next  
Line 37: Line 42:
   }}  
   }}  
|-
|-
! style="vertical-align: top;" | {{int:sidebar-time}}
! {{int:sidebar-time}}
| {{#if: {{{time|}}} | {{#time:{{int:sidebar-time-format}}|{{#var:time}} }} | ? }}
| {{#if: {{{time|}}} | {{#time:{{int:sidebar-time-format}}|{{#var:time}} }} | ? }}
|-
|-
{{#if: {{{venue|}}} |  
{{#if: {{{venue|}}} |  
! style="vertical-align: top;" {{!}} {{int:sidebar-venue}}
! {{int:sidebar-venue}}
{{!}} {{#if: {{{linkvenue|}}} | [{{{linkvenue}}} {{{venue}}}] | {{{venue}}} }}
{{!}} {{#if: {{{linkvenue|}}} | [{{{linkvenue}}} {{{venue}}}] | {{{venue}}} }}
{{!}}- }}
{{!}}- }}
{{#ifeq: {{{venue|}}} | Internet  
{{#ifeq: {{{venue|}}} | Internet  
|
|
|
|
! {{int:sidebar-address}}
! style="vertical-align: top;" {{!}} {{int:sidebar-address}}
{{!}} rowspan=2 style="padding:0" {{!}}
{{!}} rowspan=2 style="padding:0px" {{!}}
{{{!}} cellspacing="0" style="width:100%;"  
{{{!}} cellspacing="0" style="width:100%;"  
{{!}} {{#if: {{{address|}}} | {{{address}}} | ? }}
{{!}} {{#if: {{{address|}}} | {{{address}}} | ? }}
Line 55: Line 60:
{{!}}}
{{!}}}
{{!}}-
{{!}}-
! style="vertical-align: top;" {{!}} {{int:sidebar-city}}
! {{int:sidebar-city}}
{{!}}- }}  
{{!}}- }}  
{{#if: {{{attendees|}}} |
{{#if: {{{attendees|}}} |
! style="vertical-align: top;" {{!}} {{int:sidebar-attendees}}
! {{int:sidebar-attendees}}
{{!}} {{{attendees}}}
{{!}} {{{attendees}}}
{{!}}- }}  
{{!}}- }}  
{{#if: {{{absentees|}}} |
{{#if: {{{absentees|}}} |
! style="vertical-align: top;" {{!}} {{int:sidebar-absentees}}
! {{int:sidebar-absentees}}
{{!}} {{{absentees}}}
{{!}} {{{absentees}}}
{{!}}- }}
{{!}}- }}
Line 76: Line 81:
   }}
   }}
{{!}}}
{{!}}}
{{!}}- }}
{{#if: {{{topics|}}} |
! Topics
{{!}} {{#arraymap:{{{topics}}}|,|x|[[x|{{ShowTitle|x}}]]|<br />}}
{{!}}- }}
{{!}}- }}
{{#if: {{{city|}}}  
{{#if: {{{city|}}}  
Line 93: Line 102:
}}
}}
{{#if: {{{date|}}} |  
{{#if: {{{date|}}} |  
! style="vertical-align: top;" {{!}} {{int:sidebar-export}}
! {{int:sidebar-export}}
{{!}} style="text-align:center;" {{!}} {{ExportEvent|{{FULLPAGENAME}}|workgroup={{{workgroup|}}}|date={{{date|}}} }}
{{!}} 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}} }}
| colspan="2" style="text-align: center;" | '''{{#formlink:form=Meeting event|preload={{FULLPAGENAME}}|link text={{int:sidebar-clone-meeting}} }}'''
|}{{#switch: {{SUBPAGENAME}}
|}{{#switch: {{SUBPAGENAME}}
| fr = | nl = | en = | de =
| fr = | nl = | en = | de =
Line 105: Line 114:
     }}
     }}
   | Organized by={{{workgroup|}}}|+sep=,
   | Organized by={{{workgroup|}}}|+sep=,
  | In topic={{{topics|}}}|+sep=,
   | Has date={{#time:Y/m/d H:i|{{{date}}} {{#var: time}} }}
   | Has date={{#time:Y/m/d H:i|{{{date}}} {{#var: time}} }}
   | Has time={{#if: {{#var:time}} | {{#time:H:i|{{#var: time}} }} }}
   | Has time={{#if: {{#var:time}} | {{#time:H:i|{{#var: time}} }} }}
Line 131: Line 141:
|meetingname = Our awesome meeting
|meetingname = Our awesome meeting
|workgroup = An awesome team, Another team
|workgroup = An awesome team, Another team
|topics = Some good topic
|date = 14 nov 2016
|date = 14 nov 2016
|time = 12am
|time = 12am
Line 147: Line 158:
|meetingname = Our awesome meeting
|meetingname = Our awesome meeting
|workgroup = An awesome team, Another team
|workgroup = An awesome team, Another team
|topics = Some good topic
|date = 14 nov 2016
|date = 14 nov 2016
|time = 12am
|time = 12am

Revision as of 10:56, 25 September 2017

Our awesome meeting Community Noun project 2280.svg
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
Topics Some good topic
Loading map...
Find routes on OpenStreetMap
Export iCalendar
Clone this meeting

Usage

{{MeetingSidebar
|meetingname = Our awesome meeting
|workgroup = An awesome team, Another team
|topics = Some good topic
|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
}}