Template:Location

From syn2cat - HackerSpace.lu
(Difference between revisions)
Jump to: navigation, search
m (renamed property)
m (manual coordinates taking precedence)
Line 9: Line 9:
 
|country=
 
|country=
 
|coordinates=<optional>
 
|coordinates=<optional>
|type=<optional, i.e. hackerspace, agglomeration>
+
|type=<optional, i.e. hackerspace, agglomeration; highschool>
 
}}
 
}}
 
</pre>
 
</pre>
Line 16: Line 16:
 
{| class="wikitable"
 
{| class="wikitable"
 
! Address
 
! Address
| colspan="3" |{{Address | [[Has address::{{{address|}}}]] | [[Has city::{{{city|}}}]] | [[Has country::{{{country|}}}]] }} <!--
+
| colspan="3" |{{Address | [[Has address::{{{address|}}}]] | [[Has city::{{{city|}}}]] | [[Has country::{{{country|}}}]] }} ({{#geocode:{{{address|}}} {{{city|}}} {{{country|}}} }})
-->([[Has coordinates::{{#geocode:{{{address|}}} {{{city|}}} {{{country|}}}}}]])
+
 
|-
 
|-
 
! Map display
 
! Map display
 
| colspan="3" |
 
| colspan="3" |
<!--
 
#if coordinates: coordinates={{{coordinates|}}}
 
else coordinates =  [[Has coordinates::{{#geocode:Munich}}]]
 
-->
 
 
{{
 
{{
 
#display_point:
 
#display_point:
Line 52: Line 47:
 
{{
 
{{
 
#Ask: [[Category:Event]] [[Has location::{{PAGENAME}}]]  
 
#Ask: [[Category:Event]] [[Has location::{{PAGENAME}}]]  
[[EndDate::<{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}}]]
+
[[EndDate::<{{#timel: Y-m-d }}]]
 
| format=list
 
| format=list
 
| sort=EndDate
 
| sort=EndDate
Line 65: Line 60:
 
|}
 
|}
 
[[Category:Location]]
 
[[Category:Location]]
 +
<!-- set coordinates -->
 +
{{#set: Has coordinates = {{#if: {{{coordinates|}}} | {{{coordinates|}}} | {{#geocode:{{{address|}}} {{{city|}}} {{{country|}}} }} }}
 
</includeonly>
 
</includeonly>

Revision as of 11:54, 16 August 2011

This is the 'Location' template. It should be called in the following format:

{{Location
|address=
|city=
|state=
|country=
|coordinates=<optional>
|type=<optional, i.e. hackerspace, agglomeration; highschool>
}}

Edit the page to see the template text.

Personal tools
Namespaces

Variants
Actions
Navigation
syn2cat
Hackerspace
Activities
Initiatives
Community
Tools
Tools