Template:Location
From syn2cat - HackerSpace.lu
(Difference between revisions)
m |
(added picture attribute) |
||
Line 10: | Line 10: | ||
|coordinates=<optional> | |coordinates=<optional> | ||
|type=<optional, i.e. hackerspace, agglomeration; highschool> | |type=<optional, i.e. hackerspace, agglomeration; highschool> | ||
+ | |picture=<File.png> | ||
}} | }} | ||
</pre> | </pre> | ||
Line 27: | Line 28: | ||
|type=hybrid | |type=hybrid | ||
}} | }} | ||
+ | | {{#if: {{{picture|}}} | [[File:{{{picture}}}]] }} | ||
|- | |- | ||
! Manual coordinates | ! Manual coordinates | ||
Line 62: | Line 64: | ||
|} | |} | ||
[[Category:Location]] | [[Category:Location]] | ||
− | {{#set: Has coordinates={{#if: {{{coordinates|}}} | {{{coordinates}}} | {{#geocode:{{{address}}} {{{city}}} {{{country}}} }} }} }} | + | {{#set: |
+ | Has coordinates={{#if: {{{coordinates|}}} | {{{coordinates}}} | {{#geocode:{{{address}}} {{{city}}} {{{country}}} }} }} | ||
+ | | Has picture={{#if: {{{picture|}}} | [[File:{{{picture}}}]] }} | ||
+ | }} | ||
</includeonly> | </includeonly> |
Revision as of 19:41, 16 February 2012
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> |picture=<File.png> }}
Edit the page to see the template text.