Difference between revisions of "Template:Location"

From Jackpoint
 
(11 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
* Latitude: {{{Latitude|-}}}
 
* Latitude: {{{Latitude|-}}}
 
* Longitude: {{{Longitude|-}}}
 
* Longitude: {{{Longitude|-}}}
{{#if:{{{Address|}}}|* Address: {{{Address|}}}}}
+
{{#if: {{{Address|}}} | * Address: {{{Address|}}} }}
{{#if:{{{Notes|}}}|{{{Notes|}}}}}
+
{{#if: {{{Notes|}}}   | {{{Notes|}}}             }}
 
}}
 
}}
  
[[Category:Locations]]
+
{{#if: {{{nocategory|}}} | | <includeonly>[[Category:Locations]]</includeonly> }}
 +
<noinclude>
 +
== Usage ==
 +
<pre>
 +
{{Template:Location|Name=|Latitude=|Longitude=|Address=|Notes=}}
 +
</pre>
 +
Make sure to have this entire template on a single line, or the [https://jackpoint.obscuritus.ca/ShadowMap/index.html map] will not detect it.
 +
 
 +
The map only updates from items in Category:Locations, which this template automatically adds.
 +
 
 +
Do not add links to the notes section, because they wont appear correctly on the map. The notes section is for the comment on the map, and the actual description text should go in the wiki page proper.
 +
</noinclude>

Latest revision as of 00:15, 14 December 2020

-
 
  • Latitude: -
  • Longitude: -


Usage

{{Template:Location|Name=|Latitude=|Longitude=|Address=|Notes=}}

Make sure to have this entire template on a single line, or the map will not detect it.

The map only updates from items in Category:Locations, which this template automatically adds.

Do not add links to the notes section, because they wont appear correctly on the map. The notes section is for the comment on the map, and the actual description text should go in the wiki page proper.