Template:TopicLink

From BITPlan profiwiki Wiki
Revision as of 07:47, 6 November 2015 by Wf (talk | contribs) (created by WikiTask 2015-11-06T06:47:31Z)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

Usage

storemode subobject

{{TopicLink
|name=
|source=
|sourceRole=
|sourceMultiple=
|sourceDocumentation=
|target=
|targetRole=
|targetMultiple=
|targetDocumentation=
|masterDetail=
|storemode=subobject
}}

storemode property

{{TopicLink
|name=
|source=
|sourceRole=
|sourceMultiple=
|sourceDocumentation=
|target=
|targetRole=
|targetMultiple=
|targetDocumentation=
|masterDetail=
|storemode=property
}}

storemode none

{{TopicLink
|name=
|source=
|sourceRole=
|sourceMultiple=
|sourceDocumentation=
|target=
|targetRole=
|targetMultiple=
|targetDocumentation=
|masterDetail=
|storemode=none
}}


viewmode tableheader

{{TopicLink
|name=
|source=
|sourceRole=
|sourceMultiple=
|sourceDocumentation=
|target=
|targetRole=
|targetMultiple=
|targetDocumentation=
|masterDetail=
|viewmode=tableheader
}}

viewmode tablerow

{{TopicLink
|name=
|source=
|sourceRole=
|sourceMultiple=
|sourceDocumentation=
|target=
|targetRole=
|targetMultiple=
|targetDocumentation=
|masterDetail=
|viewmode=tablerow
}}

viewmode tablefooter

{{TopicLink
|name=
|source=
|sourceRole=
|sourceMultiple=
|sourceDocumentation=
|target=
|targetRole=
|targetMultiple=
|targetDocumentation=
|masterDetail=
|viewmode=tablefooter
}}

viewmode labelfield

{{TopicLink
|name=
|source=
|sourceRole=
|sourceMultiple=
|sourceDocumentation=
|target=
|targetRole=
|targetMultiple=
|targetDocumentation=
|masterDetail=
|viewmode=labelfield
}}

Source

{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA TopicLink<br>|}}
{{#if:{{{?name|}}}|"{{{?name}}}" is name of it <br>|}}
{{#if:{{{?source|}}}|"{{{?source}}}" is source of it <br>|}}
{{#if:{{{?sourceRole|}}}|"{{{?sourceRole}}}" is sourceRole of it <br>|}}
{{#if:{{{?sourceMultiple|}}}|"{{{?sourceMultiple}}}" is sourceMultiple of it <br>|}}
{{#if:{{{?sourceDocumentation|}}}|"{{{?sourceDocumentation}}}" is sourceDocumentation of it <br>|}}
{{#if:{{{?target|}}}|"{{{?target}}}" is target of it <br>|}}
{{#if:{{{?targetRole|}}}|"{{{?targetRole}}}" is targetRole of it <br>|}}
{{#if:{{{?targetMultiple|}}}|"{{{?targetMultiple}}}" is targetMultiple of it <br>|}}
{{#if:{{{?targetDocumentation|}}}|"{{{?targetDocumentation}}}" is targetDocumentation of it <br>|}}
{{#if:{{{?masterDetail|}}}|"{{{?masterDetail}}}" is masterDetail of it <br>|}}
|#default={{#switch:{{{storemode|}}}
|none=
|subobject={{#subobject:-
|isA=TopicLink
|TopicLink name={{{name|}}}
|TopicLink source={{{source|}}}
|TopicLink sourceRole={{{sourceRole|}}}
|TopicLink sourceMultiple={{{sourceMultiple|}}}
|TopicLink sourceDocumentation={{{sourceDocumentation|}}}
|TopicLink target={{{target|}}}
|TopicLink targetRole={{{targetRole|}}}
|TopicLink targetMultiple={{{targetMultiple|}}}
|TopicLink targetDocumentation={{{targetDocumentation|}}}
|TopicLink masterDetail={{{masterDetail|}}}
}}
|{{#set:
|isA=TopicLink
|TopicLink name={{{name|}}}
|TopicLink source={{{source|}}}
|TopicLink sourceRole={{{sourceRole|}}}
|TopicLink sourceMultiple={{{sourceMultiple|}}}
|TopicLink sourceDocumentation={{{sourceDocumentation|}}}
|TopicLink target={{{target|}}}
|TopicLink targetRole={{{targetRole|}}}
|TopicLink targetMultiple={{{targetMultiple|}}}
|TopicLink targetDocumentation={{{targetDocumentation|}}}
|TopicLink masterDetail={{{masterDetail|}}}
}}
}}
{{#switch: {{{viewmode|}}}
|masterdetail=
|tableheader={{{!}} class='wikitable'
!name!!source!!sourceRole!!sourceMultiple!!sourceDocumentation!!target!!targetRole!!targetMultiple!!targetDocumentation!!masterDetail
{{!}}-
|tablerow=
{{!}}{{{name|}}}{{!}}{{!}}{{{source|}}}{{!}}{{!}}{{{sourceRole|}}}{{!}}{{!}}{{{sourceMultiple|}}}{{!}}{{!}}{{{sourceDocumentation|}}}{{!}}{{!}}{{{target|}}}{{!}}{{!}}{{{targetRole|}}}{{!}}{{!}}{{{targetMultiple|}}}{{!}}{{!}}{{{targetDocumentation|}}}{{!}}{{!}}{{{masterDetail|}}}
{{!}}-
|tablefooter={{!}}}
|labelfield=
name={{#if:{{{name|}}}|{{{name|}}}|}}<br>source={{#if:{{{source|}}}|[[{{{source|}}}]]|}}<br>sourceRole={{#if:{{{sourceRole|}}}|{{{sourceRole|}}}|}}<br>sourceMultiple={{#if:{{{sourceMultiple|}}}|{{{sourceMultiple|}}}|}}<br>sourceDocumentation={{#if:{{{sourceDocumentation|}}}|{{{sourceDocumentation|}}}|}}<br>target={{#if:{{{target|}}}|[[{{{target|}}}]]|}}<br>targetRole={{#if:{{{targetRole|}}}|{{{targetRole|}}}|}}<br>targetMultiple={{#if:{{{targetMultiple|}}}|{{{targetMultiple|}}}|}}<br>targetDocumentation={{#if:{{{targetDocumentation|}}}|{{{targetDocumentation|}}}|}}<br>masterDetail={{#if:{{{masterDetail|}}}|{{{masterDetail|}}}|}}<br>|#default={{{!}} class='wikitable'
! colspan='2' {{!}}TopicLink
{{!}}-
!name
{{!}}&nbsp;{{#if:{{{name|}}}|{{{name|}}}|}}
{{!}}-
!source
{{!}}&nbsp;{{#if:{{{source|}}}|[[{{{source|}}}]]|}}
{{!}}-
!sourceRole
{{!}}&nbsp;{{#if:{{{sourceRole|}}}|{{{sourceRole|}}}|}}
{{!}}-
!sourceMultiple
{{!}}&nbsp;{{#if:{{{sourceMultiple|}}}|{{{sourceMultiple|}}}|}}
{{!}}-
!source Doc
{{!}}&nbsp;{{#if:{{{sourceDocumentation|}}}|{{{sourceDocumentation|}}}|}}
{{!}}-
!target
{{!}}&nbsp;{{#if:{{{target|}}}|[[{{{target|}}}]]|}}
{{!}}-
!targetRole
{{!}}&nbsp;{{#if:{{{targetRole|}}}|{{{targetRole|}}}|}}
{{!}}-
!sourceMultiple
{{!}}&nbsp;{{#if:{{{targetMultiple|}}}|{{{targetMultiple|}}}|}}
{{!}}-
!target Doc
{{!}}&nbsp;{{#if:{{{targetDocumentation|}}}|{{{targetDocumentation|}}}|}}
{{!}}-
!masterDetail
{{!}}&nbsp;{{#if:{{{masterDetail|}}}|{{{masterDetail|}}}|}}
{{!}}-
{{!}}}
}}
}}

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