Template:POI: Difference between revisions
No edit summary Tag: Manual revert |
No edit summary |
||
| Line 1: | Line 1: | ||
< | <noinclude> | ||
{{ | Master POI template. | ||
| name | Stores semantic data and renders public POI page. | ||
| | |||
| region | Required: | ||
| altitude | - poi_schema_type | ||
| distance | - poi_name_txt | ||
| | - poi_slug_txt | ||
- poi_description_txt | |||
Optional: | |||
- poi_byline_txt | |||
- poi_images_arr | |||
</noinclude> | |||
<!-- ===================== --> | |||
<!-- SEMANTIC DATA STORAGE --> | |||
<!-- ===================== --> | |||
{{#set: | |||
| POI schema type = {{{poi_schema_type|}}} | |||
| POI name = {{{poi_name_txt|}}} | |||
| POI slug = {{{poi_slug_txt|}}} | |||
| POI description = {{{poi_description_txt|}}} | |||
| POI byline = {{{poi_byline_txt|}}} | |||
| POI latitude = {{{poi_latitude_num|}}} | |||
| POI longitude = {{{poi_longitude_num|}}} | |||
| POI region = {{{poi_region_txt|}}} | |||
| POI altitude (m) = {{{poi_altitude_m_num|}}} | |||
| POI distance from start (m) = {{{poi_distance_from_start_m_num|}}} | |||
| POI images = {{{poi_images_arr|}}} | |||
| POI tags = {{{poi_tags_arr|}}} | |||
| POI route IDs = {{{poi_route_ids_arr|}}} | |||
<!-- Food place --> | |||
| Food type = {{{poi_food_type_txt|}}} | |||
| Opening hours = {{{poi_opening_hours_txt|}}} | |||
| Serves breakfast = {{{poi_serves_breakfast_bool|}}} | |||
| Serves lunch = {{{poi_serves_lunch_bool|}}} | |||
| Serves dinner = {{{poi_serves_dinner_bool|}}} | |||
| Serves alcohol = {{{poi_serves_alcohol_bool|}}} | |||
| Pilgrim menu available = {{{poi_pilgrim_menu_available_bool|}}} | |||
| Price range = {{{poi_price_range_txt|}}} | |||
| Dietary options = {{{poi_dietary_options_arr|}}} | |||
<!-- Accommodation --> | |||
| Accommodation type = {{{poi_accommodation_type_txt|}}} | |||
| Beds total = {{{poi_beds_total_num|}}} | |||
| Private rooms = {{{poi_private_rooms_num|}}} | |||
| Shared rooms = {{{poi_shared_rooms_num|}}} | |||
| Price min = {{{poi_price_min_num|}}} | |||
| Price max = {{{poi_price_max_num|}}} | |||
| Currency = {{{poi_currency_txt|}}} | |||
<!-- Town --> | |||
| Population = {{{poi_population_num|}}} | |||
| Has albergue = {{{poi_has_albergue_bool|}}} | |||
| Has pharmacy = {{{poi_has_pharmacy_bool|}}} | |||
| Has supermarket = {{{poi_has_supermarket_bool|}}} | |||
| Has medical = {{{poi_has_medical_bool|}}} | |||
<!-- Transport --> | |||
| Transport type = {{{poi_transport_type_txt|}}} | |||
<!-- Medical --> | |||
| Medical type = {{{poi_medical_type_txt|}}} | |||
<!-- Service --> | |||
| Service type = {{{poi_service_type_txt|}}} | |||
<!-- Shop --> | |||
| Shop type = {{{poi_shop_type_txt|}}} | |||
<!-- Historical --> | |||
| Period = {{{poi_period_txt|}}} | |||
| Year built = {{{poi_year_built_num|}}} | |||
<!-- Religious --> | |||
| Religion = {{{poi_religion_txt|}}} | |||
| Site type = {{{poi_site_type_txt|}}} | |||
<!-- Cultural --> | |||
| Culture type = {{{poi_culture_type_txt|}}} | |||
<!-- Museum --> | |||
| Museum type = {{{poi_museum_type_txt|}}} | |||
<!-- Natural --> | |||
| Nature type = {{{poi_nature_type_txt|}}} | |||
<!-- Agricultural --> | |||
| Farm type = {{{poi_farm_type_txt|}}} | |||
<!-- Workspace --> | |||
| Workspace type = {{{poi_workspace_type_txt|}}} | |||
}} | }} | ||
<!-- ===================== --> | |||
<!-- HERO BLOCK (PUBLIC) --> | |||
<!-- ===================== --> | |||
<div class="poi-hero"> | |||
<div class="poi-hero-left"> | |||
<h1>{{{poi_name_txt}}}</h1> | |||
{{#if: {{{poi_byline_txt|}}} | | |||
<div class="poi-byline"> | |||
{{{poi_byline_txt}}} | |||
</div> | |||
}} | |||
<div class="poi-description"> | |||
{{{poi_description_txt}}} | {{{poi_description_txt}}} | ||
</div> | |||
</div> | |||
<div class="poi-hero-right"> | |||
{{#if: {{{poi_images_arr|}}} | | |||
[[File:{{#explode:{{{poi_images_arr}}}|,|0}}|350px]] | |||
[[ | }} | ||
</div> | |||
</div> | |||
<hr/> | |||
<!-- ===================== --> | |||
<!-- TYPE SPECIFIC VIEW --> | |||
<!-- ===================== --> | |||
{{#switch: {{{poi_schema_type}}} | |||
| food_place = | |||
{{POI_View_FoodPlace | |||
| opening_hours = {{{poi_opening_hours_txt|}}} | |||
| price_range = {{{poi_price_range_txt|}}} | |||
| serves_alcohol = {{{poi_serves_alcohol_bool|}}} | |||
| pilgrim_menu = {{{poi_pilgrim_menu_available_bool|}}} | |||
}} | |||
| accommodation = | |||
{{POI_View_Accommodation | |||
| beds_total = {{{poi_beds_total_num|}}} | |||
| private_rooms = {{{poi_private_rooms_num|}}} | |||
| shared_rooms = {{{poi_shared_rooms_num|}}} | |||
| price_min = {{{poi_price_min_num|}}} | |||
| price_max = {{{poi_price_max_num|}}} | |||
}} | |||
| town = | |||
{{POI_View_Town | |||
| population = {{{poi_population_num|}}} | |||
| has_pharmacy = {{{poi_has_pharmacy_bool|}}} | |||
| has_supermarket = {{{poi_has_supermarket_bool|}}} | |||
| has_medical = {{{poi_has_medical_bool|}}} | |||
}} | |||
| transport_stop = | |||
{{POI_View_Transport | |||
| transport_type = {{{poi_transport_type_txt|}}} | |||
}} | |||
| medical_place = | |||
{{POI_View_Medical | |||
| medical_type = {{{poi_medical_type_txt|}}} | |||
}} | |||
| service_point = | |||
{{POI_View_Service | |||
| service_type = {{{poi_service_type_txt|}}} | |||
}} | |||
| shop = | |||
{{POI_View_Shop | |||
| shop_type = {{{poi_shop_type_txt|}}} | |||
}} | |||
| historical_site = | |||
{{POI_View_Historical | |||
| period = {{{poi_period_txt|}}} | |||
| year_built = {{{poi_year_built_num|}}} | |||
}} | |||
| religious_site = | |||
{{POI_View_Religious | |||
| religion = {{{poi_religion_txt|}}} | |||
| site_type = {{{poi_site_type_txt|}}} | |||
}} | |||
| cultural_site = | |||
{{POI_View_Cultural | |||
| culture_type = {{{poi_culture_type_txt|}}} | |||
}} | |||
| museum = | |||
{{POI_View_Museum | |||
| museum_type = {{{poi_museum_type_txt|}}} | |||
}} | |||
| natural_site = | |||
{{POI_View_Natural | |||
| nature_type = {{{poi_nature_type_txt|}}} | |||
}} | |||
| agricultural_site = | |||
{{POI_View_Agricultural | |||
| farm_type = {{{poi_farm_type_txt|}}} | |||
}} | |||
| workspace = | |||
{{POI_View_Workspace | |||
| workspace_type = {{{poi_workspace_type_txt|}}} | |||
}} | |||
| #default = | |||
<div class="poi-warning"> | |||
Unknown POI schema type. | |||
</div> | |||
}} | |||
<!-- ===================== --> | |||
<!-- CATEGORY --> | |||
<!-- ===================== --> | |||
[[Category:POI]] | [[Category:POI]] | ||
Revision as of 16:47, 13 January 2026
Master POI template. Stores semantic data and renders public POI page.
Required: - poi_schema_type - poi_name_txt - poi_slug_txt - poi_description_txt
Optional: - poi_byline_txt - poi_images_arr
{{{poi_name_txt}}}
{{{poi_description_txt}}}
Unknown POI schema type.