Difference between revisions of "Template:Event"

From Pirate Party Belgium
Jump to: navigation, search
 
(14 intermediate revisions by the same user not shown)
Line 20: Line 20:
 
     }} {{#if: {{{address|}}} | – {{{address}}} }}
 
     }} {{#if: {{{address|}}} | – {{{address}}} }}
 
   | {{#if: {{{address|}}} | {{{address}}} | ? }}
 
   | {{#if: {{{address|}}} | {{{address}}} | ? }}
   }}<br />{{#if: {{{postalcode|}}}  
+
   }}{{#switch: {{lc:{{{venue|}}}}} | internet = | online =
  | {{{postalcode}}} {{#if: {{{city|}}} | {{{city}}} | ? }}  
+
  | #default = <br />{{#if: {{{postalcode|}}}  
  | {{#if: {{{city|}}} | {{{city}}} | ? }}  
+
    | {{{postalcode}}} {{#if: {{{city|}}} | {{{city}}} | ? }}
 +
    | {{#if: {{{city|}}} | {{{city}}} | ? }}
 +
    }}
 
   }}
 
   }}
 
}}{{#ifeq: {{{nomap|}}} | true
 
}}{{#ifeq: {{{nomap|}}} | true
Line 32: Line 34:
 
     |city={{{city|}}}
 
     |city={{{city|}}}
 
     }}
 
     }}
   }}{{#display_map: {{#var: coords}} | height=225px | width=300px}}
+
   }}{{#display_map: {{#var: coords}} | height=225px | width=300px | enablefullscreen = yes | scrollwheelzoom = no }}
 
}} {{#if: {{{nocat|}}}  
 
}} {{#if: {{{nocat|}}}  
 
|  
 
|  
Line 38: Line 40:
 
}} {{#if: {{{noproperties|}}}  
 
}} {{#if: {{{noproperties|}}}  
 
|  
 
|  
| {{#arraymap:{{{date|}}}|,|{date}|{{#subobject: {{#if: {{{date|}}} | {{#time: d m Y|{{{date}}} }} }}  
+
| {{#switch: {{SUBPAGENAME}}
    |Has title={{{title|}}}
+
| fr = | nl = | en = | de =
    |Has date={{#time:Y/m/d H:i|{date} {{{time|}}} }}  
+
| {{#arraymap:{{#if: {{{date|}}} | {{{date}}} | ? }}|,|{date}|{{#subobject:  
    |Has time={{{time|}}}
+
      {{#ifeq: {date} | ?
    |Has address={{{address|}}}
+
      |
    |In venue={{{venue|}}}
+
      | {{#time: d m Y|{date} }}
    |Has link venue={{{linkvenue|}}}
+
      }}
    |In city={{{city|}}}
+
      |Has title={{{title|}}}
    |In postal code={{{postalcode|}}}
+
      |Has date={{#ifeq: {date} | ?
    |Has coordinates={{#if: {{#varexists:coords}}  
+
        |
      | {{#var:coords}}  
+
        | {{#time:Y/m/d H:i|{date} {{{time|}}} }}
      | {{Coordinates
+
        }}
        |address={{{address|}}}
+
      |Has end date={{#ifeq: {date} | ?
        |venue={{{venue|}}}
+
        |
        |city={{{city|}}}
+
        | {{#time:Y/m/d H:i|{date} {{{time|}}} }}  
 +
        }}
 +
      |Has time={{{time|}}}
 +
      |Has end time={{{time|}}}
 +
      |Has address={{{address|}}}
 +
      |In venue={{{venue|}}}
 +
      |Has link venue={{{linkvenue|}}}
 +
      |In city={{{city|}}}
 +
      |In postal code={{{postalcode|}}}
 +
      |Has coordinates={{#if: {{#varexists:coords}}  
 +
        | {{#var:coords}}  
 +
        | {{Coordinates
 +
          |address={{{address|}}}
 +
          |venue={{{venue|}}}
 +
          |city={{{city|}}}
 +
          }}
 
         }}
 
         }}
       }}
+
       |Has location={{#if: {{{venue|}}}  
    |Has location={{#if: {{{venue|}}}  
+
        | {{{venue}}} {{#if: {{{address|}}}{{{city|}}} | – }}  
      | {{{venue}}} {{#if: {{{address|}}}{{{city|}}} | – }}  
+
        }} {{#if: {{{address|}}}
      }} {{#if: {{{address|}}}
+
        | {{{address}}}{{#if: {{{city|}}} | , }}
      | {{{address}}}{{#if: {{{city|}}} | , }}
+
        }} {{{city|}}}
      }} {{{city|}}}
+
      |Has url={{fullurl:{{FULLPAGENAME}}}}
    |Has url={{fullurl:{{FULLPAGENAME}}}}
+
      |Has event type={{{type|}}}
    |Has event type={{{type|}}}
+
      |Organized by={{{workgroup|}}}|+sep=,
    |Organized by={{{workgroup|}}}|+sep=,
+
      |Has page={{FULLPAGENAME}}
     }}|
+
      }}|
 +
     }}
 
   }}
 
   }}
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 20:11, 23 March 2020