Difference between revisions of "Template:Spot"

From Hitchwiki
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
|number =  
+
|title =  
|MapID =  
+
|mapID =  
 
|description =  
 
|description =  
 
}}
 
}}
Line 12: Line 15:
  
 
{{Spot
 
{{Spot
|number = 1
+
|title = Option 1: Beginning of A1
|MapID = 355
+
|mapID = 355
 
|description = kjakjhjkhfkjsh  
 
|description = kjakjhjkhfkjsh  
 
}}
 
}}
  
 
{{Spot
 
{{Spot
|number = 2
+
|title = Option 2: First petrol s...
|MapID =  
+
|mapID =  
 
|description = nknkknn
 
|description = nknkknn
 
}}
 
}}
 +
 
</noinclude>
 
</noinclude>
<includeonly>==== Option {{{number}}}: ====
+
<includeonly>==== {{{title}}} ====
{{#if {{{MapID|}}}|{{Maps place|{{{MapID}}}|Spot at the map}}|}} <!--"Rating:"-->
+
{{#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

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