Template:ExternalEventSidebar: Difference between revisions

From Pirate Party Belgium
Jump to navigation Jump to search
No edit summary
No edit summary
Line 54: Line 54:
{{!}}- }}
{{!}}- }}
| colspan="2" style="text-align: center;" | {{#formlink:form=External event|preload={{FULLPAGENAME}}|link text={{int:sidebar-clone-event}} }}
| colspan="2" style="text-align: center;" | {{#formlink:form=External event|preload={{FULLPAGENAME}}|link text={{int:sidebar-clone-event}} }}
|}{{#arraymap:{{{date|}}}|,|{date}|{{#subobject:{{#time:d m Y|{date} }}
|}{{#switch: {{SUBPAGENAME}}
  | Has title={{{title|}}}
| fr = | nl = | en = | de =
  | Organized by={{{workgroup|}}}|+sep=,
| {{#arraymap:{{{date|?}}}|,|{date}|{{#subobject:{{#time:d m Y|{date} }}
  | Has date={{#time:Y/m/d H:i|{date} {{#var: time}}}}
    | Has title={{{title|}}}
  | Has time={{#time:H:i|{{#var: time}} }}
    | Organized by={{{workgroup|}}}|+sep=,
  | In venue={{{venue|}}}
    | Has date={{#ifeq: {date} | ?
  | Has link venue={{{linkvenue|}}}
      |
  | Has address={{{address|}}}
      | {{#time:Y/m/d H:i|{date} {{#var: time}}}}  
  | In postal code={{{postalcode|}}}
      }}
  | In city={{{city|}}}
    | Has time={{#time:H:i|{{#var: time}} }}
  | Has price={{#switch: {{lc:{{{price|free}}}}}
    | In venue={{{venue|}}}
    | free = 0
    | Has link venue={{{linkvenue|}}}
    | gratuit = 0
    | Has address={{{address|}}}
    | gratis = 0
    | In postal code={{{postalcode|}}}
    | {{{price}}}
    | In city={{{city|}}}
    }}
    | Has price={{#switch: {{lc:{{{price|free}}}}}
  | Has url={{#if: {{{url|}}}  
      | free = 0
    | {{{url}}}
      | gratuit = 0
    | {{fullurl:{{FULLPAGENAME}}}}
      | gratis = 0
    }}
      | {{{price}}}
  | Has coordinates={{#var:coords}}
      }}
  | Has location={{#if: {{{venue|}}}  
    | Has url={{#if: {{{url|}}}  
    | {{{venue}}} {{#if: {{{address|}}}{{{city|}}} | – }}  
      | {{{url}}}
    }} {{#if: {{{address|}}}
      | {{fullurl:{{FULLPAGENAME}}}}
    | {{{address}}}{{#if: {{{city|}}} | , }}
      }}
    }} {{{city|}}}
    | Has coordinates={{#var:coords}}
  | Has event type=External
    | Has location={{#if: {{{venue|}}}  
  | Has default form=External event
      | {{{venue}}} {{#if: {{{address|}}}{{{city|}}} | – }}  
  | Has page={{FULLPAGENAME}}
      }} {{#if: {{{address|}}}
   }}|
      | {{{address}}}{{#if: {{{city|}}} | , }}
      }} {{{city|}}}
    | Has event type=External
    | Has default form=External event
    | Has page={{FULLPAGENAME}}
    }}|
   }}
}} {{#if: {{{nocat|}}}  
}} {{#if: {{{nocat|}}}  
| <!-- no categories -->
| <!-- no categories -->

Revision as of 23:31, 9 March 2017

An awesome event
Date Mon 14 November 2016
Time 12:00am
Venue Flying Dutchman
Address
Treasure Island 666
9000 Atlantica
City
Price Free
Website [1]
Loading map...
Export iCalendar
Clone this event

Usage

{{ExternalEventSidebar
|title = An awesome event
|workgroup = An awesome crew
|date = 14 nov 2016
|time = 12am
|venue = Flying Dutchman
|linkvenue = http://www.the-flying-dutchman.nl/
|address = Treasure Island 666
|postalcode = 9000
|city = Atlantica
|url = https://pirateparty.be
|price = free
}}