Difference between revisions of "Template:MeetingSidebar"
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{#vardefine: time | {{TimeRegex | {{{time|}}} }} }}{| class="pirate-sidebar" | + | <includeonly>{{#set:Title Icon=Toicon-icon-avocado-discuss.svg}}{{#vardefine: time | {{TimeRegex | {{{time|}}} }} }}{{#vardefine: endtime | {{TimeRegex | {{{endtime|}}} }} }}{| class="pirate-sidebar meeting-event" |
| style="padding:0" colspan=2 | | | style="padding:0" colspan=2 | | ||
{| cellspacing=0 style="width:100%;" | {| cellspacing=0 style="width:100%;" | ||
! class="title" | {{{meetingname|Meeting}}} | ! class="title" | {{{meetingname|Meeting}}} | ||
− | | class="icon" | [[File: | + | | class="icon" | [[File:Toicon-icon-avocado-discuss.svg|x24px|link=Special:MyLanguage/Calendar/Meeting]] |
|} | |} | ||
|- | |- | ||
+ | {{#if: {{{image|}}} | | ||
+ | {{!}} colspan=2 {{!}} [[File:{{{image}}}|frameless|150px|center]] | ||
+ | {{!}}- }} | ||
{{#if: {{{workgroup|}}} | | {{#if: {{{workgroup|}}} | | ||
! {{int:sidebar-workgroup}} | ! {{int:sidebar-workgroup}} | ||
Line 17: | Line 20: | ||
| topics = {{{topics|}}} | | topics = {{{topics|}}} | ||
| type = Meeting | | type = Meeting | ||
− | | date = {{{date}}} {{#var:time}} | + | | date = {{{date}}} |
+ | | time = {{#var:time}} | ||
}} | }} | ||
}}{{#vardefine: prev | }}{{#vardefine: prev | ||
Line 24: | Line 28: | ||
| topics = {{{topics|}}} | | topics = {{{topics|}}} | ||
| type = Meeting | | type = Meeting | ||
− | | date = {{{date}}} {{#var:time}} | + | | date = {{{date}}} |
+ | | time = {{#var:time}} | ||
}} | }} | ||
}} | }} | ||
Line 31: | Line 36: | ||
|- | |- | ||
! {{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: {{{endtime|}}} | - {{#time:{{int:sidebar-time-format}}|{{#var:endtime}} }} }} | ||
+ | | ? | ||
+ | }} | ||
|- | |- | ||
{{#if: {{{venue|}}} | | {{#if: {{{venue|}}} | | ||
Line 37: | Line 45: | ||
{{!}} {{#if: {{{linkvenue|}}} | [{{{linkvenue}}} {{{venue}}}] | {{{venue}}} }} | {{!}} {{#if: {{{linkvenue|}}} | [{{{linkvenue}}} {{{venue}}}] | {{{venue}}} }} | ||
{{!}}- }} | {{!}}- }} | ||
− | {{# | + | {{#switch: {{lc:{{{venue|}}}}} | internet = | online = |
− | | | + | | #default = |
− | | | + | ! {{{lc:venue|}}} {{int:sidebar-address}} |
− | ! {{int:sidebar-address}} | ||
{{!}} rowspan=2 style="padding:0" {{!}} | {{!}} rowspan=2 style="padding:0" {{!}} | ||
{{{!}} cellspacing="0" style="width:100%;" | {{{!}} cellspacing="0" style="width:100%;" | ||
Line 63: | Line 70: | ||
{{{!}} style="width:100%; text-align:center;" | {{{!}} style="width:100%; text-align:center;" | ||
{{!}} style="width:50%" {{!}} {{#if: {{#var:prev|}} | {{!}} style="width:50%" {{!}} {{#if: {{#var:prev|}} | ||
− | | [[{{#var: prev}} | {{int:sidebar-previous-meeting}}]] | + | | [[File:Toicon-icon-afiado-rewind.svg|x24px|link={{#var: prev}}|{{int:sidebar-previous-meeting}}]] |
}} | }} | ||
{{!}} style="width:50%" {{!}} {{#if: {{#var:next|}} | {{!}} style="width:50%" {{!}} {{#if: {{#var:next|}} | ||
− | | [[{{#var: next}} | {{int:sidebar-next-meeting}}]] | + | | [[File:Toicon-icon-afiado-forward.svg|x24px|link={{#var: next}}|{{int:sidebar-next-meeting}}]] |
}} | }} | ||
{{!}}} | {{!}}} | ||
{{!}}- }} | {{!}}- }} | ||
{{#if: {{{topics|}}} | | {{#if: {{{topics|}}} | | ||
− | ! | + | ! {{int:sidebar-topics}} |
{{!}} {{#arraymap:{{{topics}}}|,|x|[[x|{{ShowTitle|x}}]]|<br />}} | {{!}} {{#arraymap:{{{topics}}}|,|x|[[x|{{ShowTitle|x}}]]|<br />}} | ||
{{!}}- }} | {{!}}- }} | ||
Line 82: | Line 89: | ||
}} | }} | ||
}}{{#if: {{#var: coords}} | }}{{#if: {{#var: coords}} | ||
− | | {{!}} colspan="2" {{!}} {{#display_map: {{#var: coords}} | height = 225px | enablefullscreen = yes | | + | | {{!}} colspan="2" {{!}} {{#display_map: {{#var: coords}} | height = 225px | enablefullscreen = yes | scrollwheelzoom = no }} |
{{!}}- | {{!}}- | ||
{{!}} colspan="2" style="text-align:center;" {{!}} {{#vardefine: coords_float | {{!}} colspan="2" style="text-align:center;" {{!}} {{#vardefine: coords_float | ||
Line 96: | Line 103: | ||
|}{{#switch: {{SUBPAGENAME}} | |}{{#switch: {{SUBPAGENAME}} | ||
| fr = | nl = | en = | de = | | fr = | nl = | en = | de = | ||
− | | {{#set: | + | | {{#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}} | ||
}} | }} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
}} {{#if: {{{nocat|}}} | }} {{#if: {{{nocat|}}} | ||
| <!-- no categories --> | | <!-- no categories --> | ||
− | | [[Category:Event]] [[Category:Meeting]] {{#default_form:Meeting event}} | + | | [[Category:Event]] [[Category:Pirate Event]] [[Category:Meeting]] {{#default_form:Meeting event}} |
}}</includeonly><noinclude>{{MeetingSidebar | }}</includeonly><noinclude>{{MeetingSidebar | ||
|meetingname = Our awesome meeting | |meetingname = Our awesome meeting | ||
+ | |image = Logo-heart 135px.png | ||
|workgroup = An awesome team, Another team | |workgroup = An awesome team, Another team | ||
|topics = Some good topic | |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 145: | Line 162: | ||
{{MeetingSidebar | {{MeetingSidebar | ||
|meetingname = Our awesome meeting | |meetingname = Our awesome meeting | ||
+ | |image = Logo-heart 135px.png | ||
|workgroup = An awesome team, Another team | |workgroup = An awesome team, Another team | ||
|topics = Some good topic | |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/ |
Latest revision as of 19:47, 23 March 2020
| |||
Workgroup | An awesome team Another team | ||
---|---|---|---|
Date | Mon 14 November 2016 | ||
Time | 12:00am - 2:00am | ||
Venue | Flying Dutchman | ||
Address |
| ||
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 }}