Difference between revisions of "Template:Event"

From Pirate Party Belgium
Jump to: navigation, search
Line 9: Line 9:
 
   | , {{#time:{{int:sidebar-time-format}}|{{{time}}} }}
 
   | , {{#time:{{int:sidebar-time-format}}|{{{time}}} }}
 
   }}
 
   }}
}}{{#if: {{{page|}}}  
+
}}{{#if: {{{nomap|}}}
 +
|
 +
| {{#vardefine: coords
 +
  | {{Coordinates
 +
    |address={{{address|}}}
 +
    |venue={{{venue|}}}
 +
    |city={{{city|}}}
 +
    }}
 +
  }}<div style="float:right">{{#display_map: {{#var: coords}} | height=225px | width=300px}}</div>
 +
}}{{#if: {{{page|}}}
 
| {{#if: {{{title|}}}  
 
| {{#if: {{{title|}}}  
 
   | '''[[{{{page}}}|{{{title}}}]]'''<br />{{#var: date}}
 
   | '''[[{{{page}}}|{{{title}}}]]'''<br />{{#var: date}}
Line 41: Line 50:
 
   |In city={{{city|}}}
 
   |In city={{{city|}}}
 
   |In postal code={{{postalcode|}}}
 
   |In postal code={{{postalcode|}}}
   |Has coordinates={{Coordinates
+
   |Has coordinates={{#if: {{#varexists:coords}}
    |address={{{address|}}}
+
    | {{#var:coords}}
    |venue={{{venue|}}}
+
    | {{Coordinates
    |city={{{city|}}}
+
      |address={{{address|}}}
 +
      |venue={{{venue|}}}
 +
      |city={{{city|}}}
 +
      }}
 
     }}
 
     }}
 
   |Has location={{#if: {{{venue|}}}  
 
   |Has location={{#if: {{{venue|}}}  

Revision as of 11:20, 7 March 2017