|
Tags: Manual revert Reverted |
| Line 1: |
Line 1: |
| <!-- Template:POI (FULL REPLACEMENT) -->
| | [[POI Name::{{{poi_name_txt|}}}]] |
| | [[POI Slug::{{{poi_slug_txt|}}}]] |
| | [[POI Description::{{{poi_description_txt|}}}]] |
|
| |
|
| <includeonly>
| | [[POI Latitude::{{{poi_latitude_num|}}}]] |
| <!-- 1) STORE (Semantic properties) -->
| | [[POI Longitude::{{{poi_longitude_num|}}}]] |
| {{#set:
| | [[POI Region::{{{poi_region_txt|}}}]] |
| POI Name={{{poi_name_txt|{{PAGENAME}}}}} | | [[POI Altitude (m)::{{{poi_altitude_m_num|}}}]] |
| |POI Slug={{{poi_slug_txt|}}}
| | [[POI Distance from Start (m)::{{{poi_distance_from_start_m_num|}}}]] |
| |Description={{{poi_description_txt|}}}
| |
| |Latitude={{{poi_latitude_num|}}}
| |
| |Longitude={{{poi_longitude_num|}}}
| |
| |Region={{{poi_region_txt|}}}
| |
| |Altitude (m)={{{poi_altitude_m_num|}}}
| |
| |Distance from Start (m)={{{poi_distance_from_start_m_num|}}}
| |
| |Images={{{poi_images_arr|}}}
| |
| |Tags={{{poi_tags_arr|}}}
| |
| |Route IDs={{{poi_route_ids_arr|}}}
| |
| |Has POI type={{{poi_type_txt|}}}
| |
| }}
| |
|
| |
|
| <!-- 2) RENDER (Wikipedia-ish layout) -->
| | [[POI Images::{{{poi_images_arr|}}}]] |
| {| class="infobox" style="float:right; clear:right; margin:0 0 1em 1em; width:320px;" | | [[POI Tags::{{{poi_tags_arr|}}}]] |
| |- | | [[POI Route IDs::{{{poi_route_ids_arr|}}}]] |
| ! colspan="2" style="text-align:center; font-size:125%;" | {{{poi_name_txt|{{PAGENAME}}}}}
| |
|
| |
|
| |-
| | [[Category:POI]] |
| | colspan="2" style="text-align:center;" |
| |
| {{#if: {{{poi_images_arr|}}}
| |
| | [[File:{{#explode:{{{poi_images_arr}}}|,|0}}|300px]]
| |
| |
| |
| }}
| |
| | |
| |-
| |
| ! Region
| |
| | {{#show: {{FULLPAGENAME}} | ?Region }}
| |
| | |
| |-
| |
| ! Coordinates
| |
| | {{#if: {{{poi_latitude_num|}}}{{{poi_longitude_num|}}}
| |
| | {{{poi_latitude_num|}}}, {{{poi_longitude_num|}}}
| |
| |
| |
| }}
| |
| | |
| |-
| |
| ! Altitude (m)
| |
| | {{#if: {{{poi_altitude_m_num|}}} | {{{poi_altitude_m_num|}}} | }}
| |
| | |
| |-
| |
| ! Distance from start (m)
| |
| | {{#if: {{{poi_distance_from_start_m_num|}}} | {{{poi_distance_from_start_m_num|}}} | }}
| |
| |}
| |
| | |
| <!-- Intro (uses your field, not random prose) -->
| |
| {{#if: {{{poi_description_txt|}}}
| |
| | {{{poi_description_txt|}}}
| |
| |
| |
| }}
| |
| | |
| <!-- Way sections (stored as subobjects by Template:POIWaySection) -->
| |
| {{#ask:
| |
| [[-Has subobject::{{FULLPAGENAME}}]]
| |
| |?Way name=Way
| |
| |?Schema type=Type
| |
| |?Schema tag=Tag
| |
| |?Text=Details
| |
| |format=table
| |
| |class=wikitable
| |
| |headers=plain
| |
| |mainlabel=-
| |
| }}
| |
| </includeonly>
| |
| | |
| <noinclude>
| |
| Usage:
| |
| | |
| {{POI
| |
| |poi_name_txt=
| |
| |poi_slug_txt=
| |
| |poi_description_txt=
| |
| |poi_latitude_num=
| |
| |poi_longitude_num=
| |
| |poi_region_txt=
| |
| |poi_altitude_m_num=
| |
| |poi_distance_from_start_m_num=
| |
| |poi_images_arr=Example-bodega.jpg
| |
| |poi_tags_arr=wine,bodega,food
| |
| |poi_route_ids_arr=camino_frances
| |
| |poi_type_txt=food_place
| |
| }}
| |
| | |
| Then add sections with:
| |
| {{POIWaySection|way_name=...|schema_type=...|schema_tag=...|text=...}}
| |
| </noinclude>
| |