Difference between revisions of "Template:Event"

From Pirate Party Belgium
Jump to: navigation, search
m
(31 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}}}
 
    |{{{lang|en}}}
 
    }}
 
 
   | ?  
 
   | ?  
 
   }}{{#if: {{{time|}}}  
 
   }}{{#if: {{{time|}}}  
   | , {{#time:
+
   | , {{#time:{{int:sidebar-time-format}}|{{{time}}} }}
      {{#switch: {{{lang|}}}
 
      | fr = H\hi
 
      | nl = H\ui
 
      | g:ia
 
      }}
 
      | {{{time}}}
 
    }}
 
 
   }}
 
   }}
}}{{#if: {{{page|}}}  
+
}}{{#if: {{{page|}}}
 
| {{#if: {{{title|}}}  
 
| {{#if: {{{title|}}}  
 
   | '''[[{{{page}}}|{{{title}}}]]'''<br />{{#var: date}}
 
   | '''[[{{{page}}}|{{{title}}}]]'''<br />{{#var: date}}
 
   | [[{{{page}}}|{{#var:date}}]]
 
   | [[{{{page}}}|{{#var:date}}]]
 
   }}
 
   }}
| {{#if: {{{title|}}} | '''{{{title}}}'''<br /> }}{{#var: date}}
+
| {{#var: date}}
}}<br />{{#if: {{{venue|}}}
+
}}<br />{{#if: {{{location|}}}  
| {{#if: {{{linkvenue|}}}
+
| {{{location}}}
  | [{{{linkvenue}}} {{{venue}}}]
+
| {{#if: {{{venue|}}}
  | {{{venue}}}
+
  | {{#if: {{{linkvenue|}}}
  }} {{#if: {{{address|}}} | – {{{address}}} }}
+
    | [{{{linkvenue|}}} {{{venue|}}}]
| {{#if: {{{address|}}} | {{{address}}} | ? }}
+
    | {{{venue}}}
}}<br />{{#if: {{{postalcode|}}}  
+
    }} {{#if: {{{address|}}} | – {{{address}}} }}
| {{{postalcode}}} {{#if: {{{city|}}} | {{{city}}} | ? }}  
+
  | {{#if: {{{address|}}} | {{{address}}} | ? }}
| {{#if: {{{city|}}} | {{{city}}} | ? }}  
+
  }}<br />{{#if: {{{postalcode|}}}  
 +
  | {{{postalcode}}} {{#if: {{{city|}}}  
 +
    | {{{city}}}  
 +
    | {{#ifeq: {{{venue|}}}{{{address|}}} | Internet | | ? }}  
 +
    }}
 +
  | {{#if: {{{city|}}}  
 +
    | {{{city}}}  
 +
    | {{#ifeq: {{{venue|}}}{{{address|}}} | Internet | | ? }}
 +
    }}
 +
  }}
 +
}}{{#ifeq: {{{nomap|}}} | true
 +
|
 +
| {{#vardefine: coords
 +
  | {{Coordinates
 +
    |address={{{address|}}}
 +
    |venue={{{venue|}}}
 +
    |city={{{city|}}}
 +
    }}
 +
  }}{{#display_map: {{#var: coords}} | height=225px | width=300px | enablefullscreen = yes | scrollwheelzoom = no }}
 
}} {{#if: {{{nocat|}}}  
 
}} {{#if: {{{nocat|}}}  
 
|  
 
|  
Line 36: Line 44:
 
}} {{#if: {{{noproperties|}}}  
 
}} {{#if: {{{noproperties|}}}  
 
|  
 
|  
| {{#set:  
+
| {{#switch: {{SUBPAGENAME}}
  In language={{{lang|en}}}
+
| fr = | nl = | en = | de =  
  |Has title={{{title|}}}
+
| {{#arraymap:{{#if: {{{date|}}} | {{{date}}} | ? }}|,|{date}|{{#subobject:
  |Has date={{#if: {{{date|}}} | {{#time:Y/m/d H:i| {{{date}}} {{{time|}}} }} }}
+
      {{#ifeq: {date} | ?
  |Has time={{{time|}}}
+
      |
  |Has address={{{address|}}}
+
      | {{#time: d m Y|{date} }}
  |In venue={{{venue|}}}
+
      }}
  |Has link venue={{{linkvenue|}}}
+
      |Has title={{{title|}}}
  |In city={{{city|}}}
+
      |Has date={{#ifeq: {date} | ?
  |In postal code={{{postalcode|}}}
+
        |
  |Organized by={{{workgroup|}}}
+
        | {{#time:Y/m/d H:i|{date} {{{time|}}} }}
  |Has coordinates={{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|}}}
 +
        | {{{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|}}}
 
 
   }}
 
   }}
 
}}</includeonly>
 
}}</includeonly>

Revision as of 11:15, 18 April 2018