Template:Event: Difference between revisions

From Pirate Party Belgium
Jump to navigation Jump to search
No edit summary
No edit summary
 
(25 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#vardefine: date
<includeonly>{{#vardefine: date
| {{#if: {{{date|}}}  
| {{#if: {{{date|}}}  
   | {{#time:D j F Y
   | {{#time:D j F Y|{{{date}}}|{{int:language-code}} }}
    |{{{date}}}
    |{{int:language-code}}
    }}
   | ?  
   | ?  
   }}{{#if: {{{time|}}}  
   }}{{#if: {{{time|}}}  
   | , {{#time:{{int:sidebar-time-format}}|{{{time}}} }}
   | , {{#time:{{int:sidebar-time-format}}|{{{time}}} }}
   }}
   }}
}}{{#if: {{{page|}}}  
}}{{#if: {{{page|}}}
| {{#if: {{{title|}}}  
| {{#if: {{{title|}}}  
   | '''[[{{{page}}}|{{{title}}}]]'''<br />{{#var: date}}
   | '''[[{{{page}}}|{{{title}}}]]'''<br />{{#var: date}}
Line 15: Line 12:
   }}
   }}
| {{#var: date}}
| {{#var: date}}
}}<br />{{#if: {{{venue|}}}
}}<br />{{#if: {{{location|}}}
| {{#if: {{{linkvenue|}}}
| {{{location}}}
   | {{#ifeq: {{{linkvenue}}} |  
| {{#if: {{{venue|}}}
   | {{#if: {{{linkvenue|}}}
    | [{{{linkvenue|}}} {{{venue|}}}]
     | {{{venue}}}
     | {{{venue}}}
     | [{{{linkvenue|}}} {{{venue|}}}]
     }} {{#if: {{{address|}}} | – {{{address}}} }}
  | {{#if: {{{address|}}} | {{{address}}} | ? }}
  }}{{#switch: {{lc:{{{venue|}}}}} | internet = | online =
  | #default = <br />{{#if: {{{postalcode|}}}
    | {{{postalcode}}} {{#if: {{{city|}}} | {{{city}}} | ? }}
    | {{#if: {{{city|}}} | {{{city}}} | ? }}
    }}
  }}
}}{{#ifeq: {{{nomap|}}} | true
|
| {{#vardefine: coords
  | {{Coordinates
    |address={{{address|}}}
    |venue={{{venue|}}}
    |city={{{city|}}}
     }}
     }}
   | {{{venue}}}
   }}{{#display_map: {{#var: coords}} | height=225px | width=300px | enablefullscreen = yes | scrollwheelzoom = no }}
  }} {{#if: {{{address|}}} | – {{{address}}} }}
| {{#if: {{{address|}}} | {{{address}}} | ? }}
}}<br />{{#if: {{{postalcode|}}}
| {{{postalcode}}} {{#if: {{{city|}}} | {{{city}}} | ? }}  
| {{#if: {{{city|}}} | {{{city}}} | ? }}  
}} {{#if: {{{nocat|}}}  
}} {{#if: {{{nocat|}}}  
|  
|  
Line 32: Line 40:
}} {{#if: {{{noproperties|}}}  
}} {{#if: {{{noproperties|}}}  
|  
|  
| {{#set:  
| {{#switch: {{SUBPAGENAME}}
  |Has title={{{title|}}}
| fr = | nl = | en = | de =
  |Has date={{#if: {{{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={{Coordinates
        |
    |address={{{address|}}}
        | {{#time:Y/m/d H:i|{date} {{{time|}}} }}
    |venue={{{venue|}}}
        }}
    |city={{{city|}}}
      |Has end date={{#ifeq: {date} | ?
        |
        | {{#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|}}}
        | {{{venue}}} {{#if: {{{address|}}}{{{city|}}} | – }}
        }} {{#if: {{{address|}}}
        | {{{address}}}{{#if: {{{city|}}} | , }}
        }} {{{city|}}}
      |Has url={{fullurl:{{FULLPAGENAME}}}}
      |Has event type={{{type|}}}
      |Organized by={{{workgroup|}}}|+sep=,
      |Has page={{FULLPAGENAME}}
      }}|
     }}
     }}
   |Has location={{#if: {{{venue|}}}
   }}
    | {{{venue}}} {{#if: {{{address|}}}{{{city|}}} | – }}
    }} {{#if: {{{address|}}}
    | {{{address}}}{{#if: {{{city|}}} | , }}
    }} {{{city|}}}
  |Has url={{fullurl:{{FULLPAGENAME}}}}
  }} {{#arraymap: {{{workgroup|}}}|,|x|{{#set:Organized by=x}}|}}
}}</includeonly>
}}</includeonly>

Latest revision as of 20:11, 23 March 2020