Template:Map Location: Difference between revisions

From HOPE Wiki
Lexicon (talk | contribs)
mNo edit summary
Lexicon (talk | contribs)
mNo edit summary
 
(One intermediate revision by the same user 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}}}}}
|Location={{{lat|}}},{{{lon|}}}
|Category={{{category|Other}}}
|Description={{{description|}}}
  |Hours={{{hours|}}}
  |URL={{{url|}}}
}}
 
{{#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.
Use this template on HOPE 26 map-location pages.


Line 31: Line 52:


; category
; category
: Hotel, Conference, Food, Coffee, Transit, Pharmacy, Grocery, ATM, Shipping, Quiet, Hardware, Emergency, or Other.
: Hotel, Food, Coffee, Transit, Pharmacy, Grocery, ATM, Shipping, Quiet, Hardware, Emergency, or Other.


; description
; description
: Short description displayed in the location box and map popup.
: Short description for the location page and map popup.


; hours
; hours
: Optional operating-hours note.
: Optional hours or availability note.


; url
; url
: Optional official website.
: Optional official website.
The template normally renders a location information box. Internal map-generation code can request GeoJSON with:
<pre>
|mode=geojson
</pre>
</noinclude>
</noinclude>

Latest revision as of 22:34, 9 July 2026


{{#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.

Example

{{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.