Difference between revisions of "Template:PirateDrinkSidebar"
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{#vardefine: time | {{TimeRegex | {{{time|}}} }} }}{| class="pirate-sidebar piratedrink" | + | <includeonly>{{#set:Title Icon=Toicon-icon-avocado-cheer.svg}}{{#vardefine: time | {{TimeRegex | {{{time|}}} }} }}{{#vardefine: endtime | {{TimeRegex | {{{endtime|}}} }} }}{| class="pirate-sidebar piratedrink" |
| style="padding:0" colspan=2 | | | style="padding:0" colspan=2 | | ||
{| cellspacing=0 style="width:100%;" | {| cellspacing=0 style="width:100%;" | ||
− | ! class="title" | {{int:event-pirate-drink}} {{#if: {{{ | + | ! class="title" | {{int:event-pirate-drink}} {{#if: {{{city|}}} | ({{{city}}}) }} |
− | | class="icon" | [[File:Toicon-icon-avocado-cheer.svg|x24px|link= | + | | class="icon" | [[File:Toicon-icon-avocado-cheer.svg|x24px|link=Special:MyLanguage/Calendar/PirateDrink]] |
|} | |} | ||
|- | |- | ||
Line 34: | Line 34: | ||
|- | |- | ||
! {{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 40: | Line 43: | ||
{{!}} {{#if: {{{linkvenue|}}} | [{{{linkvenue}}} {{{venue}}}] | {{{venue}}} }} | {{!}} {{#if: {{{linkvenue|}}} | [{{{linkvenue}}} {{{venue}}}] | {{{venue}}} }} | ||
{{!}}- }} | {{!}}- }} | ||
+ | {{#switch: {{lc:{{{venue|}}}}} | internet = | online = | ||
+ | | #default = | ||
! {{int:sidebar-address}} | ! {{int:sidebar-address}} | ||
− | + | {{!}} rowspan=2 style="padding:0" {{!}} | |
− | { | + | {{{!}} cellspacing="0" style="width:100%;" {{!}} |
− | + | {{!}} {{#if: {{{address|}}} | {{{address}}} | ? }} | |
− | + | {{!}}- | |
− | + | {{!}} {{{postalcode|}}} {{#if: {{{city|}}} | {{{city}}} | ? }} | |
− | + | {{!}}} | |
− | + | {{!}}- | |
! {{int:sidebar-city}} | ! {{int:sidebar-city}} | ||
− | + | {{!}}- }} | |
{{#if: {{#var:prev|}}{{#var:next|}} | {{#if: {{#var:prev|}}{{#var:next|}} | ||
| | | | ||
Line 70: | Line 75: | ||
}} | }} | ||
}}{{#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 84: | Line 89: | ||
|}{{#switch: {{SUBPAGENAME}} | |}{{#switch: {{SUBPAGENAME}} | ||
| fr = | nl = | en = | de = | | fr = | nl = | en = | de = | ||
− | | {{#set: | + | | {{#arraymap:{{{date|}}}|,|{date} |
− | + | | {{#set: | |
− | + | | Has title={{int:event-pirate-drink}} {{#if: {{{city|}}} | ({{{city}}}) }} | |
− | + | | Organized by={{{crew|}}} | |
− | + | | 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 url={{fullurl:{{FULLPAGENAME}}}} | |
− | + | | Has coordinates={{#var:coords}} | |
− | + | | Has location={{#if: {{{venue|}}} | |
− | + | | {{{venue}}} {{#if: {{{address|}}}{{{city|}}} | – }} | |
+ | }} {{#if: {{{address|}}} | ||
+ | | {{{address}}}{{#if: {{{city|}}} | , }} | ||
+ | }} {{{city|}}} | ||
+ | | Has event type=PirateDrink | ||
+ | | Has default form=PirateDrink event | ||
+ | | Has page={{FULLPAGENAME}} | ||
+ | }} | ||
+ | | | ||
}} | }} | ||
}} {{#if: {{{nocat|}}} | }} {{#if: {{{nocat|}}} | ||
Line 113: | Line 126: | ||
|date = 4 nov 2017 | |date = 4 nov 2017 | ||
|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 127: | Line 141: | ||
|date = 4 nov 2017 | |date = 4 nov 2017 | ||
|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:48, 23 March 2020
| |||
Crew | An awesome crew | ||
---|---|---|---|
Date | Sat 4 November 2017 | ||
Time | 12:00am - 2:00am | ||
Venue | Flying Dutchman | ||
Address |
| ||
City | |||
Loading map...
| |||
Find routes on OpenStreetMap | |||
Export | iCalendar | ||
Clone this event |
Usage
{{PirateDrinkSidebar |image = Logo-heart 135px.png |crew = An awesome crew |date = 4 nov 2017 |time = 12am |endtime = 2am |venue = Flying Dutchman |linkvenue = http://www.the-flying-dutchman.nl/ |address = Treasure Island 666 |postalcode = 9000 |city = Atlantica }}