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-20T06:50:42Z)
Line 17: Line 17:
 
<pre>{{CANInfo
 
<pre>{{CANInfo
 
|name=
 
|name=
 +
|description=
 
|storemode=subobject
 
|storemode=subobject
 
}}
 
}}
Line 24: Line 25:
 
<pre>{{CANInfo
 
<pre>{{CANInfo
 
|name=
 
|name=
 +
|description=
 
|storemode=property
 
|storemode=property
 
}}
 
}}
Line 31: Line 33:
 
<pre>{{CANInfo
 
<pre>{{CANInfo
 
|name=
 
|name=
 +
|description=
 
|storemode=none
 
|storemode=none
 
}}
 
}}
Line 39: Line 42:
 
<pre>{{CANInfo
 
<pre>{{CANInfo
 
|name=
 
|name=
 +
|description=
 
|viewmode=tableheader
 
|viewmode=tableheader
 
}}
 
}}
Line 46: Line 50:
 
<pre>{{CANInfo
 
<pre>{{CANInfo
 
|name=
 
|name=
 +
|description=
 
|viewmode=tablerow
 
|viewmode=tablerow
 
}}
 
}}
Line 53: Line 58:
 
<pre>{{CANInfo
 
<pre>{{CANInfo
 
|name=
 
|name=
 +
|description=
 
|viewmode=tablefooter
 
|viewmode=tablefooter
 
}}
 
}}
Line 60: Line 66:
 
<pre>{{CANInfo
 
<pre>{{CANInfo
 
|name=
 
|name=
 +
|description=
 
|viewmode=labelfield
 
|viewmode=labelfield
 
}}
 
}}
Line 68: Line 75:
 
{{#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>|}}
 
|#default={{#switch:{{{storemode|}}}
 
|#default={{#switch:{{{storemode|}}}
 
|none=
 
|none=
Line 73: Line 81:
 
|isA=CANInfo
 
|isA=CANInfo
 
|CANInfo name={{{name|}}}
 
|CANInfo name={{{name|}}}
 +
|CANInfo description={{{description|}}}
 
}}
 
}}
 
|#default={{#set:
 
|#default={{#set:
 
|isA=CANInfo
 
|isA=CANInfo
 
|CANInfo name={{{name|}}}
 
|CANInfo name={{{name|}}}
 +
|CANInfo description={{{description|}}}
 
}}
 
}}
 
}}
 
}}
Line 82: Line 92:
 
|masterdetail=
 
|masterdetail=
 
|tableheader={{{!}} class='wikitable'
 
|tableheader={{{!}} class='wikitable'
!name
+
!name!!description
 
{{!}}-
 
{{!}}-
 
|tablerow=
 
|tablerow=
{{!}}{{{name|}}}
+
{{!}}{{{name|}}}{{!}}{{!}}{{{description|}}}
 
{{!}}-
 
{{!}}-
 
|tablefooter={{!}}}
 
|tablefooter={{!}}}
 
|labelfield=
 
|labelfield=
name={{#if:{{{name|}}}|{{{name|}}}|}}<br>|#default={{{!}} class='wikitable'
+
name={{#if:{{{name|}}}|{{{name|}}}|}}<br>description={{#if:{{{description|}}}|{{{description|}}}|}}<br>|#default={{{!}} class='wikitable'
 
! colspan='2' {{!}}CANInfo
 
! colspan='2' {{!}}CANInfo
 
{{!}}-
 
{{!}}-
Line 98: Line 108:
 
!name
 
!name
 
{{!}}&nbsp;{{#if:{{{name|}}}|{{{name|}}}|}}
 
{{!}}&nbsp;{{#if:{{{name|}}}|{{{name|}}}|}}
 +
{{!}}-
 +
!description
 +
{{!}}&nbsp;{{#if:{{{description|}}}|{{{description|}}}|}}
 
{{!}}-
 
{{!}}-
 
{{!}}}
 
{{!}}}
Line 110: Line 123:
 
</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>|}}
 
|#default={{#switch:{{{storemode|}}}
 
|#default={{#switch:{{{storemode|}}}
 
|none=
 
|none=
Line 115: Line 129:
 
|isA=CANInfo
 
|isA=CANInfo
 
|CANInfo name={{{name|}}}
 
|CANInfo name={{{name|}}}
 +
|CANInfo description={{{description|}}}
 
}}
 
}}
 
|#default={{#set:
 
|#default={{#set:
 
|isA=CANInfo
 
|isA=CANInfo
 
|CANInfo name={{{name|}}}
 
|CANInfo name={{{name|}}}
 +
|CANInfo description={{{description|}}}
 
}}
 
}}
 
}}
 
}}
Line 124: Line 140:
 
|masterdetail=
 
|masterdetail=
 
|tableheader={{{!}} class='wikitable'
 
|tableheader={{{!}} class='wikitable'
!name
+
!name!!description
 
{{!}}-
 
{{!}}-
 
|tablerow=
 
|tablerow=
{{!}}{{{name|}}}
+
{{!}}{{{name|}}}{{!}}{{!}}{{{description|}}}
 
{{!}}-
 
{{!}}-
 
|tablefooter={{!}}}
 
|tablefooter={{!}}}
 
|labelfield=
 
|labelfield=
name={{#if:{{{name|}}}|{{{name|}}}|}}<br>|#default={{{!}} class='wikitable'
+
name={{#if:{{{name|}}}|{{{name|}}}|}}<br>description={{#if:{{{description|}}}|{{{description|}}}|}}<br>|#default={{{!}} class='wikitable'
 
! colspan='2' {{!}}CANInfo
 
! colspan='2' {{!}}CANInfo
 
{{!}}-
 
{{!}}-
Line 140: Line 156:
 
!name
 
!name
 
{{!}}&nbsp;{{#if:{{{name|}}}|{{{name|}}}|}}
 
{{!}}&nbsp;{{#if:{{{name|}}}|{{{name|}}}|}}
 +
{{!}}-
 +
!description
 +
{{!}}&nbsp;{{#if:{{{description|}}}|{{{description|}}}|}}
 
{{!}}-
 
{{!}}-
 
{{!}}}
 
{{!}}}

Revision as of 07:50, 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=
|storemode=subobject
}}

storemode property

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

storemode none

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


viewmode tableheader

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

viewmode tablerow

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

viewmode tablefooter

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

viewmode labelfield

{{CANInfo
|name=
|description=
|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>|}}
|#default={{#switch:{{{storemode|}}}
|none=
|subobject={{#subobject:-
|isA=CANInfo
|CANInfo name={{{name|}}}
|CANInfo description={{{description|}}}
}}
|#default={{#set:
|isA=CANInfo
|CANInfo name={{{name|}}}
|CANInfo description={{{description|}}}
}}
}}
{{#switch: {{{viewmode|}}}
|masterdetail=
|tableheader={{{!}} class='wikitable'
!name!!description
{{!}}-
|tablerow=
{{!}}{{{name|}}}{{!}}{{!}}{{{description|}}}
{{!}}-
|tablefooter={{!}}}
|labelfield=
name={{#if:{{{name|}}}|{{{name|}}}|}}<br>description={{#if:{{{description|}}}|{{{description|}}}|}}<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|}}}|}}
{{!}}-
{{!}}}
}}
}}

Source

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