Difference between revisions of "Template:SMW Type"

From BITPlan Wiki
Jump to navigation Jump to search
m (created by WikiTask 2017-11-04T10:34:47Z)
(modified by py-yprinciple-gen 0.3.4)
 
Line 1: Line 1:
<noinclude>
+
<noinclude><!--
<!--
+
   --     Copyright (C) 2015-2024 BITPlan GmbH
   -- Copyright (C) 2015-2017 BITPlan GmbH
+
   --
   --  
+
   --     Pater-Delp-Str. -- 1
   -- Pater-Delp-Str. -- 1
+
   --     D-47877 -- Willich-Schiefbahn
   -- D-47877 -- Willich-Schiefbahn
+
   --
   --  
+
   --     http://www.bitplan.com
   -- http://www.bitplan.com
+
  --
 
   --
 
   --
  --
 
 
-->
 
-->
This is the template {{Link|target=Template:SMW_Type|title=SMW_Type}}.
+
This is the [https://wiki.bitplan.com/index.php/ProfiWiki BITPlan Y-Prinzip ProfiWiki]-Template for "SMW_Type".
It belongs to the concept/topic {{Link|target=:Concept:SMW_Type}}<br>
+
=== see also ===
You may find examples for the use of this template via the {{Link|target=List of SMW_Types}}.
+
see also
 +
* [[List of SMW_Types]]
 +
* [[Help:SMW_Type]]
 +
* [[Concept:SMW_Type]]
 +
* [[:Category:SMW_Type]]
 +
* [[:Template:SMW_Type]]
 +
* [[:Form:SMW_Type]]
 +
 
 
=== Usage ===
 
=== Usage ===
==== storemode subobject ====
 
<pre>{{SMW_Type
 
|type=
 
|documentation=
 
|id=
 
|helppage=
 
|typepage=
 
|javaType=
 
|usedByProperties=
 
|storemode=subobject
 
}}
 
</pre>
 
 
==== storemode property ====
 
 
<pre>{{SMW_Type
 
<pre>{{SMW_Type
 
|type=
 
|type=
Line 36: Line 28:
 
|javaType=
 
|javaType=
 
|usedByProperties=
 
|usedByProperties=
|storemode=property
+
|storemode=property or subobject or none"
 
}}
 
}}
 
</pre>
 
</pre>
 
==== storemode none ====
 
<pre>{{SMW_Type
 
|type=
 
|documentation=
 
|id=
 
|helppage=
 
|typepage=
 
|javaType=
 
|usedByProperties=
 
|storemode=none
 
}}
 
</pre>
 
 
 
==== viewmode tableheader ====
 
<pre>{{SMW_Type
 
|type=
 
|documentation=
 
|id=
 
|helppage=
 
|typepage=
 
|javaType=
 
|usedByProperties=
 
|viewmode=tableheader
 
}}
 
</pre>
 
 
==== viewmode tablerow ====
 
<pre>{{SMW_Type
 
|type=
 
|documentation=
 
|id=
 
|helppage=
 
|typepage=
 
|javaType=
 
|usedByProperties=
 
|viewmode=tablerow
 
}}
 
</pre>
 
 
==== viewmode tablefooter ====
 
<pre>{{SMW_Type
 
|type=
 
|documentation=
 
|id=
 
|helppage=
 
|typepage=
 
|javaType=
 
|usedByProperties=
 
|viewmode=tablefooter
 
}}
 
</pre>
 
 
==== viewmode labelfield ====
 
<pre>{{SMW_Type
 
|type=
 
|documentation=
 
|id=
 
|helppage=
 
|typepage=
 
|javaType=
 
|usedByProperties=
 
|viewmode=labelfield
 
}}
 
</pre>
 
 
=== Source (pretty printed) ===
 
<source lang='html4strict'>
 
{{#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:{{{?id|}}}|"{{{?id}}}" is id 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 id={{{id|}}}
 
|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 id={{{id|}}}
 
|SMW_Type helppage={{{helppage|}}}
 
|SMW_Type typepage={{{typepage|}}}
 
|SMW_Type javaType={{{javaType|}}}
 
|SMW_Type usedByProperties={{{usedByProperties|}}}
 
}}
 
}}
 
{{#switch: {{{viewmode|}}}
 
|masterdetail=
 
|tableheader={{{!}} class='wikitable'
 
!type!!documentation!!id!!helppage!!typepage!!javaType!!usedByProperties
 
{{!}}-
 
|tablerow=
 
{{!}}{{{type|}}}{{!}}{{!}}{{{documentation|}}}{{!}}{{!}}{{{id|}}}{{!}}{{!}}{{{helppage|}}}{{!}}{{!}}{{{typepage|}}}{{!}}{{!}}{{{javaType|}}}{{!}}{{!}}{{{usedByProperties|}}}
 
{{!}}-
 
|tablefooter={{!}}}
 
|labelfield=
 
type={{#if:{{{type|}}}|{{{type|}}}|}}<br>documentation={{#if:{{{documentation|}}}|{{{documentation|}}}|}}<br>id={{#if:{{{id|}}}|{{{id|}}}|}}<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|}}}|}}
 
{{!}}-
 
!documentation
 
{{!}}&nbsp;{{#if:{{{documentation|}}}|{{{documentation|}}}|}}
 
{{!}}-
 
!id
 
{{!}}&nbsp;{{#if:{{{id|}}}|{{{id|}}}|}}
 
{{!}}-
 
!helppage
 
{{!}}&nbsp;{{#if:{{{helppage|}}}|{{{helppage|}}}|}}
 
{{!}}-
 
!typepage
 
{{!}}&nbsp;{{#if:{{{typepage|}}}|[[{{{typepage|}}}]]|}}
 
{{!}}-
 
!java Type
 
{{!}}&nbsp;{{#if:{{{javaType|}}}|{{{javaType|}}}|}}
 
{{!}}-
 
!usedByProperties
 
{{!}}&nbsp;{{#if:{{{usedByProperties|}}}|[[{{{usedByProperties|}}}]]|}}
 
{{!}}-
 
{{!}}}
 
}}
 
}}
 
 
</source>
 
=== Source ===
 
Click on "Edit" to edit the noinclude-part Source of this Template.
 
 
[[Category:Template]]
 
[[Category:Template]]
 
+
</noinclude><includeonly>{{#switch:{{{storemode|}}}
</noinclude><includeonly>{{#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:{{{?id|}}}|"{{{?id}}}" is id 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=
 
|none=
 
|subobject={{#subobject:-
 
|subobject={{#subobject:-
Line 217: Line 55:
 
}}
 
}}
 
}}
 
}}
{{#switch: {{{viewmode|}}}
+
{{#switch:{{{viewmode|}}}|hidden=|masterdetail=
|masterdetail=
+
|#default={{{!}} class='wikitable'
|tableheader={{{!}} class='wikitable'
 
!type!!documentation!!id!!helppage!!typepage!!javaType!!usedByProperties
 
{{!}}-
 
|tablerow=
 
{{!}}{{{type|}}}{{!}}{{!}}{{{documentation|}}}{{!}}{{!}}{{{id|}}}{{!}}{{!}}{{{helppage|}}}{{!}}{{!}}{{{typepage|}}}{{!}}{{!}}{{{javaType|}}}{{!}}{{!}}{{{usedByProperties|}}}
 
{{!}}-
 
|tablefooter={{!}}}
 
|labelfield=
 
type={{#if:{{{type|}}}|{{{type|}}}|}}<br>documentation={{#if:{{{documentation|}}}|{{{documentation|}}}|}}<br>id={{#if:{{{id|}}}|{{{id|}}}|}}<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
 
! colspan='2' {{!}}SMW_Type
 
{{!}}-
 
{{!}}-
Line 234: Line 63:
 
{{!}}-
 
{{!}}-
 
}}
 
}}
!type
+
![[Property:SMW_Type type|type]]
{{!}}&nbsp;{{#if:{{{type|}}}|{{{type|}}}|}}
+
{{!}}&nbsp;{{#if:{{{type|}}}|{{{type}}}|}}
 
{{!}}-
 
{{!}}-
!documentation
+
![[Property:SMW_Type documentation|documentation]]
{{!}}&nbsp;{{#if:{{{documentation|}}}|{{{documentation|}}}|}}
+
{{!}}&nbsp;{{#if:{{{documentation|}}}|{{{documentation}}}|}}
 
{{!}}-
 
{{!}}-
!id
+
![[Property:SMW_Type id|id]]
{{!}}&nbsp;{{#if:{{{id|}}}|{{{id|}}}|}}
+
{{!}}&nbsp;{{#if:{{{id|}}}|{{{id}}}|}}
 
{{!}}-
 
{{!}}-
!helppage
+
![[Property:SMW_Type helppage|helppage]]
{{!}}&nbsp;{{#if:{{{helppage|}}}|{{{helppage|}}}|}}
+
{{!}}&nbsp;{{#if:{{{helppage|}}}|{{{helppage}}}|}}
 
{{!}}-
 
{{!}}-
!typepage
+
![[Property:SMW_Type typepage|typepage]]
{{!}}&nbsp;{{#if:{{{typepage|}}}|[[{{{typepage|}}}]]|}}
+
{{!}}&nbsp;{{#if:{{{typepage|}}}|{{{typepage}}}|}}→[[{{{typepage|}}}]]
 
{{!}}-
 
{{!}}-
!java Type
+
![[Property:SMW_Type javaType|javaType]]
{{!}}&nbsp;{{#if:{{{javaType|}}}|{{{javaType|}}}|}}
+
{{!}}&nbsp;{{#if:{{{javaType|}}}|{{{javaType}}}|}}
 
{{!}}-
 
{{!}}-
!usedByProperties
+
![[Property:SMW_Type usedByProperties|usedByProperties]]
{{!}}&nbsp;{{#if:{{{usedByProperties|}}}|[[{{{usedByProperties|}}}]]|}}
+
{{!}}&nbsp;{{#if:{{{usedByProperties|}}}|{{{usedByProperties}}}|}}→{{#show: {{FULLPAGENAME}}|?SMW_Type usedByProperties}}
 
{{!}}-
 
{{!}}-
 
{{!}}}
 
{{!}}}
}}
 
 
}}
 
}}
 
</includeonly>
 
</includeonly>

Latest revision as of 09:43, 15 November 2024

This is the BITPlan Y-Prinzip ProfiWiki-Template for "SMW_Type".

see also

see also

Usage

{{SMW_Type
|type=
|documentation=
|id=
|helppage=
|typepage=
|javaType=
|usedByProperties=
|storemode=property or subobject or none"
}}