Difference between revisions of "Template:Traininglocation"

From BITPlan Wiki
Jump to navigation Jump to search
(created by WikiTask 2017-11-05T16:11:44Z)
 
m (created by WikiTask 2017-11-08T16:56:00Z)
Line 20: Line 20:
 
|lon=
 
|lon=
 
|url=
 
|url=
 +
|coordinate=
 
|storemode=subobject
 
|storemode=subobject
 
}}
 
}}
Line 30: Line 31:
 
|lon=
 
|lon=
 
|url=
 
|url=
 +
|coordinate=
 
|storemode=property
 
|storemode=property
 
}}
 
}}
Line 40: Line 42:
 
|lon=
 
|lon=
 
|url=
 
|url=
 +
|coordinate=
 
|storemode=none
 
|storemode=none
 
}}
 
}}
Line 51: Line 54:
 
|lon=
 
|lon=
 
|url=
 
|url=
 +
|coordinate=
 
|viewmode=tableheader
 
|viewmode=tableheader
 
}}
 
}}
Line 61: Line 65:
 
|lon=
 
|lon=
 
|url=
 
|url=
 +
|coordinate=
 
|viewmode=tablerow
 
|viewmode=tablerow
 
}}
 
}}
Line 71: Line 76:
 
|lon=
 
|lon=
 
|url=
 
|url=
 +
|coordinate=
 
|viewmode=tablefooter
 
|viewmode=tablefooter
 
}}
 
}}
Line 81: Line 87:
 
|lon=
 
|lon=
 
|url=
 
|url=
 +
|coordinate=
 
|viewmode=labelfield
 
|viewmode=labelfield
 
}}
 
}}
Line 92: Line 99:
 
{{#if:{{{?lon|}}}|"{{{?lon}}}" is lon of it <br>|}}
 
{{#if:{{{?lon|}}}|"{{{?lon}}}" is lon of it <br>|}}
 
{{#if:{{{?url|}}}|"{{{?url}}}" is url of it <br>|}}
 
{{#if:{{{?url|}}}|"{{{?url}}}" is url of it <br>|}}
 +
{{#if:{{{?coordinate|}}}|"{{{?coordinate}}}" is coordinate of it <br>|}}
 
|#default={{#switch:{{{storemode|}}}
 
|#default={{#switch:{{{storemode|}}}
 
|none=
 
|none=
Line 100: Line 108:
 
|Traininglocation lon={{{lon|}}}
 
|Traininglocation lon={{{lon|}}}
 
|Traininglocation url={{{url|}}}
 
|Traininglocation url={{{url|}}}
 +
|Traininglocation coordinate={{{coordinate|}}}
 
}}
 
}}
 
|#default={{#set:
 
|#default={{#set:
Line 107: Line 116:
 
|Traininglocation lon={{{lon|}}}
 
|Traininglocation lon={{{lon|}}}
 
|Traininglocation url={{{url|}}}
 
|Traininglocation url={{{url|}}}
 +
|Traininglocation coordinate={{{coordinate|}}}
 
}}
 
}}
 
}}
 
}}
Line 112: Line 122:
 
|masterdetail=
 
|masterdetail=
 
|tableheader={{{!}} class='wikitable'
 
|tableheader={{{!}} class='wikitable'
!name!!lat!!lon!!url
+
!name!!lat!!lon!!url!!coordinate
 
{{!}}-
 
{{!}}-
 
|tablerow=
 
|tablerow=
{{!}}{{{name|}}}{{!}}{{!}}{{{lat|}}}{{!}}{{!}}{{{lon|}}}{{!}}{{!}}{{{url|}}}
+
{{!}}{{{name|}}}{{!}}{{!}}{{{lat|}}}{{!}}{{!}}{{{lon|}}}{{!}}{{!}}{{{url|}}}{{!}}{{!}}{{{coordinate|}}}
 
{{!}}-
 
{{!}}-
 
|tablefooter={{!}}}
 
|tablefooter={{!}}}
 
|labelfield=
 
|labelfield=
name={{#if:{{{name|}}}|{{{name|}}}|}}<br>lat={{#if:{{{lat|}}}|{{{lat|}}}|}}<br>lon={{#if:{{{lon|}}}|{{{lon|}}}|}}<br>url={{#if:{{{url|}}}|{{{url|}}}|}}<br>|#default={{{!}} class='wikitable'
+
name={{#if:{{{name|}}}|{{{name|}}}|}}<br>lat={{#if:{{{lat|}}}|{{{lat|}}}|}}<br>lon={{#if:{{{lon|}}}|{{{lon|}}}|}}<br>url={{#if:{{{url|}}}|{{{url|}}}|}}<br>coordinate={{#if:{{{coordinate|}}}|{{{coordinate|}}}|}}<br>|#default={{{!}} class='wikitable'
 
! colspan='2' {{!}}Traininglocation
 
! colspan='2' {{!}}Traininglocation
 
{{!}}-
 
{{!}}-
Line 137: Line 147:
 
!url
 
!url
 
{{!}}&nbsp;{{#if:{{{url|}}}|{{{url|}}}|}}
 
{{!}}&nbsp;{{#if:{{{url|}}}|{{{url|}}}|}}
 +
{{!}}-
 +
!maploc
 +
{{!}}&nbsp;{{#if:{{{coordinate|}}}|{{{coordinate|}}}|}}
 
{{!}}-
 
{{!}}-
 
{{!}}}
 
{{!}}}
Line 152: Line 165:
 
{{#if:{{{?lon|}}}|"{{{?lon}}}" is lon of it <br>|}}
 
{{#if:{{{?lon|}}}|"{{{?lon}}}" is lon of it <br>|}}
 
{{#if:{{{?url|}}}|"{{{?url}}}" is url of it <br>|}}
 
{{#if:{{{?url|}}}|"{{{?url}}}" is url of it <br>|}}
 +
{{#if:{{{?coordinate|}}}|"{{{?coordinate}}}" is coordinate of it <br>|}}
 
|#default={{#switch:{{{storemode|}}}
 
|#default={{#switch:{{{storemode|}}}
 
|none=
 
|none=
Line 160: Line 174:
 
|Traininglocation lon={{{lon|}}}
 
|Traininglocation lon={{{lon|}}}
 
|Traininglocation url={{{url|}}}
 
|Traininglocation url={{{url|}}}
 +
|Traininglocation coordinate={{{coordinate|}}}
 
}}
 
}}
 
|#default={{#set:
 
|#default={{#set:
Line 167: Line 182:
 
|Traininglocation lon={{{lon|}}}
 
|Traininglocation lon={{{lon|}}}
 
|Traininglocation url={{{url|}}}
 
|Traininglocation url={{{url|}}}
 +
|Traininglocation coordinate={{{coordinate|}}}
 
}}
 
}}
 
}}
 
}}
Line 172: Line 188:
 
|masterdetail=
 
|masterdetail=
 
|tableheader={{{!}} class='wikitable'
 
|tableheader={{{!}} class='wikitable'
!name!!lat!!lon!!url
+
!name!!lat!!lon!!url!!coordinate
 
{{!}}-
 
{{!}}-
 
|tablerow=
 
|tablerow=
{{!}}{{{name|}}}{{!}}{{!}}{{{lat|}}}{{!}}{{!}}{{{lon|}}}{{!}}{{!}}{{{url|}}}
+
{{!}}{{{name|}}}{{!}}{{!}}{{{lat|}}}{{!}}{{!}}{{{lon|}}}{{!}}{{!}}{{{url|}}}{{!}}{{!}}{{{coordinate|}}}
 
{{!}}-
 
{{!}}-
 
|tablefooter={{!}}}
 
|tablefooter={{!}}}
 
|labelfield=
 
|labelfield=
name={{#if:{{{name|}}}|{{{name|}}}|}}<br>lat={{#if:{{{lat|}}}|{{{lat|}}}|}}<br>lon={{#if:{{{lon|}}}|{{{lon|}}}|}}<br>url={{#if:{{{url|}}}|{{{url|}}}|}}<br>|#default={{{!}} class='wikitable'
+
name={{#if:{{{name|}}}|{{{name|}}}|}}<br>lat={{#if:{{{lat|}}}|{{{lat|}}}|}}<br>lon={{#if:{{{lon|}}}|{{{lon|}}}|}}<br>url={{#if:{{{url|}}}|{{{url|}}}|}}<br>coordinate={{#if:{{{coordinate|}}}|{{{coordinate|}}}|}}<br>|#default={{{!}} class='wikitable'
 
! colspan='2' {{!}}Traininglocation
 
! colspan='2' {{!}}Traininglocation
 
{{!}}-
 
{{!}}-
Line 197: Line 213:
 
!url
 
!url
 
{{!}}&nbsp;{{#if:{{{url|}}}|{{{url|}}}|}}
 
{{!}}&nbsp;{{#if:{{{url|}}}|{{{url|}}}|}}
 +
{{!}}-
 +
!maploc
 +
{{!}}&nbsp;{{#if:{{{coordinate|}}}|{{{coordinate|}}}|}}
 
{{!}}-
 
{{!}}-
 
{{!}}}
 
{{!}}}

Revision as of 17:56, 8 November 2017

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

Usage

storemode subobject

{{Traininglocation
|name=
|lat=
|lon=
|url=
|coordinate=
|storemode=subobject
}}

storemode property

{{Traininglocation
|name=
|lat=
|lon=
|url=
|coordinate=
|storemode=property
}}

storemode none

{{Traininglocation
|name=
|lat=
|lon=
|url=
|coordinate=
|storemode=none
}}


viewmode tableheader

{{Traininglocation
|name=
|lat=
|lon=
|url=
|coordinate=
|viewmode=tableheader
}}

viewmode tablerow

{{Traininglocation
|name=
|lat=
|lon=
|url=
|coordinate=
|viewmode=tablerow
}}

viewmode tablefooter

{{Traininglocation
|name=
|lat=
|lon=
|url=
|coordinate=
|viewmode=tablefooter
}}

viewmode labelfield

{{Traininglocation
|name=
|lat=
|lon=
|url=
|coordinate=
|viewmode=labelfield
}}

Source (pretty printed)

{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA Traininglocation<br>|}}
{{#if:{{{?name|}}}|"{{{?name}}}" is name of it <br>|}}
{{#if:{{{?lat|}}}|"{{{?lat}}}" is lat of it <br>|}}
{{#if:{{{?lon|}}}|"{{{?lon}}}" is lon of it <br>|}}
{{#if:{{{?url|}}}|"{{{?url}}}" is url of it <br>|}}
{{#if:{{{?coordinate|}}}|"{{{?coordinate}}}" is coordinate of it <br>|}}
|#default={{#switch:{{{storemode|}}}
|none=
|subobject={{#subobject:-
|isA=Traininglocation
|Traininglocation name={{{name|}}}
|Traininglocation lat={{{lat|}}}
|Traininglocation lon={{{lon|}}}
|Traininglocation url={{{url|}}}
|Traininglocation coordinate={{{coordinate|}}}
}}
|#default={{#set:
|isA=Traininglocation
|Traininglocation name={{{name|}}}
|Traininglocation lat={{{lat|}}}
|Traininglocation lon={{{lon|}}}
|Traininglocation url={{{url|}}}
|Traininglocation coordinate={{{coordinate|}}}
}}
}}
{{#switch: {{{viewmode|}}}
|masterdetail=
|tableheader={{{!}} class='wikitable'
!name!!lat!!lon!!url!!coordinate
{{!}}-
|tablerow=
{{!}}{{{name|}}}{{!}}{{!}}{{{lat|}}}{{!}}{{!}}{{{lon|}}}{{!}}{{!}}{{{url|}}}{{!}}{{!}}{{{coordinate|}}}
{{!}}-
|tablefooter={{!}}}
|labelfield=
name={{#if:{{{name|}}}|{{{name|}}}|}}<br>lat={{#if:{{{lat|}}}|{{{lat|}}}|}}<br>lon={{#if:{{{lon|}}}|{{{lon|}}}|}}<br>url={{#if:{{{url|}}}|{{{url|}}}|}}<br>coordinate={{#if:{{{coordinate|}}}|{{{coordinate|}}}|}}<br>|#default={{{!}} class='wikitable'
! colspan='2' {{!}}Traininglocation
{{!}}-
{{#switch:{{{storemode|}}}|property=
! colspan='2' style='text-align:left' {{!}} {{Icon|name=edit|size=24}}{{Link|target=Special:FormEdit/Traininglocation/{{FULLPAGENAME}}|title=edit}}
{{!}}-
}}
!name
{{!}}&nbsp;{{#if:{{{name|}}}|{{{name|}}}|}}
{{!}}-
!lat
{{!}}&nbsp;{{#if:{{{lat|}}}|{{{lat|}}}|}}
{{!}}-
!lon
{{!}}&nbsp;{{#if:{{{lon|}}}|{{{lon|}}}|}}
{{!}}-
!url
{{!}}&nbsp;{{#if:{{{url|}}}|{{{url|}}}|}}
{{!}}-
!maploc
{{!}}&nbsp;{{#if:{{{coordinate|}}}|{{{coordinate|}}}|}}
{{!}}-
{{!}}}
}}
}}
[[Category:Traininglocation]]{{#default_form:Traininglocation}}

Source

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