Template:CANInfo

From BITPlan Wiki
Jump to navigation Jump to search

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.