Template:Map Location: Difference between revisions

From HOPE Wiki
Lexicon (talk | contribs)
creating map data template
 
Lexicon (talk | contribs)
m added clearer instructions
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#ifeq:{{{mode|}}}|geojson
<includeonly>
  |{{#invoke:MapLocation|geojson}}
{{#cargo_store:
  |{{#invoke:MapLocation|infobox}}
_table=MapLocations
}}</includeonly><noinclude>
|Name={{{name|{{PAGENAME}}}}}
Use this template on HOPE 26 map location pages.
|Location={{{lat|}}},{{{lon|}}}
  |Category={{{category|Other}}}
|Description={{{description|}}}
  |Hours={{{hours|}}}
|URL={{{url|}}}
}}


Example:
{{#invoke:MapLocation|infobox}}
</includeonly>
 
<noinclude>
{{#cargo_declare:
_table=MapLocations
|Name=String
|Location=Coordinates
|Category=String
|Description=Text
|Hours=String
|URL=URL
}}
 
Use this template on HOPE 26 map-location pages.
 
== Instructions ==
 
'''To add a new location to the map, create a wiki page for the location, and add its data using the format illustrated below.'''
 
As soon as you save your new location's wiki page, it should be added to the map.
 
== Example ==
 
[[The New Yorker Hotel]]


<pre>
<pre>
Line 14: Line 43:
  |category=Hotel
  |category=Hotel
  |description=HOPE 26 conference hotel.
  |description=HOPE 26 conference hotel.
  |hours=24/7
  |hours=
  |url=https://www.newyorkerhotel.com/
  |url=https://www.newyorkerhotel.com/
}}
}}
</pre>
</pre>


Fields:
== Fields ==


<pre>
; name
name       Required. Location name.
: Location name. Defaults to the page title.
lat         Required. Latitude.
 
lon         Required. Longitude.
; lat
category   Recommended. Hotel, Food, Coffee, Transit, Pharmacy, Grocery, ATM, Shipping, Quiet, Hardware, Emergency, Other.
: Required latitude in decimal degrees.
description Recommended. Short note for the map popup.
 
hours      Optional.
; lon
url        Optional.
: Required longitude in decimal degrees.
</pre>
 
; category
: Hotel, Food, Coffee, Transit, Pharmacy, Grocery, ATM, Shipping, Quiet, Hardware, Emergency, or Other.
 
; description
: Short description for the location page and map popup.


The template can also emit GeoJSON for Kartographer when called with:
; hours
: Optional hours or availability note.


<pre>
; url
|mode=geojson
: Optional official website.
</pre>
</noinclude>
</noinclude>

Latest revision as of 06:31, 16 July 2026


This template defines the table "MapLocations". View table.

Use this template on HOPE 26 map-location pages.

Instructions

To add a new location to the map, create a wiki page for the location, and add its data using the format illustrated below.

As soon as you save your new location's wiki page, it should be added to the map.

Example

The New Yorker Hotel

{{Map Location
 |name=The New Yorker Hotel
 |lat=40.7527316
 |lon=-73.9936287
 |category=Hotel
 |description=HOPE 26 conference hotel.
 |hours=
 |url=https://www.newyorkerhotel.com/
}}

Fields

name
Location name. Defaults to the page title.
lat
Required latitude in decimal degrees.
lon
Required longitude in decimal degrees.
category
Hotel, Food, Coffee, Transit, Pharmacy, Grocery, ATM, Shipping, Quiet, Hardware, Emergency, or Other.
description
Short description for the location page and map popup.
hours
Optional hours or availability note.
url
Optional official website.