Difference between revisions of "Template:Topic"

From BITPlan Wiki
Jump to navigation Jump to search
m (created by WikiTask 2017-10-31T10:01:01Z)
(modified by py-yprinciple-gen 0.3.4)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<noinclude>
+
<noinclude><!--
<!--
+
   --     Copyright (C) 2015-2024 BITPlan GmbH
   -- Copyright (C) 2015-2016 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:Topic|title=Topic}}.
+
This is the [https://wiki.bitplan.com/index.php/ProfiWiki BITPlan Y-Prinzip ProfiWiki]-Template for "Topic".
It belongs to the concept/topic {{Link|target=:Concept:Topic}}<br>
+
=== see also ===
You may find examples for the use of this template via the {{Link|target=List of Topics}}.
+
see also
 +
* [[List of Topics]]
 +
* [[Help:Topic]]
 +
* [[Concept:Topic]]
 +
* [[:Category:Topic]]
 +
* [[:Template:Topic]]
 +
* [[:Form:Topic]]
 +
related topics:
 +
* [[Concept:Property]]
 +
 
 
=== Usage ===
 
=== Usage ===
==== storemode subobject ====
 
 
<pre>{{Topic
 
<pre>{{Topic
 
|name=
 
|name=
 
|pluralName=
 
|pluralName=
 +
|isA=
 +
|extends=
 
|icon=
 
|icon=
 
|iconUrl=
 
|iconUrl=
Line 27: Line 36:
 
|headerTabs=
 
|headerTabs=
 
|context=
 
|context=
|storemode=subobject
+
|storemode=property or subobject or none"
 
}}
 
}}
 
</pre>
 
</pre>
 
+
[[Category:Template]]
==== storemode property ====
+
</noinclude><includeonly>{{#switch:{{{storemode|}}}
<pre>{{Topic
 
|name=
 
|pluralName=
 
|icon=
 
|iconUrl=
 
|documentation=
 
|wikiDocumentation=
 
|defaultstoremode=
 
|listLimit=
 
|cargo=
 
|headerTabs=
 
|context=
 
|storemode=property
 
}}
 
</pre>
 
 
 
==== storemode none ====
 
<pre>{{Topic
 
|name=
 
|pluralName=
 
|icon=
 
|iconUrl=
 
|documentation=
 
|wikiDocumentation=
 
|defaultstoremode=
 
|listLimit=
 
|cargo=
 
|headerTabs=
 
|context=
 
|storemode=none
 
}}
 
</pre>
 
 
 
 
 
==== viewmode tableheader ====
 
<pre>{{Topic
 
|name=
 
|pluralName=
 
|icon=
 
|iconUrl=
 
|documentation=
 
|wikiDocumentation=
 
|defaultstoremode=
 
|listLimit=
 
|cargo=
 
|headerTabs=
 
|context=
 
|viewmode=tableheader
 
}}
 
</pre>
 
 
 
==== viewmode tablerow ====
 
<pre>{{Topic
 
|name=
 
|pluralName=
 
|icon=
 
|iconUrl=
 
|documentation=
 
|wikiDocumentation=
 
|defaultstoremode=
 
|listLimit=
 
|cargo=
 
|headerTabs=
 
|context=
 
|viewmode=tablerow
 
}}
 
</pre>
 
 
 
==== viewmode tablefooter ====
 
<pre>{{Topic
 
|name=
 
|pluralName=
 
|icon=
 
|iconUrl=
 
|documentation=
 
|wikiDocumentation=
 
|defaultstoremode=
 
|listLimit=
 
|cargo=
 
|headerTabs=
 
|context=
 
|viewmode=tablefooter
 
}}
 
</pre>
 
 
 
==== viewmode labelfield ====
 
<pre>{{Topic
 
|name=
 
|pluralName=
 
|icon=
 
|iconUrl=
 
|documentation=
 
|wikiDocumentation=
 
|defaultstoremode=
 
|listLimit=
 
|cargo=
 
|headerTabs=
 
|context=
 
|viewmode=labelfield
 
}}
 
</pre>
 
 
 
=== Source (pretty printed) ===
 
<source lang='html4strict'>
 
{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA Topic<br>|}}
 
{{#if:{{{?name|}}}|"{{{?name}}}" is name of it <br>|}}
 
{{#if:{{{?pluralName|}}}|"{{{?pluralName}}}" is pluralName of it <br>|}}
 
{{#if:{{{?icon|}}}|"{{{?icon}}}" is icon of it <br>|}}
 
{{#if:{{{?iconUrl|}}}|"{{{?iconUrl}}}" is iconUrl of it <br>|}}
 
{{#if:{{{?documentation|}}}|"{{{?documentation}}}" is documentation of it <br>|}}
 
{{#if:{{{?wikiDocumentation|}}}|"{{{?wikiDocumentation}}}" is wikiDocumentation of it <br>|}}
 
{{#if:{{{?defaultstoremode|}}}|"{{{?defaultstoremode}}}" is defaultstoremode of it <br>|}}
 
{{#if:{{{?listLimit|}}}|"{{{?listLimit}}}" is listLimit of it <br>|}}
 
{{#if:{{{?cargo|}}}|"{{{?cargo}}}" is cargo of it <br>|}}
 
{{#if:{{{?headerTabs|}}}|"{{{?headerTabs}}}" is headerTabs of it <br>|}}
 
{{#if:{{{?context|}}}|"{{{?context}}}" is context of it <br>|}}
 
|#default={{#switch:{{{storemode|}}}
 
 
|none=
 
|none=
 
|subobject={{#subobject:-
 
|subobject={{#subobject:-
Line 154: Line 46:
 
|Topic name={{{name|}}}
 
|Topic name={{{name|}}}
 
|Topic pluralName={{{pluralName|}}}
 
|Topic pluralName={{{pluralName|}}}
 +
|Topic isA={{{isA|}}}
 +
|Topic extends={{{extends|}}}
 
|Topic icon={{{icon|}}}
 
|Topic icon={{{icon|}}}
 
|Topic iconUrl={{{iconUrl|}}}
 
|Topic iconUrl={{{iconUrl|}}}
Line 168: Line 62:
 
|Topic name={{{name|}}}
 
|Topic name={{{name|}}}
 
|Topic pluralName={{{pluralName|}}}
 
|Topic pluralName={{{pluralName|}}}
 +
|Topic isA={{{isA|}}}
 +
|Topic extends={{{extends|}}}
 
|Topic icon={{{icon|}}}
 
|Topic icon={{{icon|}}}
 
|Topic iconUrl={{{iconUrl|}}}
 
|Topic iconUrl={{{iconUrl|}}}
Line 179: Line 75:
 
}}
 
}}
 
}}
 
}}
{{#switch: {{{viewmode|}}}
+
{{#switch:{{{viewmode|}}}|hidden=|masterdetail=
|masterdetail=
 
 
= properties =
 
= properties =
 
{{#ask:[[Concept:Property]][[Property topic::{{FULLPAGENAME}}]]
 
{{#ask:[[Concept:Property]][[Property topic::{{FULLPAGENAME}}]]
Line 186: Line 81:
 
| ?Property label = label
 
| ?Property label = label
 
| ?Property type = type
 
| ?Property type = type
 +
| ?Property scope = scope
 
| ?Property index = index
 
| ?Property index = index
 
| ?Property sortPos = sortPos
 
| ?Property sortPos = sortPos
Line 198: Line 94:
 
| ?Property documentation = documentation
 
| ?Property documentation = documentation
 
| ?Property values_from = values_from
 
| ?Property values_from = values_from
 +
| ?Property externalFormatterURI = externalFormatterURI
 
| ?Property showInGrid = showInGrid
 
| ?Property showInGrid = showInGrid
 
| ?Property isLink = isLink
 
| ?Property isLink = isLink
 
| ?Property nullable = nullable
 
| ?Property nullable = nullable
 
| ?Property topic = topic
 
| ?Property topic = topic
 
+
}}|#default={{{!}} class='wikitable'
|sort=Property name
 
|order=ascending
 
}}
 
|tableheader={{{!}} class='wikitable'
 
!name!!pluralName!!icon!!iconUrl!!documentation!!wikiDocumentation!!defaultstoremode!!listLimit!!cargo!!headerTabs!!context
 
{{!}}-
 
|tablerow=
 
{{!}}{{{name|}}}{{!}}{{!}}{{{pluralName|}}}{{!}}{{!}}{{{icon|}}}{{!}}{{!}}{{{iconUrl|}}}{{!}}{{!}}{{{documentation|}}}{{!}}{{!}}{{{wikiDocumentation|}}}{{!}}{{!}}{{{defaultstoremode|}}}{{!}}{{!}}{{{listLimit|}}}{{!}}{{!}}{{{cargo|}}}{{!}}{{!}}{{{headerTabs|}}}{{!}}{{!}}{{{context|}}}
 
{{!}}-
 
|tablefooter={{!}}}
 
|labelfield=
 
name={{#if:{{{name|}}}|{{{name|}}}|}}<br>pluralName={{#if:{{{pluralName|}}}|{{{pluralName|}}}|}}<br>icon={{#if:{{{icon|}}}|[[{{{icon|}}}]]|}}<br>iconUrl={{#if:{{{iconUrl|}}}|{{{iconUrl|}}}|}}<br>documentation={{#if:{{{documentation|}}}|{{{documentation|}}}|}}<br>wikiDocumentation={{#if:{{{wikiDocumentation|}}}|{{{wikiDocumentation|}}}|}}<br>defaultstoremode={{#if:{{{defaultstoremode|}}}|{{{defaultstoremode|}}}|}}<br>listLimit={{#if:{{{listLimit|}}}|{{{listLimit|}}}|}}<br>cargo={{#if:{{{cargo|}}}|{{{cargo|}}}|}}<br>headerTabs={{#if:{{{headerTabs|}}}|{{{headerTabs|}}}|}}<br>context={{#if:{{{context|}}}|[[{{{context|}}}]]|}}<br>|#default={{{!}} class='wikitable'
 
 
! colspan='2' {{!}}Topic
 
! colspan='2' {{!}}Topic
 
{{!}}-
 
{{!}}-
Line 221: Line 106:
 
{{!}}-
 
{{!}}-
 
}}
 
}}
!name
+
![[Property:Topic name|name]]
{{!}}&nbsp;{{#if:{{{name|}}}|{{{name|}}}|}}
+
{{!}}&nbsp;{{#if:{{{name|}}}|{{{name}}}|}}
 
{{!}}-
 
{{!}}-
!pluralName
+
![[Property:Topic pluralName|pluralName]]
{{!}}&nbsp;{{#if:{{{pluralName|}}}|{{{pluralName|}}}|}}
+
{{!}}&nbsp;{{#if:{{{pluralName|}}}|{{{pluralName}}}|}}
 
{{!}}-
 
{{!}}-
!icon
+
![[Property:Topic isA|isA]]
{{!}}&nbsp;{{#if:{{{icon|}}}|[[{{{icon|}}}]]|}}
+
{{!}}&nbsp;{{#if:{{{isA|}}}|{{{isA}}}|}}
 
{{!}}-
 
{{!}}-
!icon Url
+
![[Property:Topic extends|extends]]
{{!}}&nbsp;{{#if:{{{iconUrl|}}}|{{{iconUrl|}}}|}}
+
{{!}}&nbsp;{{#if:{{{extends|}}}|{{{extends}}}|}}
 
{{!}}-
 
{{!}}-
!documentation
+
![[Property:Topic icon|icon]]
{{!}}&nbsp;{{#if:{{{documentation|}}}|{{{documentation|}}}|}}
+
{{!}}&nbsp;{{#if:{{{icon|}}}|{{{icon}}}|}}→[[{{{icon|}}}]]
 
{{!}}-
 
{{!}}-
!wikiDocumentation
+
![[Property:Topic iconUrl|iconUrl]]
{{!}}&nbsp;{{#if:{{{wikiDocumentation|}}}|{{{wikiDocumentation|}}}|}}
+
{{!}}&nbsp;{{#if:{{{iconUrl|}}}|{{{iconUrl}}}|}}
 
{{!}}-
 
{{!}}-
!default storemode
+
![[Property:Topic documentation|documentation]]
{{!}}&nbsp;{{#if:{{{defaultstoremode|}}}|{{{defaultstoremode|}}}|}}
+
{{!}}&nbsp;{{#if:{{{documentation|}}}|{{{documentation}}}|}}
 
{{!}}-
 
{{!}}-
!list Limit
+
![[Property:Topic wikiDocumentation|wikiDocumentation]]
{{!}}&nbsp;{{#if:{{{listLimit|}}}|{{{listLimit|}}}|}}
+
{{!}}&nbsp;{{#if:{{{wikiDocumentation|}}}|{{{wikiDocumentation}}}|}}
 
{{!}}-
 
{{!}}-
!use cargo
+
![[Property:Topic defaultstoremode|defaultstoremode]]
{{!}}&nbsp;{{#if:{{{cargo|}}}|{{{cargo|}}}|}}
+
{{!}}&nbsp;{{#if:{{{defaultstoremode|}}}|{{{defaultstoremode}}}|}}
 
{{!}}-
 
{{!}}-
!headerTabs
+
![[Property:Topic listLimit|listLimit]]
{{!}}&nbsp;{{#if:{{{headerTabs|}}}|{{{headerTabs|}}}|}}
+
{{!}}&nbsp;{{#if:{{{listLimit|}}}|{{{listLimit}}}|}}
 
{{!}}-
 
{{!}}-
!context
+
![[Property:Topic cargo|cargo]]
{{!}}&nbsp;{{#if:{{{context|}}}|[[{{{context|}}}]]|}}
+
{{!}}&nbsp;{{#if:{{{cargo|}}}|{{{cargo}}}|}}
 
{{!}}-
 
{{!}}-
{{!}}}
+
![[Property:Topic headerTabs|headerTabs]]
}}
+
{{!}}&nbsp;{{#if:{{{headerTabs|}}}|{{{headerTabs}}}|}}
}}
 
[[Category:Topic]]{{#default_form:Topic}}
 
</source>
 
=== Source ===
 
Click on "Edit" to edit the noinclude-part Source of this Template.
 
[[Category:Template]]
 
 
 
</noinclude><includeonly>{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA Topic<br>|}}
 
{{#if:{{{?name|}}}|"{{{?name}}}" is name of it <br>|}}
 
{{#if:{{{?pluralName|}}}|"{{{?pluralName}}}" is pluralName of it <br>|}}
 
{{#if:{{{?icon|}}}|"{{{?icon}}}" is icon of it <br>|}}
 
{{#if:{{{?iconUrl|}}}|"{{{?iconUrl}}}" is iconUrl of it <br>|}}
 
{{#if:{{{?documentation|}}}|"{{{?documentation}}}" is documentation of it <br>|}}
 
{{#if:{{{?wikiDocumentation|}}}|"{{{?wikiDocumentation}}}" is wikiDocumentation of it <br>|}}
 
{{#if:{{{?defaultstoremode|}}}|"{{{?defaultstoremode}}}" is defaultstoremode of it <br>|}}
 
{{#if:{{{?listLimit|}}}|"{{{?listLimit}}}" is listLimit of it <br>|}}
 
{{#if:{{{?cargo|}}}|"{{{?cargo}}}" is cargo of it <br>|}}
 
{{#if:{{{?headerTabs|}}}|"{{{?headerTabs}}}" is headerTabs of it <br>|}}
 
{{#if:{{{?context|}}}|"{{{?context}}}" is context of it <br>|}}
 
|#default={{#switch:{{{storemode|}}}
 
|none=
 
|subobject={{#subobject:-
 
|isA=Topic
 
|Topic name={{{name|}}}
 
|Topic pluralName={{{pluralName|}}}
 
|Topic icon={{{icon|}}}
 
|Topic iconUrl={{{iconUrl|}}}
 
|Topic documentation={{{documentation|}}}
 
|Topic wikiDocumentation={{{wikiDocumentation|}}}
 
|Topic defaultstoremode={{{defaultstoremode|}}}
 
|Topic listLimit={{{listLimit|}}}
 
|Topic cargo={{{cargo|}}}
 
|Topic headerTabs={{{headerTabs|}}}
 
|Topic context={{{context|}}}
 
}}
 
|#default={{#set:
 
|isA=Topic
 
|Topic name={{{name|}}}
 
|Topic pluralName={{{pluralName|}}}
 
|Topic icon={{{icon|}}}
 
|Topic iconUrl={{{iconUrl|}}}
 
|Topic documentation={{{documentation|}}}
 
|Topic wikiDocumentation={{{wikiDocumentation|}}}
 
|Topic defaultstoremode={{{defaultstoremode|}}}
 
|Topic listLimit={{{listLimit|}}}
 
|Topic cargo={{{cargo|}}}
 
|Topic headerTabs={{{headerTabs|}}}
 
|Topic context={{{context|}}}
 
}}
 
}}
 
{{#switch: {{{viewmode|}}}
 
|masterdetail=
 
= properties =
 
{{#ask:[[Concept:Property]][[Property topic::{{FULLPAGENAME}}]]
 
| ?Property name = name
 
| ?Property label = label
 
| ?Property type = type
 
| ?Property index = index
 
| ?Property sortPos = sortPos
 
| ?Property primaryKey = primaryKey
 
| ?Property mandatory = mandatory
 
| ?Property namespace = namespace
 
| ?Property size = size
 
| ?Property uploadable = uploadable
 
| ?Property defaultValue = defaultValue
 
| ?Property inputType = inputType
 
| ?Property allowedValues = allowedValues
 
| ?Property documentation = documentation
 
| ?Property values_from = values_from
 
| ?Property showInGrid = showInGrid
 
| ?Property isLink = isLink
 
| ?Property nullable = nullable
 
| ?Property topic = topic
 
 
 
|sort=Property name
 
|order=ascending
 
}}
 
|tableheader={{{!}} class='wikitable'
 
!name!!pluralName!!icon!!iconUrl!!documentation!!wikiDocumentation!!defaultstoremode!!listLimit!!cargo!!headerTabs!!context
 
{{!}}-
 
|tablerow=
 
{{!}}{{{name|}}}{{!}}{{!}}{{{pluralName|}}}{{!}}{{!}}{{{icon|}}}{{!}}{{!}}{{{iconUrl|}}}{{!}}{{!}}{{{documentation|}}}{{!}}{{!}}{{{wikiDocumentation|}}}{{!}}{{!}}{{{defaultstoremode|}}}{{!}}{{!}}{{{listLimit|}}}{{!}}{{!}}{{{cargo|}}}{{!}}{{!}}{{{headerTabs|}}}{{!}}{{!}}{{{context|}}}
 
{{!}}-
 
|tablefooter={{!}}}
 
|labelfield=
 
name={{#if:{{{name|}}}|{{{name|}}}|}}<br>pluralName={{#if:{{{pluralName|}}}|{{{pluralName|}}}|}}<br>icon={{#if:{{{icon|}}}|[[{{{icon|}}}]]|}}<br>iconUrl={{#if:{{{iconUrl|}}}|{{{iconUrl|}}}|}}<br>documentation={{#if:{{{documentation|}}}|{{{documentation|}}}|}}<br>wikiDocumentation={{#if:{{{wikiDocumentation|}}}|{{{wikiDocumentation|}}}|}}<br>defaultstoremode={{#if:{{{defaultstoremode|}}}|{{{defaultstoremode|}}}|}}<br>listLimit={{#if:{{{listLimit|}}}|{{{listLimit|}}}|}}<br>cargo={{#if:{{{cargo|}}}|{{{cargo|}}}|}}<br>headerTabs={{#if:{{{headerTabs|}}}|{{{headerTabs|}}}|}}<br>context={{#if:{{{context|}}}|[[{{{context|}}}]]|}}<br>|#default={{{!}} class='wikitable'
 
! colspan='2' {{!}}Topic
 
{{!}}-
 
{{#switch:{{{storemode|}}}|property=
 
! colspan='2' style='text-align:left' {{!}} {{Icon|name=edit|size=24}}{{Link|target=Special:FormEdit/Topic/{{FULLPAGENAME}}|title=edit}}
 
{{!}}-
 
}}
 
!name
 
{{!}}&nbsp;{{#if:{{{name|}}}|{{{name|}}}|}}
 
{{!}}-
 
!pluralName
 
{{!}}&nbsp;{{#if:{{{pluralName|}}}|{{{pluralName|}}}|}}
 
{{!}}-
 
!icon
 
{{!}}&nbsp;{{#if:{{{icon|}}}|[[{{{icon|}}}]]|}}
 
{{!}}-
 
!icon Url
 
{{!}}&nbsp;{{#if:{{{iconUrl|}}}|{{{iconUrl|}}}|}}
 
{{!}}-
 
!documentation
 
{{!}}&nbsp;{{#if:{{{documentation|}}}|{{{documentation|}}}|}}
 
 
{{!}}-
 
{{!}}-
!wikiDocumentation
+
![[Property:Topic context|context]]
{{!}}&nbsp;{{#if:{{{wikiDocumentation|}}}|{{{wikiDocumentation|}}}|}}
+
{{!}}&nbsp;{{#if:{{{context|}}}|{{{context}}}|}}{{#show: {{FULLPAGENAME}}|?Topic context}}
{{!}}-
 
!default storemode
 
{{!}}&nbsp;{{#if:{{{defaultstoremode|}}}|{{{defaultstoremode|}}}|}}
 
{{!}}-
 
!list Limit
 
{{!}}&nbsp;{{#if:{{{listLimit|}}}|{{{listLimit|}}}|}}
 
{{!}}-
 
!use cargo
 
{{!}}&nbsp;{{#if:{{{cargo|}}}|{{{cargo|}}}|}}
 
{{!}}-
 
!headerTabs
 
{{!}}&nbsp;{{#if:{{{headerTabs|}}}|{{{headerTabs|}}}|}}
 
{{!}}-
 
!context
 
{{!}}&nbsp;{{#if:{{{context|}}}|[[{{{context|}}}]]|}}
 
 
{{!}}-
 
{{!}}-
 
{{!}}}
 
{{!}}}
 
}}
 
}}
}}
+
[[Category:Topic]]{{#default_form:Topic}}
[[Category:Topic]]{{#default_form:Topic}}</includeonly>
+
</includeonly>

Latest revision as of 09:43, 15 November 2024

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

see also

see also

related topics:

Usage

{{Topic
|name=
|pluralName=
|isA=
|extends=
|icon=
|iconUrl=
|documentation=
|wikiDocumentation=
|defaultstoremode=
|listLimit=
|cargo=
|headerTabs=
|context=
|storemode=property or subobject or none"
}}