Difference between revisions of "Template:Tour"

From BITPlan E-Bike Wiki
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 274: Line 274:
 
|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 293: Line 294:
 
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=
 
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
 
{{PageSequence
|prev=
+
|prev={{#ask: [[Tour target::{{FULLPAGENAME}}]] | link=none}}
 
|next={{{target|}}}
 
|next={{{target|}}}
 
|category={{{trip|}}}
 
|category={{{trip|}}}
Line 301: Line 302:
 
= Weather =
 
= Weather =
 
https://www.windfinder.com/forecast/{{{weather|}}}
 
https://www.windfinder.com/forecast/{{{weather|}}}
 +
{{#if: {{{stay|}}}|
 
= Stay =
 
= Stay =
 
{{{stay|}}}
 
{{{stay|}}}
 +
}}
 +
{{#if: {{{shop|}}}|
 
= Shop =
 
= Shop =
 
{{{shop|}}}
 
{{{shop|}}}
 +
}}
 
= Tour =
 
= Tour =
 
[{{{track|}}} {{FULLPAGENAME}}→{{{target|}}} ({{{distance|}}}) ] {{{comment|}}}→{{Link|target={{{target|}}}}}
 
[{{{track|}}} {{FULLPAGENAME}}→{{{target|}}} ({{{distance|}}}) ] {{{comment|}}}→{{Link|target={{{target|}}}}}
 
= What Links Here =
 
= What Links Here =
 
{{WhatLinksHere}}
 
{{WhatLinksHere}}
 +
{{#switch: {{#realname:visitor}} | Wolfgang Fahl=
 
= Tourdata =
 
= Tourdata =
 
{{{!}} class='wikitable'
 
{{{!}} class='wikitable'
Line 351: Line 357:
 
{{!}}-
 
{{!}}-
 
{{!}}}
 
{{!}}}
 +
}}
 
}}
 
}}
 
}}
 
}}
 
</includeonly>
 
</includeonly>

Latest revision as of 14:16, 22 July 2018

This is the template Tour. It belongs to the concept/topic Concept:Tour
You may find examples for the use of this template via the List of Tours.

Usage

storemode subobject

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

storemode property

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

storemode none

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


viewmode tableheader

{{Tour
|date=
|target=
|weather=
|location=
|coordinates=
|trip=
|track=
|stay=
|shop=
|distance=
|comment=
|viewmode=tableheader
}}

viewmode tablerow

{{Tour
|date=
|target=
|weather=
|location=
|coordinates=
|trip=
|track=
|stay=
|shop=
|distance=
|comment=
|viewmode=tablerow
}}

viewmode tablefooter

{{Tour
|date=
|target=
|weather=
|location=
|coordinates=
|trip=
|track=
|stay=
|shop=
|distance=
|comment=
|viewmode=tablefooter
}}

viewmode labelfield

{{Tour
|date=
|target=
|weather=
|location=
|coordinates=
|trip=
|track=
|stay=
|shop=
|distance=
|comment=
|viewmode=labelfield
}}

Source (pretty printed)

{{#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

Click on "Edit" to edit the noinclude-part Source of this Template.