Difference between revisions of "Template:Tour"

From BITPlan E-Bike Wiki
Jump to navigation Jump to search
(modified by py-yprinciple-gen 0.3.5)
 
Line 1: Line 1:
<noinclude>
+
<noinclude><!--
<!--
+
   --     Copyright (C) 2015-2025 BITPlan GmbH
   -- Copyright (C) 2015-2017 BITPlan GmbH
+
   --
   --  
+
   --     Pater-Delp-Str. -- 1
   -- Pater-Delp-Str. -- 1
+
   --     D-47877 -- Willich-Schiefbahn
   -- D-47877 -- Willich-Schiefbahn
+
   --
   --  
+
   --     http://www.bitplan.com
   -- http://www.bitplan.com
+
  --
 
   --
 
   --
  --
 
 
-->
 
-->
This is the template {{Link|target=Template:Tour|title=Tour}}.
+
This is the [https://wiki.bitplan.com/index.php/ProfiWiki BITPlan Y-Prinzip ProfiWiki]-Template for "Tour".
It belongs to the concept/topic {{Link|target=:Concept:Tour}}<br>
+
=== see also ===
You may find examples for the use of this template via the {{Link|target=List of Tours}}.
+
see also
 +
* [[List of Tours]]
 +
* [[Help:Tour]]
 +
* [[Concept:Tour]]
 +
* [[:Category:Tour]]
 +
* [[:Template:Tour]]
 +
* [[:Form:Tour]]
 +
 
 
=== Usage ===
 
=== Usage ===
==== storemode subobject ====
 
<pre>{{Tour
 
|date=
 
|target=
 
|weather=
 
|location=
 
|coordinates=
 
|trip=
 
|track=
 
|stay=
 
|shop=
 
|distance=
 
|comment=
 
|storemode=subobject
 
}}
 
</pre>
 
 
==== storemode property ====
 
<pre>{{Tour
 
|date=
 
|target=
 
|weather=
 
|location=
 
|coordinates=
 
|trip=
 
|track=
 
|stay=
 
|shop=
 
|distance=
 
|comment=
 
|storemode=property
 
}}
 
</pre>
 
 
==== storemode none ====
 
<pre>{{Tour
 
|date=
 
|target=
 
|weather=
 
|location=
 
|coordinates=
 
|trip=
 
|track=
 
|stay=
 
|shop=
 
|distance=
 
|comment=
 
|storemode=none
 
}}
 
</pre>
 
 
 
==== viewmode tableheader ====
 
<pre>{{Tour
 
|date=
 
|target=
 
|weather=
 
|location=
 
|coordinates=
 
|trip=
 
|track=
 
|stay=
 
|shop=
 
|distance=
 
|comment=
 
|viewmode=tableheader
 
}}
 
</pre>
 
 
==== viewmode tablerow ====
 
<pre>{{Tour
 
|date=
 
|target=
 
|weather=
 
|location=
 
|coordinates=
 
|trip=
 
|track=
 
|stay=
 
|shop=
 
|distance=
 
|comment=
 
|viewmode=tablerow
 
}}
 
</pre>
 
 
==== viewmode tablefooter ====
 
<pre>{{Tour
 
|date=
 
|target=
 
|weather=
 
|location=
 
|coordinates=
 
|trip=
 
|track=
 
|stay=
 
|shop=
 
|distance=
 
|comment=
 
|viewmode=tablefooter
 
}}
 
</pre>
 
 
==== viewmode labelfield ====
 
 
<pre>{{Tour
 
<pre>{{Tour
 
|date=
 
|date=
Line 130: Line 32:
 
|distance=
 
|distance=
 
|comment=
 
|comment=
|viewmode=labelfield
+
|storemode=property or subobject or none"
 
}}
 
}}
 
</pre>
 
</pre>
 
=== Source (pretty printed) ===
 
<source lang='html4strict'>
 
{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA Tour<br>|}}
 
{{#if:{{{?date|}}}|"{{{?date}}}" is date of it <br>|}}
 
{{#if:{{{?target|}}}|"{{{?target}}}" is target of it <br>|}}
 
{{#if:{{{?weather|}}}|"{{{?weather}}}" is weather of it <br>|}}
 
{{#if:{{{?location|}}}|"{{{?location}}}" is location of it <br>|}}
 
{{#if:{{{?coordinates|}}}|"{{{?coordinates}}}" is coordinates of it <br>|}}
 
{{#if:{{{?trip|}}}|"{{{?trip}}}" is trip of it <br>|}}
 
{{#if:{{{?track|}}}|"{{{?track}}}" is track of it <br>|}}
 
{{#if:{{{?stay|}}}|"{{{?stay}}}" is stay of it <br>|}}
 
{{#if:{{{?shop|}}}|"{{{?shop}}}" is shop of it <br>|}}
 
{{#if:{{{?distance|}}}|"{{{?distance}}}" is distance of it <br>|}}
 
{{#if:{{{?comment|}}}|"{{{?comment}}}" is comment of it <br>|}}
 
|#default={{#switch:{{{storemode|}}}
 
|none=
 
|subobject={{#subobject:-
 
|isA=Tour
 
|Tour date={{{date|}}}
 
|Tour target={{{target|}}}
 
|Tour weather={{{weather|}}}
 
|Tour location={{{location|}}}
 
|Tour coordinates={{{coordinates|}}}
 
|Tour trip={{{trip|}}}
 
|Tour track={{{track|}}}
 
|Tour stay={{{stay|}}}
 
|Tour shop={{{shop|}}}
 
|Tour distance={{{distance|}}}
 
|Tour comment={{{comment|}}}
 
}}
 
|#default={{#set:
 
|isA=Tour
 
|Tour date={{{date|}}}
 
|Tour target={{{target|}}}
 
|Tour weather={{{weather|}}}
 
|Tour location={{{location|}}}
 
|Tour coordinates={{{coordinates|}}}
 
|Tour trip={{{trip|}}}
 
|Tour track={{{track|}}}
 
|Tour stay={{{stay|}}}
 
|Tour shop={{{shop|}}}
 
|Tour distance={{{distance|}}}
 
|Tour comment={{{comment|}}}
 
}}
 
}}
 
{{#switch: {{{viewmode|}}}
 
|masterdetail=
 
|tableheader={{{!}} class='wikitable'
 
!date!!target!!weather!!location!!coordinates!!trip!!track!!stay!!shop!!distance!!comment
 
{{!}}-
 
|tablerow=
 
{{!}}{{{date|}}}{{!}}{{!}}{{{target|}}}{{!}}{{!}}{{{weather|}}}{{!}}{{!}}{{{location|}}}{{!}}{{!}}{{{coordinates|}}}{{!}}{{!}}{{{trip|}}}{{!}}{{!}}{{{track|}}}{{!}}{{!}}{{{stay|}}}{{!}}{{!}}{{{shop|}}}{{!}}{{!}}{{{distance|}}}{{!}}{{!}}{{{comment|}}}
 
{{!}}-
 
|tablefooter={{!}}}
 
|labelfield=
 
date={{#if:{{{date|}}}|{{{date|}}}|}}<br>target={{#if:{{{target|}}}|[[{{{target|}}}]]|}}<br>weather={{#if:{{{weather|}}}|{{{weather|}}}|}}<br>location={{#if:{{{location|}}}|{{{location|}}}|}}<br>coordinates={{#if:{{{coordinates|}}}|{{{coordinates|}}}|}}<br>trip={{#if:{{{trip|}}}|[[{{{trip|}}}]]|}}<br>track={{#if:{{{track|}}}|{{{track|}}}|}}<br>stay={{#if:{{{stay|}}}|{{{stay|}}}|}}<br>shop={{#if:{{{shop|}}}|{{{shop|}}}|}}<br>distance={{#if:{{{distance|}}}|{{{distance|}}}|}}<br>comment={{#if:{{{comment|}}}|{{{comment|}}}|}}<br>|#default={{{!}} class='wikitable'
 
! colspan='2' {{!}}Tour
 
{{!}}-
 
{{#switch:{{{storemode|}}}|property=
 
! colspan='2' style='text-align:left' {{!}} {{Icon|name=edit|size=24}}{{Link|target=Special:FormEdit/Tour/{{FULLPAGENAME}}|title=edit}}
 
{{!}}-
 
}}
 
!date
 
{{!}}&nbsp;{{#if:{{{date|}}}|{{{date|}}}|}}
 
{{!}}-
 
!target
 
{{!}}&nbsp;{{#if:{{{target|}}}|[[{{{target|}}}]]|}}
 
{{!}}-
 
!weather
 
{{!}}&nbsp;{{#if:{{{weather|}}}|{{{weather|}}}|}}
 
{{!}}-
 
!location
 
{{!}}&nbsp;{{#if:{{{location|}}}|{{{location|}}}|}}
 
{{!}}-
 
!coordinates
 
{{!}}&nbsp;{{#if:{{{coordinates|}}}|{{{coordinates|}}}|}}
 
{{!}}-
 
!trip
 
{{!}}&nbsp;{{#if:{{{trip|}}}|[[{{{trip|}}}]]|}}
 
{{!}}-
 
!track
 
{{!}}&nbsp;{{#if:{{{track|}}}|{{{track|}}}|}}
 
{{!}}-
 
!stay
 
{{!}}&nbsp;{{#if:{{{stay|}}}|{{{stay|}}}|}}
 
{{!}}-
 
!shop
 
{{!}}&nbsp;{{#if:{{{shop|}}}|{{{shop|}}}|}}
 
{{!}}-
 
!distance
 
{{!}}&nbsp;{{#if:{{{distance|}}}|{{{distance|}}}|}}
 
{{!}}-
 
!comment
 
{{!}}&nbsp;{{#if:{{{comment|}}}|{{{comment|}}}|}}
 
{{!}}-
 
{{!}}}
 
}}
 
}}
 
 
</source>
 
=== Source ===
 
Click on "Edit" to edit the noinclude-part Source of this Template.
 
 
[[Category:Template]]
 
[[Category:Template]]
 
+
</noinclude><includeonly>{{#switch:{{{storemode|}}}
</noinclude><includeonly>{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA Tour<br>|}}
 
{{#if:{{{?date|}}}|"{{{?date}}}" is date of it <br>|}}
 
{{#if:{{{?target|}}}|"{{{?target}}}" is target of it <br>|}}
 
{{#if:{{{?weather|}}}|"{{{?weather}}}" is weather of it <br>|}}
 
{{#if:{{{?location|}}}|"{{{?location}}}" is location of it <br>|}}
 
{{#if:{{{?coordinates|}}}|"{{{?coordinates}}}" is coordinates of it <br>|}}
 
{{#if:{{{?trip|}}}|"{{{?trip}}}" is trip of it <br>|}}
 
{{#if:{{{?track|}}}|"{{{?track}}}" is track of it <br>|}}
 
{{#if:{{{?stay|}}}|"{{{?stay}}}" is stay of it <br>|}}
 
{{#if:{{{?shop|}}}|"{{{?shop}}}" is shop of it <br>|}}
 
{{#if:{{{?distance|}}}|"{{{?distance}}}" is distance of it <br>|}}
 
{{#if:{{{?comment|}}}|"{{{?comment}}}" is comment of it <br>|}}
 
|#default={{#switch:{{{storemode|}}}
 
 
|none=
 
|none=
 
|subobject={{#subobject:-
 
|subobject={{#subobject:-
Line 274: Line 60:
 
|Tour coordinates={{{coordinates|}}}
 
|Tour coordinates={{{coordinates|}}}
 
|Tour trip={{{trip|}}}
 
|Tour trip={{{trip|}}}
|HasCategory={{{trip|}}}
 
 
|Tour track={{{track|}}}
 
|Tour track={{{track|}}}
 
|Tour stay={{{stay|}}}
 
|Tour stay={{{stay|}}}
Line 282: Line 67:
 
}}
 
}}
 
}}
 
}}
{{#switch: {{{viewmode|}}}
+
{{#switch:{{{viewmode|}}}|hidden=|masterdetail=
|masterdetail=
+
|#default={{{!}} class='wikitable'
|tableheader={{{!}} class='wikitable'
 
!date!!target!!weather!!location!!coordinates!!trip!!track!!stay!!shop!!distance!!comment
 
{{!}}-
 
|tablerow=
 
{{!}}{{{date|}}}{{!}}{{!}}{{{target|}}}{{!}}{{!}}{{{weather|}}}{{!}}{{!}}{{{location|}}}{{!}}{{!}}{{{coordinates|}}}{{!}}{{!}}{{{trip|}}}{{!}}{{!}}{{{track|}}}{{!}}{{!}}{{{stay|}}}{{!}}{{!}}{{{shop|}}}{{!}}{{!}}{{{distance|}}}{{!}}{{!}}{{{comment|}}}
 
{{!}}-
 
|tablefooter={{!}}}
 
|labelfield=
 
date={{#if:{{{date|}}}|{{{date|}}}|}}<br>target={{#if:{{{target|}}}|[[{{{target|}}}]]|}}<br>weather={{#if:{{{weather|}}}|{{{weather|}}}|}}<br>location={{#if:{{{location|}}}|{{{location|}}}|}}<br>coordinates={{#if:{{{coordinates|}}}|{{{coordinates|}}}|}}<br>trip={{#if:{{{trip|}}}|[[{{{trip|}}}]]|}}<br>track={{#if:{{{track|}}}|{{{track|}}}|}}<br>stay={{#if:{{{stay|}}}|{{{stay|}}}|}}<br>shop={{#if:{{{shop|}}}|{{{shop|}}}|}}<br>distance={{#if:{{{distance|}}}|{{{distance|}}}|}}<br>comment={{#if:{{{comment|}}}|{{{comment|}}}|}}<br>|#default=
 
{{PageSequence
 
|prev={{#ask: [[Tour target::{{FULLPAGENAME}}]] | link=none}}
 
|next={{{target|}}}
 
|category={{{trip|}}}
 
|categoryIcon=bicycle
 
}}
 
{{Location|category={{{trip|}}}|location={{{location|}}}|coordinates={{{coordinates|}}}|zoom={{{zoom|10}}} }}
 
= Weather =
 
https://www.windfinder.com/forecast/{{{weather|}}}
 
{{#if: {{{stay|}}}|
 
= Stay =
 
{{{stay|}}}
 
}}
 
{{#if: {{{shop|}}}|
 
= Shop =
 
{{{shop|}}}
 
}}
 
= Tour =
 
[{{{track|}}} {{FULLPAGENAME}}→{{{target|}}} ({{{distance|}}}) ] {{{comment|}}}→{{Link|target={{{target|}}}}}
 
= What Links Here =
 
{{WhatLinksHere}}
 
{{#switch: {{#realname:visitor}} | Wolfgang Fahl=
 
= Tourdata =
 
{{{!}} class='wikitable'
 
 
! colspan='2' {{!}}Tour
 
! colspan='2' {{!}}Tour
 
{{!}}-
 
{{!}}-
Line 323: Line 75:
 
{{!}}-
 
{{!}}-
 
}}
 
}}
!date
+
![[Property:Tour date|date]]
{{!}}&nbsp;{{#if:{{{date|}}}|{{{date|}}}|}}
+
{{!}}&nbsp;{{#if:{{{date|}}}|{{{date}}}|}}
 
{{!}}-
 
{{!}}-
!target
+
![[Property:Tour target|target]]
{{!}}&nbsp;{{#if:{{{target|}}}|[[{{{target|}}}]]|}}
+
{{!}}&nbsp;{{#if:{{{target|}}}|{{{target}}}|}}→[[{{{target|}}}]]
 
{{!}}-
 
{{!}}-
!weather
+
![[Property:Tour weather|weather]]
{{!}}&nbsp;{{#if:{{{weather|}}}|{{{weather|}}}|}}
+
{{!}}&nbsp;{{#if:{{{weather|}}}|{{{weather}}}|}}
 
{{!}}-
 
{{!}}-
!location
+
![[Property:Tour location|location]]
{{!}}&nbsp;{{#if:{{{location|}}}|{{{location|}}}|}}
+
{{!}}&nbsp;{{#if:{{{location|}}}|{{{location}}}|}}
 
{{!}}-
 
{{!}}-
!coordinates
+
![[Property:Tour coordinates|coordinates]]
{{!}}&nbsp;{{#if:{{{coordinates|}}}|{{{coordinates|}}}|}}
+
{{!}}&nbsp;{{#if:{{{coordinates|}}}|{{{coordinates}}}|}}
 
{{!}}-
 
{{!}}-
!trip
+
![[Property:Tour trip|trip]]
{{!}}&nbsp;{{#if:{{{trip|}}}|[[{{{trip|}}}]]|}}
+
{{!}}&nbsp;{{#if:{{{trip|}}}|{{{trip}}}|}}→[[{{{trip|}}}]]
 
{{!}}-
 
{{!}}-
!track
+
![[Property:Tour track|track]]
{{!}}&nbsp;{{#if:{{{track|}}}|{{{track|}}}|}}
+
{{!}}&nbsp;{{#if:{{{track|}}}|{{{track}}}|}}
 
{{!}}-
 
{{!}}-
!stay
+
![[Property:Tour stay|stay]]
{{!}}&nbsp;{{#if:{{{stay|}}}|{{{stay|}}}|}}
+
{{!}}&nbsp;{{#if:{{{stay|}}}|{{{stay}}}|}}
 
{{!}}-
 
{{!}}-
!shop
+
![[Property:Tour shop|shop]]
{{!}}&nbsp;{{#if:{{{shop|}}}|{{{shop|}}}|}}
+
{{!}}&nbsp;{{#if:{{{shop|}}}|{{{shop}}}|}}
 
{{!}}-
 
{{!}}-
!distance
+
![[Property:Tour distance|distance]]
{{!}}&nbsp;{{#if:{{{distance|}}}|{{{distance|}}}|}}
+
{{!}}&nbsp;{{#if:{{{distance|}}}|{{{distance}}}|}}
 
{{!}}-
 
{{!}}-
!comment
+
![[Property:Tour comment|comment]]
{{!}}&nbsp;{{#if:{{{comment|}}}|{{{comment|}}}|}}
+
{{!}}&nbsp;{{#if:{{{comment|}}}|{{{comment}}}|}}
 
{{!}}-
 
{{!}}-
 
{{!}}}
 
{{!}}}
 
}}
 
}}
}}
+
[[Category:Tour]]{{#default_form:Tour}}
}}
 
 
</includeonly>
 
</includeonly>

Latest revision as of 16:21, 19 January 2025

This is the BITPlan Y-Prinzip ProfiWiki-Template for "Tour".

see also

see also

Usage

{{Tour
|date=
|target=
|weather=
|location=
|coordinates=
|trip=
|track=
|stay=
|shop=
|distance=
|comment=
|storemode=property or subobject or none"
}}