Template:Location

From syn2cat - HackerSpace.lu
(Difference between revisions)
Jump to: navigation, search
m (forgot property)
m
 
(20 intermediate revisions by one user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This is the 'Location' template.
+
This is the 'Location' template.<br/>
It should be called in the following format:
+
Please dont't use it directly. Use the [[Form:Location|form]] instead.
<pre>
+
{{Location
+
|address=
+
|city=
+
|state=
+
|country=
+
|coordinates=<optional>
+
|type=<optional, i.e. hackerspace, agglomeration>
+
}}
+
</pre>
+
Edit the page to see the template text.
+
 
</noinclude><includeonly>
 
</noinclude><includeonly>
 
{| class="wikitable"
 
{| class="wikitable"
 
! Address
 
! Address
| colspan="3" |{{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|}}} }})
-->([[Has coordinates::{{#geocode:{{{address|}}} {{{city|}}} {{{country|}}}}}]])
+
! Picture
 
|-
 
|-
 
! Map display
 
! Map display
| colspan="3" |
+
| colspan="2" |
<!--
+
{{#display_point:
#if coordinates: coordinates={{{coordinates|}}}  
+
{{#if: {{{coordinates|}}} | {{{coordinates}}} | {{{address|}}} {{{city|}}} {{{country|}}} }}
else coordinates =  [[Has coordinates::{{#geocode:Munich}}]]
+
|zoom=12
-->
+
{{
+
#display_point:
+
{{{address|}}} {{{city|}}} {{{country|}}}
+
|zoom=10
+
 
|width=800
 
|width=800
 
|height=500
 
|height=500
 
|type=hybrid
 
|type=hybrid
 
}}
 
}}
 +
| {{#if: {{{picture|}}} | [[File:{{{picture}}}|400px]] }}
 +
|-
 +
! Website
 +
| colspan="2" | [[Url::{{{website|}}}]]
 +
|-
 +
! PhoneNumber
 +
| [[Has phonenumber::{{{phonenumber|}}}]]
 +
! Email
 +
| {{#replace:{{{email|}}}|@|<nowiki> </nowiki>_theAtSign_<nowiki> </nowiki>}}
 
|-
 
|-
 
! Events upcoming at this location
 
! Events upcoming at this location
 
|
 
|
{{
+
{{#ask:
#Ask: [[Category:Event]] [[Has location::{{PAGENAME}}]]
+
[[Category:Event]] [[Has location::{{PAGENAME}}]]
[[EndDate::>{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}} 00:00]]  
+
[[EndDate::>{{#timel: Y-m-d }} 00:00]]  
 
| format=list
 
| format=list
 
| sort=EndDate
 
| sort=EndDate
Line 50: Line 43:
 
! Events held at this location
 
! Events held at this location
 
| colspan="3" |
 
| colspan="3" |
{{
+
{{#ask:
#Ask: [[Category:Event]] [[Has location::{{PAGENAME}}]]  
+
[[Category:Event]] [[Has location::{{PAGENAME}}]]  
[[EndDate::<{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}}]]
+
[[EndDate::<{{#timel: Y-m-d }}]]
 
| format=list
 
| format=list
 
| sort=EndDate
 
| sort=EndDate
Line 62: Line 55:
 
|-
 
|-
 
! Type of location
 
! Type of location
| colspan="3" | [[Has type::{{{type|}}}]]
+
| [[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.

Personal tools
Namespaces

Variants
Actions
Navigation
syn2cat
Hackerspace
Activities
Initiatives
Community
Tools
Tools