Template:PID

From BITPlan Wiki
Revision as of 16:15, 10 June 2017 by Wf (talk | contribs)
Jump to navigation Jump to search

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

Usage

storemode subobject

{{PID
|id=
|name=
|description=
|links=
|examples=
|frequency=
|storemode=subobject
}}

storemode property

{{PID
|id=
|name=
|description=
|links=
|examples=
|frequency=
|storemode=property
}}

storemode none

{{PID
|id=
|name=
|description=
|links=
|examples=
|frequency=
|storemode=none
}}


viewmode tableheader

{{PID
|id=
|name=
|description=
|links=
|examples=
|frequency=
|viewmode=tableheader
}}

viewmode tablerow

{{PID
|id=
|name=
|description=
|links=
|examples=
|frequency=
|viewmode=tablerow
}}

viewmode tablefooter

{{PID
|id=
|name=
|description=
|links=
|examples=
|frequency=
|viewmode=tablefooter
}}

viewmode labelfield

{{PID
|id=
|name=
|description=
|links=
|examples=
|frequency=
|viewmode=labelfield
}}

Source (pretty printed)

{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA PID<br>|}}
{{#if:{{{?id|}}}|"{{{?id}}}" is id of it <br>|}}
{{#if:{{{?name|}}}|"{{{?name}}}" is name of it <br>|}}
{{#if:{{{?description|}}}|"{{{?description}}}" is description of it <br>|}}
{{#if:{{{?links|}}}|"{{{?links}}}" is links of it <br>|}}
{{#if:{{{?examples|}}}|"{{{?examples}}}" is examples of it <br>|}}
{{#if:{{{?frequency|}}}|"{{{?frequency}}}" is frequency of it <br>|}}
|#default={{#switch:{{{storemode|}}}
|none=
|subobject={{#subobject:-
|isA=PID
|PID id={{{id|}}}
|PID name={{{name|}}}
|PID description={{{description|}}}
|PID links={{{links|}}}
|PID examples={{{examples|}}}
|PID frequency={{{frequency|}}}
}}
|#default={{#set:
|isA=PID
|PID id={{{id|}}}
|PID name={{{name|}}}
|PID description={{{description|}}}
|PID links={{{links|}}}
|PID examples={{{examples|}}}
|PID frequency={{{frequency|}}}
}}
}}
{{#switch: {{{viewmode|}}}
|masterdetail=
= infos =
{{#ask:[[Concept:CANInfo]][[CANInfo pid::{{FULLPAGENAME}}]]
| ?CANInfo name = name
| ?CANInfo description = description
| ?CANInfo unit = unit
| ?CANInfo pid = pid



}}
|tableheader={{{!}} class='wikitable'
!id!!name!!description!!links!!examples!!frequency
{{!}}-
|tablerow=
{{!}}{{{id|}}}{{!}}{{!}}{{{name|}}}{{!}}{{!}}{{{description|}}}{{!}}{{!}}{{{links|}}}{{!}}{{!}}{{{examples|}}}{{!}}{{!}}{{{frequency|}}}
{{!}}-
|tablefooter={{!}}}
|labelfield=
id={{#if:{{{id|}}}|{{{id|}}}|}}<br>name={{#if:{{{name|}}}|{{{name|}}}|}}<br>description={{#if:{{{description|}}}|{{{description|}}}|}}<br>links={{#if:{{{links|}}}|{{{links|}}}|}}<br>examples={{#if:{{{examples|}}}|{{{examples|}}}|}}<br>frequency={{#if:{{{frequency|}}}|{{{frequency|}}}|}}<br>|#default={{{!}} class='wikitable'
! colspan='2' {{!}}PID
{{!}}-
{{#switch:{{{storemode|}}}|property=
! colspan='2' style='text-align:left' {{!}} {{Icon|name=edit|size=24}}{{Link|target=Special:FormEdit/PID/{{FULLPAGENAME}}|title=edit}}
{{!}}-
}}
!id
{{!}}&nbsp;{{#if:{{{id|}}}|{{{id|}}}|}}
{{!}}-
!name
{{!}}&nbsp;{{#if:{{{name|}}}|{{{name|}}}|}}
{{!}}-
!description
{{!}}&nbsp;{{#if:{{{description|}}}|{{{description|}}}|}}
{{!}}-
!links
{{!}}&nbsp;{{#if:{{{links|}}}|{{{links|}}}|}}
{{!}}-
!examples
{{!}}&nbsp;{{#if:{{{examples|}}}|{{{examples|}}}|}}
{{!}}-
!freq
{{!}}&nbsp;{{#if:{{{frequency|}}}|{{{frequency|}}}|}}
{{!}}-
{{!}}}
}}
}}

Source

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