Template:Traininglocation: Difference between revisions

From BITPlan Wiki
Jump to navigation Jump to search
m (created by WikiTask 2017-11-08T16:56:00Z)
m (created by WikiTask 2017-11-08T17:03:19Z)
Line 17: Line 17:
<pre>{{Traininglocation
<pre>{{Traininglocation
|name=
|name=
|lat=
|coordinate=
|lon=
|url=
|url=
|coordinate=
|storemode=subobject
|storemode=subobject
}}
}}
Line 28: Line 26:
<pre>{{Traininglocation
<pre>{{Traininglocation
|name=
|name=
|lat=
|coordinate=
|lon=
|url=
|url=
|coordinate=
|storemode=property
|storemode=property
}}
}}
Line 39: Line 35:
<pre>{{Traininglocation
<pre>{{Traininglocation
|name=
|name=
|lat=
|coordinate=
|lon=
|url=
|url=
|coordinate=
|storemode=none
|storemode=none
}}
}}
Line 51: Line 45:
<pre>{{Traininglocation
<pre>{{Traininglocation
|name=
|name=
|lat=
|coordinate=
|lon=
|url=
|url=
|coordinate=
|viewmode=tableheader
|viewmode=tableheader
}}
}}
Line 62: Line 54:
<pre>{{Traininglocation
<pre>{{Traininglocation
|name=
|name=
|lat=
|coordinate=
|lon=
|url=
|url=
|coordinate=
|viewmode=tablerow
|viewmode=tablerow
}}
}}
Line 73: Line 63:
<pre>{{Traininglocation
<pre>{{Traininglocation
|name=
|name=
|lat=
|coordinate=
|lon=
|url=
|url=
|coordinate=
|viewmode=tablefooter
|viewmode=tablefooter
}}
}}
Line 84: Line 72:
<pre>{{Traininglocation
<pre>{{Traininglocation
|name=
|name=
|lat=
|coordinate=
|lon=
|url=
|url=
|coordinate=
|viewmode=labelfield
|viewmode=labelfield
}}
}}
Line 96: Line 82:
{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA Traininglocation<br>|}}
{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA Traininglocation<br>|}}
{{#if:{{{?name|}}}|"{{{?name}}}" is name of it <br>|}}
{{#if:{{{?name|}}}|"{{{?name}}}" is name of it <br>|}}
{{#if:{{{?lat|}}}|"{{{?lat}}}" is lat of it <br>|}}
{{#if:{{{?coordinate|}}}|"{{{?coordinate}}}" is coordinate 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 105: Line 89:
|isA=Traininglocation
|isA=Traininglocation
|Traininglocation name={{{name|}}}
|Traininglocation name={{{name|}}}
|Traininglocation lat={{{lat|}}}
|Traininglocation coordinate={{{coordinate|}}}
|Traininglocation lon={{{lon|}}}
|Traininglocation url={{{url|}}}
|Traininglocation url={{{url|}}}
|Traininglocation coordinate={{{coordinate|}}}
}}
}}
|#default={{#set:
|#default={{#set:
|isA=Traininglocation
|isA=Traininglocation
|Traininglocation name={{{name|}}}
|Traininglocation name={{{name|}}}
|Traininglocation lat={{{lat|}}}
|Traininglocation coordinate={{{coordinate|}}}
|Traininglocation lon={{{lon|}}}
|Traininglocation url={{{url|}}}
|Traininglocation url={{{url|}}}
|Traininglocation coordinate={{{coordinate|}}}
}}
}}
}}
}}
Line 122: Line 102:
|masterdetail=
|masterdetail=
|tableheader={{{!}} class='wikitable'
|tableheader={{{!}} class='wikitable'
!name!!lat!!lon!!url!!coordinate
!name!!coordinate!!url
{{!}}-
{{!}}-
|tablerow=
|tablerow=
{{!}}{{{name|}}}{{!}}{{!}}{{{lat|}}}{{!}}{{!}}{{{lon|}}}{{!}}{{!}}{{{url|}}}{{!}}{{!}}{{{coordinate|}}}
{{!}}{{{name|}}}{{!}}{{!}}{{{coordinate|}}}{{!}}{{!}}{{{url|}}}
{{!}}-
{{!}}-
|tablefooter={{!}}}
|tablefooter={{!}}}
|labelfield=
|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'
name={{#if:{{{name|}}}|{{{name|}}}|}}<br>coordinate={{#if:{{{coordinate|}}}|{{{coordinate|}}}|}}<br>url={{#if:{{{url|}}}|{{{url|}}}|}}<br>|#default={{{!}} class='wikitable'
! colspan='2' {{!}}Traininglocation
! colspan='2' {{!}}Traininglocation
{{!}}-
{{!}}-
Line 139: Line 119:
{{!}}&nbsp;{{#if:{{{name|}}}|{{{name|}}}|}}
{{!}}&nbsp;{{#if:{{{name|}}}|{{{name|}}}|}}
{{!}}-
{{!}}-
!lat
!maploc
{{!}}&nbsp;{{#if:{{{lat|}}}|{{{lat|}}}|}}
{{!}}&nbsp;{{#if:{{{coordinate|}}}|{{{coordinate|}}}|}}
{{!}}-
!lon
{{!}}&nbsp;{{#if:{{{lon|}}}|{{{lon|}}}|}}
{{!}}-
{{!}}-
!url
!url
{{!}}&nbsp;{{#if:{{{url|}}}|{{{url|}}}|}}
{{!}}&nbsp;{{#if:{{{url|}}}|{{{url|}}}|}}
{{!}}-
!maploc
{{!}}&nbsp;{{#if:{{{coordinate|}}}|{{{coordinate|}}}|}}
{{!}}-
{{!}}-
{{!}}}
{{!}}}
Line 162: Line 136:
</noinclude><includeonly>{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA Traininglocation<br>|}}
</noinclude><includeonly>{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA Traininglocation<br>|}}
{{#if:{{{?name|}}}|"{{{?name}}}" is name of it <br>|}}
{{#if:{{{?name|}}}|"{{{?name}}}" is name of it <br>|}}
{{#if:{{{?lat|}}}|"{{{?lat}}}" is lat of it <br>|}}
{{#if:{{{?coordinate|}}}|"{{{?coordinate}}}" is coordinate 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 171: Line 143:
|isA=Traininglocation
|isA=Traininglocation
|Traininglocation name={{{name|}}}
|Traininglocation name={{{name|}}}
|Traininglocation lat={{{lat|}}}
|Traininglocation coordinate={{{coordinate|}}}
|Traininglocation lon={{{lon|}}}
|Traininglocation url={{{url|}}}
|Traininglocation url={{{url|}}}
|Traininglocation coordinate={{{coordinate|}}}
}}
}}
|#default={{#set:
|#default={{#set:
|isA=Traininglocation
|isA=Traininglocation
|Traininglocation name={{{name|}}}
|Traininglocation name={{{name|}}}
|Traininglocation lat={{{lat|}}}
|Traininglocation coordinate={{{coordinate|}}}
|Traininglocation lon={{{lon|}}}
|Traininglocation url={{{url|}}}
|Traininglocation url={{{url|}}}
|Traininglocation coordinate={{{coordinate|}}}
}}
}}
}}
}}
Line 188: Line 156:
|masterdetail=
|masterdetail=
|tableheader={{{!}} class='wikitable'
|tableheader={{{!}} class='wikitable'
!name!!lat!!lon!!url!!coordinate
!name!!coordinate!!url
{{!}}-
{{!}}-
|tablerow=
|tablerow=
{{!}}{{{name|}}}{{!}}{{!}}{{{lat|}}}{{!}}{{!}}{{{lon|}}}{{!}}{{!}}{{{url|}}}{{!}}{{!}}{{{coordinate|}}}
{{!}}{{{name|}}}{{!}}{{!}}{{{coordinate|}}}{{!}}{{!}}{{{url|}}}
{{!}}-
{{!}}-
|tablefooter={{!}}}
|tablefooter={{!}}}
|labelfield=
|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'
name={{#if:{{{name|}}}|{{{name|}}}|}}<br>coordinate={{#if:{{{coordinate|}}}|{{{coordinate|}}}|}}<br>url={{#if:{{{url|}}}|{{{url|}}}|}}<br>|#default={{{!}} class='wikitable'
! colspan='2' {{!}}Traininglocation
! colspan='2' {{!}}Traininglocation
{{!}}-
{{!}}-
Line 205: Line 173:
{{!}}&nbsp;{{#if:{{{name|}}}|{{{name|}}}|}}
{{!}}&nbsp;{{#if:{{{name|}}}|{{{name|}}}|}}
{{!}}-
{{!}}-
!lat
!maploc
{{!}}&nbsp;{{#if:{{{lat|}}}|{{{lat|}}}|}}
{{!}}&nbsp;{{#if:{{{coordinate|}}}|{{{coordinate|}}}|}}
{{!}}-
!lon
{{!}}&nbsp;{{#if:{{{lon|}}}|{{{lon|}}}|}}
{{!}}-
{{!}}-
!url
!url
{{!}}&nbsp;{{#if:{{{url|}}}|{{{url|}}}|}}
{{!}}&nbsp;{{#if:{{{url|}}}|{{{url|}}}|}}
{{!}}-
!maploc
{{!}}&nbsp;{{#if:{{{coordinate|}}}|{{{coordinate|}}}|}}
{{!}}-
{{!}}-
{{!}}}
{{!}}}

Revision as of 17:03, 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=
|coordinate=
|url=
|storemode=subobject
}}

storemode property

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

storemode none

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


viewmode tableheader

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

viewmode tablerow

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

viewmode tablefooter

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

viewmode labelfield

{{Traininglocation
|name=
|coordinate=
|url=
|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:{{{?coordinate|}}}|"{{{?coordinate}}}" is coordinate of it <br>|}}
{{#if:{{{?url|}}}|"{{{?url}}}" is url of it <br>|}}
|#default={{#switch:{{{storemode|}}}
|none=
|subobject={{#subobject:-
|isA=Traininglocation
|Traininglocation name={{{name|}}}
|Traininglocation coordinate={{{coordinate|}}}
|Traininglocation url={{{url|}}}
}}
|#default={{#set:
|isA=Traininglocation
|Traininglocation name={{{name|}}}
|Traininglocation coordinate={{{coordinate|}}}
|Traininglocation url={{{url|}}}
}}
}}
{{#switch: {{{viewmode|}}}
|masterdetail=
|tableheader={{{!}} class='wikitable'
!name!!coordinate!!url
{{!}}-
|tablerow=
{{!}}{{{name|}}}{{!}}{{!}}{{{coordinate|}}}{{!}}{{!}}{{{url|}}}
{{!}}-
|tablefooter={{!}}}
|labelfield=
name={{#if:{{{name|}}}|{{{name|}}}|}}<br>coordinate={{#if:{{{coordinate|}}}|{{{coordinate|}}}|}}<br>url={{#if:{{{url|}}}|{{{url|}}}|}}<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|}}}|}}
{{!}}-
!maploc
{{!}}&nbsp;{{#if:{{{coordinate|}}}|{{{coordinate|}}}|}}
{{!}}-
!url
{{!}}&nbsp;{{#if:{{{url|}}}|{{{url|}}}|}}
{{!}}-
{{!}}}
}}
}}
[[Category:Traininglocation]]{{#default_form:Traininglocation}}

Source

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