Difference between revisions of "Template:CANInfo"

From BITPlan Wiki
Jump to navigation Jump to search
m (created by WikiTask 2017-04-20T06:50:42Z)
m (created by WikiTask 2017-04-20T09:54:51Z)
 
Line 18: Line 18:
 
|name=
 
|name=
 
|description=
 
|description=
 +
|unit=
 +
|pid=
 
|storemode=subobject
 
|storemode=subobject
 
}}
 
}}
Line 26: Line 28:
 
|name=
 
|name=
 
|description=
 
|description=
 +
|unit=
 +
|pid=
 
|storemode=property
 
|storemode=property
 
}}
 
}}
Line 34: Line 38:
 
|name=
 
|name=
 
|description=
 
|description=
 +
|unit=
 +
|pid=
 
|storemode=none
 
|storemode=none
 
}}
 
}}
Line 43: Line 49:
 
|name=
 
|name=
 
|description=
 
|description=
 +
|unit=
 +
|pid=
 
|viewmode=tableheader
 
|viewmode=tableheader
 
}}
 
}}
Line 51: Line 59:
 
|name=
 
|name=
 
|description=
 
|description=
 +
|unit=
 +
|pid=
 
|viewmode=tablerow
 
|viewmode=tablerow
 
}}
 
}}
Line 59: Line 69:
 
|name=
 
|name=
 
|description=
 
|description=
 +
|unit=
 +
|pid=
 
|viewmode=tablefooter
 
|viewmode=tablefooter
 
}}
 
}}
Line 67: Line 79:
 
|name=
 
|name=
 
|description=
 
|description=
 +
|unit=
 +
|pid=
 
|viewmode=labelfield
 
|viewmode=labelfield
 
}}
 
}}
Line 76: Line 90:
 
{{#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:{{{?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 82: Line 98:
 
|CANInfo name={{{name|}}}
 
|CANInfo name={{{name|}}}
 
|CANInfo description={{{description|}}}
 
|CANInfo description={{{description|}}}
 +
|CANInfo unit={{{unit|}}}
 +
|CANInfo pid={{{pid|}}}
 
}}
 
}}
 
|#default={{#set:
 
|#default={{#set:
Line 87: Line 105:
 
|CANInfo name={{{name|}}}
 
|CANInfo name={{{name|}}}
 
|CANInfo description={{{description|}}}
 
|CANInfo description={{{description|}}}
 +
|CANInfo unit={{{unit|}}}
 +
|CANInfo pid={{{pid|}}}
 
}}
 
}}
 
}}
 
}}
Line 92: Line 112:
 
|masterdetail=
 
|masterdetail=
 
|tableheader={{{!}} class='wikitable'
 
|tableheader={{{!}} class='wikitable'
!name!!description
+
!name!!description!!unit!!pid
 
{{!}}-
 
{{!}}-
 
|tablerow=
 
|tablerow=
{{!}}{{{name|}}}{{!}}{{!}}{{{description|}}}
+
{{!}}{{{name|}}}{{!}}{{!}}{{{description|}}}{{!}}{{!}}{{{unit|}}}{{!}}{{!}}{{{pid|}}}
 
{{!}}-
 
{{!}}-
 
|tablefooter={{!}}}
 
|tablefooter={{!}}}
 
|labelfield=
 
|labelfield=
name={{#if:{{{name|}}}|{{{name|}}}|}}<br>description={{#if:{{{description|}}}|{{{description|}}}|}}<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 111: Line 131:
 
!description
 
!description
 
{{!}}&nbsp;{{#if:{{{description|}}}|{{{description|}}}|}}
 
{{!}}&nbsp;{{#if:{{{description|}}}|{{{description|}}}|}}
 +
{{!}}-
 +
!unit
 +
{{!}}&nbsp;{{#if:{{{unit|}}}|{{{unit|}}}|}}
 +
{{!}}-
 +
!pid
 +
{{!}}&nbsp;{{#if:{{{pid|}}}|[[{{{pid|}}}]]|}}
 
{{!}}-
 
{{!}}-
 
{{!}}}
 
{{!}}}
Line 124: Line 150:
 
{{#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:{{{?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 130: Line 158:
 
|CANInfo name={{{name|}}}
 
|CANInfo name={{{name|}}}
 
|CANInfo description={{{description|}}}
 
|CANInfo description={{{description|}}}
 +
|CANInfo unit={{{unit|}}}
 +
|CANInfo pid={{{pid|}}}
 
}}
 
}}
 
|#default={{#set:
 
|#default={{#set:
Line 135: Line 165:
 
|CANInfo name={{{name|}}}
 
|CANInfo name={{{name|}}}
 
|CANInfo description={{{description|}}}
 
|CANInfo description={{{description|}}}
 +
|CANInfo unit={{{unit|}}}
 +
|CANInfo pid={{{pid|}}}
 
}}
 
}}
 
}}
 
}}
Line 140: Line 172:
 
|masterdetail=
 
|masterdetail=
 
|tableheader={{{!}} class='wikitable'
 
|tableheader={{{!}} class='wikitable'
!name!!description
+
!name!!description!!unit!!pid
 
{{!}}-
 
{{!}}-
 
|tablerow=
 
|tablerow=
{{!}}{{{name|}}}{{!}}{{!}}{{{description|}}}
+
{{!}}{{{name|}}}{{!}}{{!}}{{{description|}}}{{!}}{{!}}{{{unit|}}}{{!}}{{!}}{{{pid|}}}
 
{{!}}-
 
{{!}}-
 
|tablefooter={{!}}}
 
|tablefooter={{!}}}
 
|labelfield=
 
|labelfield=
name={{#if:{{{name|}}}|{{{name|}}}|}}<br>description={{#if:{{{description|}}}|{{{description|}}}|}}<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 159: Line 191:
 
!description
 
!description
 
{{!}}&nbsp;{{#if:{{{description|}}}|{{{description|}}}|}}
 
{{!}}&nbsp;{{#if:{{{description|}}}|{{{description|}}}|}}
 +
{{!}}-
 +
!unit
 +
{{!}}&nbsp;{{#if:{{{unit|}}}|{{{unit|}}}|}}
 +
{{!}}-
 +
!pid
 +
{{!}}&nbsp;{{#if:{{{pid|}}}|[[{{{pid|}}}]]|}}
 
{{!}}-
 
{{!}}-
 
{{!}}}
 
{{!}}}

Latest revision as of 11: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.