Difference between revisions of "Template:Tour"

From BITPlan E-Bike Wiki
Jump to navigation Jump to search
(Created page with "<noinclude> <!-- -- Copyright (C) 2015-2017 BITPlan GmbH -- -- Pater-Delp-Str. -- 1 -- D-47877 -- Willich-Schiefbahn -- -- http://www.bitplan.com -- --...")
 
Line 292: Line 292:
 
|labelfield=
 
|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=
 
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=
 +
|next={{{target|}}}
 +
|category={{{trip|}}}
 +
|categoryIcon=bicycle
 +
}}
 
{{Location|category={{{trip|}}}|location={{{location|}}}|coordinates={{{coordinates|}}}|zoom={{{zoom|10}}} }}
 
{{Location|category={{{trip|}}}|location={{{location|}}}|coordinates={{{coordinates|}}}|zoom={{{zoom|10}}} }}
 
= Weather =
 
= Weather =

Revision as of 09:04, 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.