Template:Way: Difference between revisions
(Created page with "<includeonly> <!-- Semantic properties --> [[Has name::{{{name|}}}]] [[Has slug::{{{slug|}}}]] [[Has category::{{{category|}}}]] [[Has short description::{{{short_description|}}}]] [[Has long description::{{{long_description|}}}]] {{#if:{{{price|}}}|[[Has price::{{{price}}}]]}} {{#if:{{{currency|}}}|[[Has currency::{{{currency}}}]]}} {{#if:{{{version|}}}|[[Has version::{{{version}}}]]}} {{#if:{{{language|}}}|[[Has language::{{{language}}}]]}} <!-- Multiple value fie...") |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<!-- Semantic | <!-- ===================== --> | ||
<!-- Semantic annotations --> | |||
<!-- ===================== --> | |||
[[Has name::{{{name|}}}]] | [[Has name::{{{name|}}}]] | ||
| Line 11: | Line 13: | ||
{{#if:{{{price|}}}|[[Has price::{{{price}}}]]}} | {{#if:{{{price|}}}|[[Has price::{{{price}}}]]}} | ||
{{#if:{{{currency|}}}|[[Has currency::{{{currency}}}]]}} | {{#if:{{{currency|}}}|[[Has currency::{{{currency}}}]]}} | ||
{{#if:{{{version|}}}|[[Has version::{{{version}}}]]}} | {{#if:{{{version|}}}|[[Has version::{{{version}}}]]}} | ||
{{#if:{{{language|}}}|[[Has language::{{{language}}}]]}} | {{#if:{{{language|}}}|[[Has language::{{{language}}}]]}} | ||
{{#arraymap:{{{includes_poi_types|}}}|,|x|[[Includes POI type::x]]|,}} | |||
{{#arraymap:{{{ | {{#arraymap:{{{includes_poi_meta_types|}}}|,|x|[[Includes POI meta type::x]]|,}} | ||
{{#arraymap:{{{ | {{#arraymap:{{{applicable_routes|}}}|,|x|[[Applicable route::x]]|,}} | ||
{{#arraymap:{{{bundles|}}}|,|x|[[Is in bundle::x]]|,}} | |||
{{#arraymap:{{{bundles|}}}|,|x|[[Is in bundle::x]]}} | |||
[[Category:Way]] | [[Category:Way]] | ||
<!-- ===================== --> | |||
<!-- Display --> | <!-- Display --> | ||
<!-- ===================== --> | |||
<div class="manyways-way"> | <div class="manyways-way"> | ||
| Line 35: | Line 34: | ||
<h1>{{{name|{{PAGENAME}}}}}</h1> | <h1>{{{name|{{PAGENAME}}}}}</h1> | ||
{{#if:{{{short_description|}}}|<p><em>{{{short_description}}}</em></p>}} | {{#if:{{{short_description|}}}| | ||
<p><em>{{{short_description}}}</em></p> | |||
}} | |||
{{#if:{{{long_description|}}}| | |||
<div class="way-description"> | |||
{{{long_description}}} | |||
</div> | |||
}} | |||
{{#if:{{{price|}}}| | |||
<p><strong>Price:</strong> {{{price}}} {{{currency|}}}</p> | |||
}} | |||
{{#if:{{{includes_poi_types|}}}| | |||
<p><strong>POI types:</strong> {{{includes_poi_types}}}</p> | |||
}} | |||
{{#if:{{{includes_poi_meta_types|}}}| | |||
<p><strong>POI meta types:</strong> {{{includes_poi_meta_types}}}</p> | |||
}} | |||
{{#if:{{{applicable_routes|}}}| | |||
<p><strong>Routes:</strong> {{{applicable_routes}}}</p> | |||
}} | |||
{{#if:{{{ | {{#if:{{{bundles|}}}| | ||
<p><strong>Bundles:</strong> {{{bundles}}}</p> | |||
}} | |||
</div> | </div> | ||
| Line 45: | Line 70: | ||
<noinclude> | <noinclude> | ||
Template for | Template for ManyWays Way pages. | ||
Parameters: | Parameters: | ||
- name | |||
- slug | |||
- category | |||
- short_description | |||
- long_description | |||
- price | |||
- currency | |||
- includes_poi_types (comma separated) | |||
- includes_poi_meta_types (comma separated) | |||
- applicable_routes (comma separated page names) | |||
- bundles (comma separated page names) | |||
- version | |||
- language | |||
Example: | Example: | ||
Latest revision as of 11:21, 11 January 2026
Template for ManyWays Way pages.
Parameters:
- name - slug - category - short_description - long_description - price - currency - includes_poi_types (comma separated) - includes_poi_meta_types (comma separated) - applicable_routes (comma separated page names) - bundles (comma separated page names) - version - language
Example:
Wine & Spirit Way
wine-spirit-way
thematic
A culinary pilgrimage
Detailed description here
29.99 EUR 1 en
Bodega,Distillery,Restaurant
description,audio
Wine & Spirit Way
A culinary pilgrimage
Detailed description here
Price: 29.99 EUR
POI types: Bodega,Distillery,Restaurant
POI meta types: description,audio
Routes: Camino Francés
Bundles: Gourmet Bundle