Template:Traininglocation
Jump to navigation
Jump to search
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= |storemode=subobject }}
storemode property
{{Traininglocation |name= |lat= |lon= |url= |storemode=property }}
storemode none
{{Traininglocation |name= |lat= |lon= |url= |storemode=none }}
viewmode tableheader
{{Traininglocation |name= |lat= |lon= |url= |viewmode=tableheader }}
viewmode tablerow
{{Traininglocation |name= |lat= |lon= |url= |viewmode=tablerow }}
{{Traininglocation |name= |lat= |lon= |url= |viewmode=tablefooter }}
viewmode labelfield
{{Traininglocation |name= |lat= |lon= |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:{{{?lat|}}}|"{{{?lat}}}" is lat of it <br>|}}
{{#if:{{{?lon|}}}|"{{{?lon}}}" is lon of it <br>|}}
{{#if:{{{?url|}}}|"{{{?url}}}" is url of it <br>|}}
|#default={{#switch:{{{storemode|}}}
|none=
|subobject={{#subobject:-
|isA=Traininglocation
|Traininglocation name={{{name|}}}
|Traininglocation lat={{{lat|}}}
|Traininglocation lon={{{lon|}}}
|Traininglocation url={{{url|}}}
}}
|#default={{#set:
|isA=Traininglocation
|Traininglocation name={{{name|}}}
|Traininglocation lat={{{lat|}}}
|Traininglocation lon={{{lon|}}}
|Traininglocation url={{{url|}}}
}}
}}
{{#switch: {{{viewmode|}}}
|masterdetail=
|tableheader={{{!}} class='wikitable'
!name!!lat!!lon!!url
{{!}}-
|tablerow=
{{!}}{{{name|}}}{{!}}{{!}}{{{lat|}}}{{!}}{{!}}{{{lon|}}}{{!}}{{!}}{{{url|}}}
{{!}}-
|tablefooter={{!}}}
|labelfield=
name={{#if:{{{name|}}}|{{{name|}}}|}}<br>lat={{#if:{{{lat|}}}|{{{lat|}}}|}}<br>lon={{#if:{{{lon|}}}|{{{lon|}}}|}}<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
{{!}} {{#if:{{{name|}}}|{{{name|}}}|}}
{{!}}-
!lat
{{!}} {{#if:{{{lat|}}}|{{{lat|}}}|}}
{{!}}-
!lon
{{!}} {{#if:{{{lon|}}}|{{{lon|}}}|}}
{{!}}-
!url
{{!}} {{#if:{{{url|}}}|{{{url|}}}|}}
{{!}}-
{{!}}}
}}
}}
[[Category:Traininglocation]]{{#default_form:Traininglocation}}
Source
Click on "Edit" to edit the noinclude-part Source of this Template.