Difference between revisions of "Template:CANInfo"

From BITPlan Wiki
Jump to navigation Jump to search
(created by WikiTask 2017-04-18T10:15:35Z)
 
m (created by WikiTask 2017-04-20T09:54:51Z)
 
(One intermediate revision by the same user not shown)
Line 17: Line 17:
 
<pre>{{CANInfo
 
<pre>{{CANInfo
 
|name=
 
|name=
 +
|description=
 +
|unit=
 +
|pid=
 
|storemode=subobject
 
|storemode=subobject
 
}}
 
}}
Line 24: Line 27:
 
<pre>{{CANInfo
 
<pre>{{CANInfo
 
|name=
 
|name=
 +
|description=
 +
|unit=
 +
|pid=
 
|storemode=property
 
|storemode=property
 
}}
 
}}
Line 31: Line 37:
 
<pre>{{CANInfo
 
<pre>{{CANInfo
 
|name=
 
|name=
 +
|description=
 +
|unit=
 +
|pid=
 
|storemode=none
 
|storemode=none
 
}}
 
}}
Line 39: Line 48:
 
<pre>{{CANInfo
 
<pre>{{CANInfo
 
|name=
 
|name=
 +
|description=
 +
|unit=
 +
|pid=
 
|viewmode=tableheader
 
|viewmode=tableheader
 
}}
 
}}
Line 46: Line 58:
 
<pre>{{CANInfo
 
<pre>{{CANInfo
 
|name=
 
|name=
 +
|description=
 +
|unit=
 +
|pid=
 
|viewmode=tablerow
 
|viewmode=tablerow
 
}}
 
}}
Line 53: Line 68:
 
<pre>{{CANInfo
 
<pre>{{CANInfo
 
|name=
 
|name=
 +
|description=
 +
|unit=
 +
|pid=
 
|viewmode=tablefooter
 
|viewmode=tablefooter
 
}}
 
}}
Line 60: Line 78:
 
<pre>{{CANInfo
 
<pre>{{CANInfo
 
|name=
 
|name=
 +
|description=
 +
|unit=
 +
|pid=
 
|viewmode=labelfield
 
|viewmode=labelfield
 
}}
 
}}
Line 68: Line 89:
 
{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA CANInfo<br>|}}
 
{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA CANInfo<br>|}}
 
{{#if:{{{?name|}}}|"{{{?name}}}" is name of it <br>|}}
 
{{#if:{{{?name|}}}|"{{{?name}}}" is name of it <br>|}}
 +
{{#if:{{{?description|}}}|"{{{?description}}}" is description of it <br>|}}
 +
{{#if:{{{?unit|}}}|"{{{?unit}}}" is unit of it <br>|}}
 +
{{#if:{{{?pid|}}}|"{{{?pid}}}" is pid of it <br>|}}
 
|#default={{#switch:{{{storemode|}}}
 
|#default={{#switch:{{{storemode|}}}
 
|none=
 
|none=
Line 73: Line 97:
 
|isA=CANInfo
 
|isA=CANInfo
 
|CANInfo name={{{name|}}}
 
|CANInfo name={{{name|}}}
 +
|CANInfo description={{{description|}}}
 +
|CANInfo unit={{{unit|}}}
 +
|CANInfo pid={{{pid|}}}
 
}}
 
}}
 
|#default={{#set:
 
|#default={{#set:
 
|isA=CANInfo
 
|isA=CANInfo
 
|CANInfo name={{{name|}}}
 
|CANInfo name={{{name|}}}
 +
|CANInfo description={{{description|}}}
 +
|CANInfo unit={{{unit|}}}
 +
|CANInfo pid={{{pid|}}}
 
}}
 
}}
 
}}
 
}}
Line 82: Line 112:
 
|masterdetail=
 
|masterdetail=
 
|tableheader={{{!}} class='wikitable'
 
|tableheader={{{!}} class='wikitable'
!name
+
!name!!description!!unit!!pid
 
{{!}}-
 
{{!}}-
 
|tablerow=
 
|tablerow=
{{!}}{{{name|}}}
+
{{!}}{{{name|}}}{{!}}{{!}}{{{description|}}}{{!}}{{!}}{{{unit|}}}{{!}}{{!}}{{{pid|}}}
 
{{!}}-
 
{{!}}-
 
|tablefooter={{!}}}
 
|tablefooter={{!}}}
 
|labelfield=
 
|labelfield=
name={{#if:{{{name|}}}|{{{name|}}}|}}<br>|#default={{{!}} class='wikitable'
+
name={{#if:{{{name|}}}|{{{name|}}}|}}<br>description={{#if:{{{description|}}}|{{{description|}}}|}}<br>unit={{#if:{{{unit|}}}|{{{unit|}}}|}}<br>pid={{#if:{{{pid|}}}|[[{{{pid|}}}]]|}}<br>|#default={{{!}} class='wikitable'
 
! colspan='2' {{!}}CANInfo
 
! colspan='2' {{!}}CANInfo
 
{{!}}-
 
{{!}}-
Line 98: Line 128:
 
!name
 
!name
 
{{!}}&nbsp;{{#if:{{{name|}}}|{{{name|}}}|}}
 
{{!}}&nbsp;{{#if:{{{name|}}}|{{{name|}}}|}}
 +
{{!}}-
 +
!description
 +
{{!}}&nbsp;{{#if:{{{description|}}}|{{{description|}}}|}}
 +
{{!}}-
 +
!unit
 +
{{!}}&nbsp;{{#if:{{{unit|}}}|{{{unit|}}}|}}
 +
{{!}}-
 +
!pid
 +
{{!}}&nbsp;{{#if:{{{pid|}}}|[[{{{pid|}}}]]|}}
 
{{!}}-
 
{{!}}-
 
{{!}}}
 
{{!}}}
Line 110: Line 149:
 
</noinclude><includeonly>{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA CANInfo<br>|}}
 
</noinclude><includeonly>{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA CANInfo<br>|}}
 
{{#if:{{{?name|}}}|"{{{?name}}}" is name of it <br>|}}
 
{{#if:{{{?name|}}}|"{{{?name}}}" is name of it <br>|}}
 +
{{#if:{{{?description|}}}|"{{{?description}}}" is description of it <br>|}}
 +
{{#if:{{{?unit|}}}|"{{{?unit}}}" is unit of it <br>|}}
 +
{{#if:{{{?pid|}}}|"{{{?pid}}}" is pid of it <br>|}}
 
|#default={{#switch:{{{storemode|}}}
 
|#default={{#switch:{{{storemode|}}}
 
|none=
 
|none=
Line 115: Line 157:
 
|isA=CANInfo
 
|isA=CANInfo
 
|CANInfo name={{{name|}}}
 
|CANInfo name={{{name|}}}
 +
|CANInfo description={{{description|}}}
 +
|CANInfo unit={{{unit|}}}
 +
|CANInfo pid={{{pid|}}}
 
}}
 
}}
 
|#default={{#set:
 
|#default={{#set:
 
|isA=CANInfo
 
|isA=CANInfo
 
|CANInfo name={{{name|}}}
 
|CANInfo name={{{name|}}}
 +
|CANInfo description={{{description|}}}
 +
|CANInfo unit={{{unit|}}}
 +
|CANInfo pid={{{pid|}}}
 
}}
 
}}
 
}}
 
}}
Line 124: Line 172:
 
|masterdetail=
 
|masterdetail=
 
|tableheader={{{!}} class='wikitable'
 
|tableheader={{{!}} class='wikitable'
!name
+
!name!!description!!unit!!pid
 
{{!}}-
 
{{!}}-
 
|tablerow=
 
|tablerow=
{{!}}{{{name|}}}
+
{{!}}{{{name|}}}{{!}}{{!}}{{{description|}}}{{!}}{{!}}{{{unit|}}}{{!}}{{!}}{{{pid|}}}
 
{{!}}-
 
{{!}}-
 
|tablefooter={{!}}}
 
|tablefooter={{!}}}
 
|labelfield=
 
|labelfield=
name={{#if:{{{name|}}}|{{{name|}}}|}}<br>|#default={{{!}} class='wikitable'
+
name={{#if:{{{name|}}}|{{{name|}}}|}}<br>description={{#if:{{{description|}}}|{{{description|}}}|}}<br>unit={{#if:{{{unit|}}}|{{{unit|}}}|}}<br>pid={{#if:{{{pid|}}}|[[{{{pid|}}}]]|}}<br>|#default={{{!}} class='wikitable'
 
! colspan='2' {{!}}CANInfo
 
! colspan='2' {{!}}CANInfo
 
{{!}}-
 
{{!}}-
Line 140: Line 188:
 
!name
 
!name
 
{{!}}&nbsp;{{#if:{{{name|}}}|{{{name|}}}|}}
 
{{!}}&nbsp;{{#if:{{{name|}}}|{{{name|}}}|}}
 +
{{!}}-
 +
!description
 +
{{!}}&nbsp;{{#if:{{{description|}}}|{{{description|}}}|}}
 +
{{!}}-
 +
!unit
 +
{{!}}&nbsp;{{#if:{{{unit|}}}|{{{unit|}}}|}}
 +
{{!}}-
 +
!pid
 +
{{!}}&nbsp;{{#if:{{{pid|}}}|[[{{{pid|}}}]]|}}
 
{{!}}-
 
{{!}}-
 
{{!}}}
 
{{!}}}

Latest revision as of 10:54, 20 April 2017

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

Usage

storemode subobject

{{CANInfo
|name=
|description=
|unit=
|pid=
|storemode=subobject
}}

storemode property

{{CANInfo
|name=
|description=
|unit=
|pid=
|storemode=property
}}

storemode none

{{CANInfo
|name=
|description=
|unit=
|pid=
|storemode=none
}}


viewmode tableheader

{{CANInfo
|name=
|description=
|unit=
|pid=
|viewmode=tableheader
}}

viewmode tablerow

{{CANInfo
|name=
|description=
|unit=
|pid=
|viewmode=tablerow
}}

viewmode tablefooter

{{CANInfo
|name=
|description=
|unit=
|pid=
|viewmode=tablefooter
}}

viewmode labelfield

{{CANInfo
|name=
|description=
|unit=
|pid=
|viewmode=labelfield
}}

Source (pretty printed)

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

Source

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