Difference between revisions of "Template:PirateDrinkSidebar"

From Pirate Party Belgium
Jump to: navigation, search
m
 
(7 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: {{{city|}}} | ({{{city}}}) }}
 
! class="title" | {{int:event-pirate-drink}} {{#if: {{{city|}}} | ({{{city}}}) }}
| class="icon" | [[File:Toicon-icon-avocado-cheer.svg|x24px|link=Category:PirateDrink]]
+
| 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" |
+
{{!}} rowspan=2 style="padding:0" {{!}}
{| cellspacing="0" style="width:100%;" |
+
{{{!}} cellspacing="0" style="width:100%;" {{!}}
| {{#if: {{{address|}}} | {{{address}}} | ? }}
+
{{!}} {{#if: {{{address|}}} | {{{address}}} | ? }}
|-
+
{{!}}-
| {{{postalcode|}}} {{#if: {{{city|}}} | {{{city}}} | ? }}
+
{{!}} {{{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 | static = 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}
  | Has title={{int:event-pirate-drink}} {{#if: {{{city|}}} | ({{{city}}}) }}  
+
  | {{#set:
  | Organized by={{{crew|}}}
+
    | Has title={{int:event-pirate-drink}} {{#if: {{{city|}}} | ({{{city}}}) }}  
  | Has date={{#time:Y/m/d H:i|{{{date}}} {{#var: time}} }}
+
    | Organized by={{{crew|}}}
  | Has time={{#if: {{#var:time}} | {{#time:H:i|{{#var: time}} }} }}
+
    | Has date={{#time:Y/m/d H:i|{date} {{#var: time}} }}
  | In venue={{{venue|}}}
+
    | Has end date={{#time:Y/m/d H:i|{date} {{#if: {{#var: endtime}} | {{#var: endtime}} | {{#var: time}} }} }}
  | Has link venue={{{linkvenue|}}}
+
    | Has time={{#if: {{#var:time}} | {{#time:H:i|{{#var: time}} }} }}
  | Has address={{{address|}}}
+
    | Has end time={{#if: {{#var:endtime}}
  | In postal code={{{postalcode|}}}
+
      | {{#time:H:i|{{#var: endtime}} }}
  | In city={{{city|}}}
+
      | {{#if: {{#var: time}} | {{#time:H:i|{{#var: time}} }} }}
  | Has url={{fullurl:{{FULLPAGENAME}}}}
+
      }}
  | Has coordinates={{#var:coords}}
+
    | In venue={{{venue|}}}
  | Has location={{#if: {{{venue|}}}  
+
    | Has link venue={{{linkvenue|}}}
    | {{{venue}}} {{#if: {{{address|}}}{{{city|}}} | – }}  
+
    | Has address={{{address|}}}
    }} {{#if: {{{address|}}}
+
    | In postal code={{{postalcode|}}}
    | {{{address}}}{{#if: {{{city|}}} | , }}
+
    | In city={{{city|}}}
    }} {{{city|}}}
+
    | Has url={{fullurl:{{FULLPAGENAME}}}}
  | Has event type=PirateDrink
+
    | Has coordinates={{#var:coords}}
  | Has default form=PirateDrink event
+
    | Has location={{#if: {{{venue|}}}  
  | Has page={{FULLPAGENAME}}
+
      | {{{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

Pirate Drink (Atlantica) Toicon-icon-avocado-cheer.svg
Logo-heart 135px.png
Crew An awesome crew
Date Sat 4 November 2017
Time 12:00am - 2:00am
Venue Flying Dutchman
Address
Treasure Island 666
9000 Atlantica
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
}}