Difference between revisions of "Template:Location"

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 -- --...")
 
(Replaced content with "<noinclude> = usage = <pre> {{Location|location=Eigg|category=Scotland2018|coordinates=56° 54′ 12″ N, 6° 9′ 19″ W|zoom=10}} </pre> = Links = * {{Link|target=Temp...")
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
<!--
+
= usage =
  -- Copyright (C) 2015-2017 BITPlan GmbH
+
<pre>
  --
+
{{Location|location=Eigg|category=Scotland2018|coordinates=56° 54′ 12″ N, 6° 9′ 19″ W|zoom=10}}
  -- Pater-Delp-Str. -- 1
 
  -- D-47877 -- Willich-Schiefbahn
 
  --
 
  -- http://www.bitplan.com
 
  --
 
  --
 
-->
 
This is the template {{Link|target=Template:Tour|title=Tour}}.
 
It belongs to the concept/topic {{Link|target=:Concept:Tour}}<br>
 
You may find examples for the use of this template via the {{Link|target=List of Tours}}.
 
=== Usage ===
 
==== storemode subobject ====
 
<pre>{{Tour
 
|date=
 
|target=
 
|weather=
 
|location=
 
|coordinates=
 
|trip=
 
|track=
 
|stay=
 
|shop=
 
|distance=
 
|comment=
 
|storemode=subobject
 
}}
 
 
</pre>
 
</pre>
 
+
= Links =
==== storemode property ====
+
* {{Link|target=Template:MapAt}}
<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
 
|date=
 
|target=
 
|weather=
 
|location=
 
|coordinates=
 
|trip=
 
|track=
 
|stay=
 
|shop=
 
|distance=
 
|comment=
 
|viewmode=labelfield
 
}}
 
</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]]
 
+
[[Category:Location]]
</noinclude><includeonly>{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA Tour<br>|}}
+
</noinclude><includeonly>{{MapAt|coordinates={{{coordinates|}}}|zoom={{{zoom|10}}} }}
{{#if:{{{?date|}}}|"{{{?date}}}" is date of it <br>|}}
+
* https://de.wikipedia.org/wiki/{{{location|}}}
{{#if:{{{?target|}}}|"{{{?target}}}" is target of it <br>|}}
+
* https://en.wikipedia.org/wiki/{{{location|}}}
{{#if:{{{?weather|}}}|"{{{?weather}}}" is weather of it <br>|}}
+
[[Category:{{{category|Location}}}]]
{{#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=
 
{{Location|category={{{trip|}}}|location={{{location|}}}|coordinates={{{coordinates|}}}|zoom={{{zoom|10}}} }}
 
= Weather =
 
https://www.windfinder.com/forecast/{{{weather|}}}
 
= Stay =
 
{{{stay|}}}
 
= Shop =
 
{{{shop|}}}
 
= Tour =
 
[{{{track|}}} {{FULLPAGENAME}}→{{{target|}}} ({{{distance|}}}) ] {{{comment|}}}→{{Link|target={{{target|}}}}}
 
= What Links Here =
 
{{WhatLinksHere}}
 
= Tourdata =
 
{{{!}} 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|}}}|}}
 
{{!}}-
 
{{!}}}
 
}}
 
}}
 
 
</includeonly>
 
</includeonly>

Revision as of 19:18, 28 June 2018

usage

{{Location|location=Eigg|category=Scotland2018|coordinates=56° 54′ 12″ N, 6° 9′ 19″ W|zoom=10}}

Links