Template:CANInfo

From BITPlan Wiki
Revision as of 11:15, 18 April 2017 by Wf (talk | contribs) (created by WikiTask 2017-04-18T10:15:35Z)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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=
|storemode=subobject
}}

storemode property

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

storemode none

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


viewmode tableheader

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

viewmode tablerow

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

viewmode tablefooter

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

viewmode labelfield

{{CANInfo
|name=
|viewmode=labelfield
}}

Source (pretty printed)

{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA CANInfo<br>|}}
{{#if:{{{?name|}}}|"{{{?name}}}" is name of it <br>|}}
|#default={{#switch:{{{storemode|}}}
|none=
|subobject={{#subobject:-
|isA=CANInfo
|CANInfo name={{{name|}}}
}}
|#default={{#set:
|isA=CANInfo
|CANInfo name={{{name|}}}
}}
}}
{{#switch: {{{viewmode|}}}
|masterdetail=
|tableheader={{{!}} class='wikitable'
!name
{{!}}-
|tablerow=
{{!}}{{{name|}}}
{{!}}-
|tablefooter={{!}}}
|labelfield=
name={{#if:{{{name|}}}|{{{name|}}}|}}<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|}}}|}}
{{!}}-
{{!}}}
}}
}}

Source

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