Template:Tour

From BITPlan E-Bike Wiki
Jump to navigation Jump to search

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.