Template:Location
From syn2cat - HackerSpace.lu
(Difference between revisions)
m |
m |
||
(30 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
− | This is the 'Location' template. | + | This is the 'Location' template.<br/> |
− | + | Please dont't use it directly. Use the [[Form:Location|form]] instead. | |
− | + | ||
− | + | ||
− | | | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
{| class="wikitable" | {| class="wikitable" | ||
! Address | ! Address | ||
− | |{{Address|[[Has address::{{{address|}}}]]|[[Has city::{{{city|}}}]]|[[Has country::{{{country|}}}]]}} ( | + | | colspan="2" |{{Address|[[Has address::{{{address|}}}]]|[[Has city::{{{city|}}}]]|[[Has country::{{{country|}}}]]}}({{#geocode:{{{address|}}} {{{city|}}} {{{country|}}} }}) |
+ | ! Picture | ||
|- | |- | ||
! Map display | ! Map display | ||
− | | | + | | colspan="2" | |
− | + | {{#display_point: | |
− | #if | + | {{#if: {{{coordinates|}}} | {{{coordinates}}} | {{{address|}}} {{{city|}}} {{{country|}}} }} |
− | + | |zoom=12 | |
− | + | ||
− | + | ||
− | + | ||
− | {{{address|}}} {{{city|}}} {{{country|}}} | + | |
− | |zoom= | + | |
|width=800 | |width=800 | ||
|height=500 | |height=500 | ||
|type=hybrid | |type=hybrid | ||
}} | }} | ||
+ | | {{#if: {{{picture|}}} | [[File:{{{picture}}}|400px]] }} | ||
|- | |- | ||
− | ! Events | + | ! Website |
+ | | colspan="2" | [[Url::{{{website|}}}]] | ||
+ | |- | ||
+ | ! PhoneNumber | ||
+ | | [[Has phonenumber::{{{phonenumber|}}}]] | ||
+ | ! Email | ||
+ | | {{#replace:{{{email|}}}|@|<nowiki> </nowiki>_theAtSign_<nowiki> </nowiki>}} | ||
+ | |- | ||
+ | ! Events upcoming at this location | ||
| | | | ||
− | {{ | + | {{#ask: |
− | # | + | [[Category:Event]] [[Has location::{{PAGENAME}}]] |
+ | [[EndDate::>{{#timel: Y-m-d }} 00:00]] | ||
| format=list | | format=list | ||
− | | sort=Has | + | | sort=EndDate |
+ | | order=desc | ||
+ | | limit=23 | ||
+ | | searchlabel=More... | ||
+ | | default=None | ||
+ | }} | ||
+ | ! '''[[Template:Location#QrCode|QrCode]]''': || {{#qrcode:}} | ||
+ | |- | ||
+ | ! Events held at this location | ||
+ | | colspan="3" | | ||
+ | {{#ask: | ||
+ | [[Category:Event]] [[Has location::{{PAGENAME}}]] | ||
+ | [[EndDate::<{{#timel: Y-m-d }}]] | ||
+ | | format=list | ||
+ | | sort=EndDate | ||
| order=desc | | order=desc | ||
| limit=42 | | limit=42 | ||
| searchlabel=More... | | searchlabel=More... | ||
+ | | default=None | ||
}} | }} | ||
+ | |- | ||
+ | ! Type of location | ||
+ | | [[Has typeOfLocation::{{{type|}}}]] | ||
+ | ! Manual coordinates | ||
+ | | {{{coordinates|}}} | ||
|} | |} | ||
[[Category:Location]] | [[Category:Location]] | ||
+ | {{#set: | ||
+ | Has coordinates={{#if: {{{coordinates|}}} | {{{coordinates}}} | {{#geocode:{{{address}}} {{{city}}} {{{country}}} }} }} | ||
+ | | Has picture={{#if: {{{picture|}}} | [[File:{{{picture}}}]] }} | ||
+ | | Has email address={{{email|}}} | ||
+ | }} | ||
</includeonly> | </includeonly> |
Latest revision as of 13:09, 23 June 2012
This is the 'Location' template.
Please dont't use it directly. Use the form instead.