Difference between revisions of "Template:Event"
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}} |
− | + | | {{#var:coords}} | |
− | + | | {{Coordinates | |
− | + | |address={{{address|}}} | |
+ | |venue={{{venue|}}} | ||
+ | |city={{{city|}}} | ||
+ | }} | ||
}} | }} | ||
|Has location={{#if: {{{venue|}}} | |Has location={{#if: {{{venue|}}} |