Difference between revisions of "Template:Spot"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
+ | == Under development == | ||
+ | This template is under development so please don't be surprised by lot of edits here... | ||
+ | |||
== How to use this Template? == | == How to use this Template? == | ||
For using this template, copy&paste the following code. | For using this template, copy&paste the following code. | ||
Line 5: | Line 8: | ||
<pre> | <pre> | ||
{{Spot | {{Spot | ||
− | | | + | |title = |
− | | | + | |mapID = |
|description = | |description = | ||
}} | }} | ||
Line 12: | Line 15: | ||
{{Spot | {{Spot | ||
− | | | + | |title = Option 1: Beginning of A1 |
− | | | + | |mapID = 355 |
|description = kjakjhjkhfkjsh | |description = kjakjhjkhfkjsh | ||
}} | }} | ||
{{Spot | {{Spot | ||
− | | | + | |title = Option 2: First petrol s... |
− | | | + | |mapID = |
|description = nknkknn | |description = nknkknn | ||
}} | }} | ||
+ | |||
</noinclude> | </noinclude> | ||
− | <includeonly>==== | + | <includeonly>==== {{{title}}} ==== |
− | {{#if {{{ | + | {{#if: {{{mapID|}}} | {{#get_web_data: |
+ | url=http://hitchwiki.org/maps/api/?place={{{mapID}}} | ||
+ | |format=JSON | ||
+ | |data=lat=lat,lon=lon,rating=rating,rating_count=ratingCount,link=link | ||
+ | }} [#external_value:link Spot at the map]}}<!--"Rating:"--> | ||
{{{description}}}<br /><!--"Comments:"--></includeonly><noinclude>[[Category:Templates]]</noinclude> | {{{description}}}<br /><!--"Comments:"--></includeonly><noinclude>[[Category:Templates]]</noinclude> |
Revision as of 00:01, 19 December 2013
Contents
Under development
This template is under development so please don't be surprised by lot of edits here...
How to use this Template?
For using this template, copy&paste the following code.
{{Spot |title = |mapID = |description = }}
Option 1: Beginning of A1
Error: Invalid JSON. [#external_value:link Spot at the map]
kjakjhjkhfkjsh
Option 2: First petrol s...
nknkknn