Template:Topic

From BITPlan profiwiki Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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

Usage

storemode subobject

{{Topic
|name=
|pluralName=
|icon=
|iconUrl=
|documentation=
|wikiDocumentation=
|defaultstoremode=
|listLimit=
|cargo=
|context=
|storemode=subobject
}}

storemode property

{{Topic
|name=
|pluralName=
|icon=
|iconUrl=
|documentation=
|wikiDocumentation=
|defaultstoremode=
|listLimit=
|cargo=
|context=
|storemode=property
}}

storemode none

{{Topic
|name=
|pluralName=
|icon=
|iconUrl=
|documentation=
|wikiDocumentation=
|defaultstoremode=
|listLimit=
|cargo=
|context=
|storemode=none
}}


viewmode tableheader

{{Topic
|name=
|pluralName=
|icon=
|iconUrl=
|documentation=
|wikiDocumentation=
|defaultstoremode=
|listLimit=
|cargo=
|context=
|viewmode=tableheader
}}

viewmode tablerow

{{Topic
|name=
|pluralName=
|icon=
|iconUrl=
|documentation=
|wikiDocumentation=
|defaultstoremode=
|listLimit=
|cargo=
|context=
|viewmode=tablerow
}}

viewmode tablefooter

{{Topic
|name=
|pluralName=
|icon=
|iconUrl=
|documentation=
|wikiDocumentation=
|defaultstoremode=
|listLimit=
|cargo=
|context=
|viewmode=tablefooter
}}

viewmode labelfield

{{Topic
|name=
|pluralName=
|icon=
|iconUrl=
|documentation=
|wikiDocumentation=
|defaultstoremode=
|listLimit=
|cargo=
|context=
|viewmode=labelfield
}}

Source

{{#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:{{{?context|}}}|"{{{?context}}}" is context of it <br>|}}
|#default={{#switch:{{{storemode|}}}
|none=

|{{#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 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
}}
|tableheader={{{!}} class='wikitable'
!name!!pluralName!!icon!!iconUrl!!documentation!!wikiDocumentation!!defaultstoremode!!listLimit!!cargo!!context
{{!}}-
|tablerow=
{{!}}{{{name|}}}{{!}}{{!}}{{{pluralName|}}}{{!}}{{!}}{{{icon|}}}{{!}}{{!}}{{{iconUrl|}}}{{!}}{{!}}{{{documentation|}}}{{!}}{{!}}{{{wikiDocumentation|}}}{{!}}{{!}}{{{defaultstoremode|}}}{{!}}{{!}}{{{listLimit|}}}{{!}}{{!}}{{{cargo|}}}{{!}}{{!}}{{{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>context={{#if:{{{context|}}}|[[{{{context|}}}]]|}}<br>|#default={{{!}} class='wikitable'
! colspan='2' {{!}}Topic
{{!}}-
!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
{{!}}&nbsp;{{#if:{{{wikiDocumentation|}}}|{{{wikiDocumentation|}}}|}}
{{!}}-
!default storemode
{{!}}&nbsp;{{#if:{{{defaultstoremode|}}}|{{{defaultstoremode|}}}|}}
{{!}}-
!list Limit
{{!}}&nbsp;{{#if:{{{listLimit|}}}|{{{listLimit|}}}|}}
{{!}}-
!use cargo
{{!}}&nbsp;{{#if:{{{cargo|}}}|{{{cargo|}}}|}}
{{!}}-
!context
{{!}}&nbsp;{{#if:{{{context|}}}|[[{{{context|}}}]]|}}
{{!}}-
{{!}}}
}}
}}
[[Category:Topic]]

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