Template:POI: Difference between revisions
No edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
<!-- ===================== --> | <!-- ===================== --> | ||
<!-- Semantic | <!-- Semantic storage (hidden) --> | ||
<!-- ===================== --> | <!-- ===================== --> | ||
{{#set: | |||
Has name={{{name|}}} | |||
|Has POI type={{{poi_type|}}} | |||
|Has latitude={{{latitude|}}} | |||
|Has longitude={{{longitude|}}} | |||
|Has elevation={{{elevation|}}} | |||
|Has version={{{version|}}} | |||
|Has language={{{language|}}} | |||
}} | |||
{{# | {{#arraymap:{{{route_ids|}}}|,|x|{{#set:Is on route=x}}|}} | ||
{{# | {{#arraymap:{{{tags|}}}|,|x|{{#set:Has tag=x}}|}} | ||
[[Category:POI]] | [[Category:POI]] | ||
| Line 35: | Line 35: | ||
<div class="poi-header-text"> | <div class="poi-header-text"> | ||
< | <h2 class="poi-title">{{{name|{{PAGENAME}}}}}</h2> | ||
<p class="poi-type">{{{poi_type}}}</p> | <p class="poi-type">{{{poi_type}}}</p> | ||
| Line 49: | Line 49: | ||
<ul> | <ul> | ||
<li><strong>Coordinates:</strong> {{{latitude}}}, {{{longitude}}}</li> | {{#if:{{{latitude|}}}|<li><strong>Coordinates:</strong> {{{latitude}}}, {{{longitude}}}</li>}} | ||
{{#if:{{{elevation|}}}|<li><strong>Elevation:</strong> {{{elevation}}} m</li>}} | {{#if:{{{elevation|}}}|<li><strong>Elevation:</strong> {{{elevation}}} m</li>}} | ||
{{#if:{{{route_ids|}}}|<li><strong>Routes:</strong> {{{route_ids}}}</li>}} | {{#if:{{{route_ids|}}}|<li><strong>Routes:</strong> {{{route_ids}}}</li>}} | ||
Revision as of 12:13, 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)