Template:POI: Difference between revisions

From ManyWays
(Created page with "<includeonly> <!-- ===================== --> <!-- Semantic annotations --> <!-- ===================== --> [[Has name::{{{name|}}}]] {{#if:{{{poi_type|}}}|[[Has POI type::{{{poi_type}}}]]}} {{#if:{{{latitude|}}}|[[Has latitude::{{{latitude}}}]]}} {{#if:{{{longitude|}}}|[[Has longitude::{{{longitude}}}]]}} {{#if:{{{elevation|}}}|[[Has elevation::{{{elevation}}}]]}} {{#arraymap:{{{route_ids|}}}|,|x|Is on route::x|,}} {{#arraymap:{{{tags|}}}|,|x|Has tag::x|,}} {...")
 
No edit summary
Line 24: Line 24:
<!-- ===================== -->
<!-- ===================== -->


<div class="manyways-poi">
<div class="poi-profile">


<div class="poi-header">
<div class="poi-image">
{{#if:{{{image|}}}|
[[File:{{{image}}}|600px]]
}}
</div>
<div class="poi-header-text">
<h1>{{{name|{{PAGENAME}}}}}</h1>
<h1>{{{name|{{PAGENAME}}}}}</h1>
<p class="poi-type">{{{poi_type}}}</p>


{{#if:{{{poi_type|}}}|
{{#if:{{{short_description|}}}|
<p><strong>Type:</strong> {{{poi_type}}}</p>
<p class="poi-short-description">{{{short_description}}}</p>
}}
}}


{{#if:{{{latitude|}}}|
</div>
<p><strong>Coordinates:</strong> {{{latitude}}}, {{{longitude}}}</p>
 
}}
</div>
 
<div class="poi-meta">
 
<ul>
<li><strong>Coordinates:</strong> {{{latitude}}}, {{{longitude}}}</li>
{{#if:{{{elevation|}}}|<li><strong>Elevation:</strong> {{{elevation}}} m</li>}}
{{#if:{{{route_ids|}}}|<li><strong>Routes:</strong> {{{route_ids}}}</li>}}
{{#if:{{{tags|}}}|<li><strong>Tags:</strong> {{{tags}}}</li>}}
</ul>


{{#if:{{{elevation|}}}|
</div>
<p><strong>Elevation:</strong> {{{elevation}}} m</p>
}}


{{#if:{{{tags|}}}|
{{#if:{{{description|}}}|
<p><strong>Tags:</strong> {{{tags}}}</p>
<div class="poi-description">
<h2>Overview</h2>
{{{description}}}
</div>
}}
}}


{{#if:{{{route_ids|}}}|
<div class="poi-way-sections">
<p><strong>Routes:</strong> {{{route_ids}}}</p>
{{{way_sections|}}}
}}
</div>


</div>
</div>
Line 54: Line 74:
<noinclude>
<noinclude>


Template for ManyWays Point of Interest (POI) pages.
Public POI profile template.


Parameters (matching JSON):
Parameters:


- name
- name
- poi_type
- poi_type
- short_description
- description
- image (filename)
- latitude
- latitude
- longitude
- longitude
- elevation
- elevation
- route_ids (comma separated page names)
- route_ids (comma separated)
- tags (comma separated)
- tags
- version
- version
- language
- language
 
- way_sections (raw template calls)
Example:
 
{{POI
|name=Bodega San Miguel
|poi_type=Bodega
|latitude=42.34321
|longitude=-3.70123
|elevation=612
|route_ids=Camino Francés
|tags=wine,tasting,local
|version=1
|language=en
}}


</noinclude>
</noinclude>

Revision as of 12:06, 11 January 2026



Public POI profile template.

Parameters:

- name - poi_type - short_description - description - image (filename) - latitude - longitude - elevation - route_ids (comma separated) - tags - version - language - way_sections (raw template calls)