Template:SMW Type

From BITPlan royal-family Wiki
Revision as of 18:24, 3 October 2017 by Wf (talk | contribs) (created by WikiTask 2017-10-03T17:24:42Z)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

Usage

storemode subobject

{{SMW_Type
|type=
|documentation=
|helppage=
|typepage=
|javaType=
|usedByProperties=
|storemode=subobject
}}

storemode property

{{SMW_Type
|type=
|documentation=
|helppage=
|typepage=
|javaType=
|usedByProperties=
|storemode=property
}}

storemode none

{{SMW_Type
|type=
|documentation=
|helppage=
|typepage=
|javaType=
|usedByProperties=
|storemode=none
}}


viewmode tableheader

{{SMW_Type
|type=
|documentation=
|helppage=
|typepage=
|javaType=
|usedByProperties=
|viewmode=tableheader
}}

viewmode tablerow

{{SMW_Type
|type=
|documentation=
|helppage=
|typepage=
|javaType=
|usedByProperties=
|viewmode=tablerow
}}

viewmode tablefooter

{{SMW_Type
|type=
|documentation=
|helppage=
|typepage=
|javaType=
|usedByProperties=
|viewmode=tablefooter
}}

viewmode labelfield

{{SMW_Type
|type=
|documentation=
|helppage=
|typepage=
|javaType=
|usedByProperties=
|viewmode=labelfield
}}

Source (pretty printed)

{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA SMW_Type<br>|}}
{{#if:{{{?type|}}}|"{{{?type}}}" is type of it <br>|}}
{{#if:{{{?documentation|}}}|"{{{?documentation}}}" is documentation of it <br>|}}
{{#if:{{{?helppage|}}}|"{{{?helppage}}}" is helppage of it <br>|}}
{{#if:{{{?typepage|}}}|"{{{?typepage}}}" is typepage of it <br>|}}
{{#if:{{{?javaType|}}}|"{{{?javaType}}}" is javaType of it <br>|}}
{{#if:{{{?usedByProperties|}}}|"{{{?usedByProperties}}}" is usedByProperties of it <br>|}}
|#default={{#switch:{{{storemode|}}}
|none=
|subobject={{#subobject:-
|isA=SMW_Type
|SMW_Type type={{{type|}}}
|SMW_Type documentation={{{documentation|}}}
|SMW_Type helppage={{{helppage|}}}
|SMW_Type typepage={{{typepage|}}}
|SMW_Type javaType={{{javaType|}}}
|SMW_Type usedByProperties={{{usedByProperties|}}}
}}
|#default={{#set:
|isA=SMW_Type
|SMW_Type type={{{type|}}}
|SMW_Type documentation={{{documentation|}}}
|SMW_Type helppage={{{helppage|}}}
|SMW_Type typepage={{{typepage|}}}
|SMW_Type javaType={{{javaType|}}}
|SMW_Type usedByProperties={{{usedByProperties|}}}
}}
}}
{{#switch: {{{viewmode|}}}
|masterdetail=
|tableheader={{{!}} class='wikitable'
!type!!documentation!!helppage!!typepage!!javaType!!usedByProperties
{{!}}-
|tablerow=
{{!}}{{{type|}}}{{!}}{{!}}{{{documentation|}}}{{!}}{{!}}{{{helppage|}}}{{!}}{{!}}{{{typepage|}}}{{!}}{{!}}{{{javaType|}}}{{!}}{{!}}{{{usedByProperties|}}}
{{!}}-
|tablefooter={{!}}}
|labelfield=
type={{#if:{{{type|}}}|{{{type|}}}|}}<br>documentation={{#if:{{{documentation|}}}|{{{documentation|}}}|}}<br>helppage={{#if:{{{helppage|}}}|{{{helppage|}}}|}}<br>typepage={{#if:{{{typepage|}}}|[[{{{typepage|}}}]]|}}<br>javaType={{#if:{{{javaType|}}}|{{{javaType|}}}|}}<br>usedByProperties={{#if:{{{usedByProperties|}}}|[[{{{usedByProperties|}}}]]|}}<br>|#default={{{!}} class='wikitable'
! colspan='2' {{!}}SMW_Type
{{!}}-
{{#switch:{{{storemode|}}}|property=
! colspan='2' style='text-align:left' {{!}} {{Icon|name=edit|size=24}}{{Link|target=Special:FormEdit/SMW_Type/{{FULLPAGENAME}}|title=edit}}
{{!}}-
}}
!type
{{!}}&nbsp;{{#if:{{{type|}}}|{{{type|}}}|}}
{{!}}-
!type
{{!}}&nbsp;{{#if:{{{documentation|}}}|{{{documentation|}}}|}}
{{!}}-
!type
{{!}}&nbsp;{{#if:{{{helppage|}}}|{{{helppage|}}}|}}
{{!}}-
!typepage
{{!}}&nbsp;{{#if:{{{typepage|}}}|[[{{{typepage|}}}]]|}}
{{!}}-
!java Type
{{!}}&nbsp;{{#if:{{{javaType|}}}|{{{javaType|}}}|}}
{{!}}-
!usedByProperties
{{!}}&nbsp;{{#if:{{{usedByProperties|}}}|[[{{{usedByProperties|}}}]]|}}
{{!}}-
{{!}}}
}}
}}

Source

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