Template:PID
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= |links= |examples= |storemode=subobject }}
storemode property
{{PID |id= |name= |links= |examples= |storemode=property }}
storemode none
{{PID |id= |name= |links= |examples= |storemode=none }}
viewmode tableheader
{{PID |id= |name= |links= |examples= |viewmode=tableheader }}
viewmode tablerow
{{PID |id= |name= |links= |examples= |viewmode=tablerow }}
{{PID |id= |name= |links= |examples= |viewmode=tablefooter }}
viewmode labelfield
{{PID |id= |name= |links= |examples= |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:{{{?links|}}}|"{{{?links}}}" is links of it <br>|}}
{{#if:{{{?examples|}}}|"{{{?examples}}}" is examples of it <br>|}}
|#default={{#switch:{{{storemode|}}}
|none=
|subobject={{#subobject:-
|isA=PID
|PID id={{{id|}}}
|PID name={{{name|}}}
|PID links={{{links|}}}
|PID examples={{{examples|}}}
}}
|#default={{#set:
|isA=PID
|PID id={{{id|}}}
|PID name={{{name|}}}
|PID links={{{links|}}}
|PID examples={{{examples|}}}
}}
}}
{{#switch: {{{viewmode|}}}
|masterdetail=
|tableheader={{{!}} class='wikitable'
!id!!name!!links!!examples
{{!}}-
|tablerow=
{{!}}{{{id|}}}{{!}}{{!}}{{{name|}}}{{!}}{{!}}{{{links|}}}{{!}}{{!}}{{{examples|}}}
{{!}}-
|tablefooter={{!}}}
|labelfield=
id={{#if:{{{id|}}}|{{{id|}}}|}}<br>name={{#if:{{{name|}}}|{{{name|}}}|}}<br>links={{#if:{{{links|}}}|{{{links|}}}|}}<br>examples={{#if:{{{examples|}}}|{{{examples|}}}|}}<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
{{!}} {{#if:{{{id|}}}|{{{id|}}}|}}
{{!}}-
!name
{{!}} {{#if:{{{name|}}}|{{{name|}}}|}}
{{!}}-
!links
{{!}} {{#if:{{{links|}}}|{{{links|}}}|}}
{{!}}-
!examples
{{!}} {{#if:{{{examples|}}}|{{{examples|}}}|}}
{{!}}-
{{!}}}
}}
}}
Source
Click on "Edit" to edit the noinclude-part Source of this Template.