Difference between revisions of "Template:TopicLink"

From BITPlan royal-family Wiki
Jump to navigation Jump to search
(created by WikiTask 2017-10-03T17:25:09Z)
 
m (created by WikiTask 2019-10-11T04:58:03Z)
 
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
<!--
 
<!--
   -- Copyright (C) 2015-2016 BITPlan GmbH
+
   -- Copyright (C) 2015-2019 BITPlan GmbH
 
   --  
 
   --  
 
   -- Pater-Delp-Str. -- 1
 
   -- Pater-Delp-Str. -- 1
Line 170: Line 170:
 
}}
 
}}
 
{{#switch: {{{viewmode|}}}
 
{{#switch: {{{viewmode|}}}
 +
|hidden=
 
|masterdetail=
 
|masterdetail=
 
|tableheader={{{!}} class='wikitable'
 
|tableheader={{{!}} class='wikitable'
Line 266: Line 267:
 
}}
 
}}
 
{{#switch: {{{viewmode|}}}
 
{{#switch: {{{viewmode|}}}
 +
|hidden=
 
|masterdetail=
 
|masterdetail=
 
|tableheader={{{!}} class='wikitable'
 
|tableheader={{{!}} class='wikitable'

Latest revision as of 06:58, 11 October 2019

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 (pretty printed)

{{#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|}}}
}}
|#default={{#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|}}}
|hidden=
|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
{{!}}-
{{#switch:{{{storemode|}}}|property=
! colspan='2' style='text-align:left' {{!}} {{Icon|name=edit|size=24}}{{Link|target=Special:FormEdit/TopicLink/{{FULLPAGENAME}}|title=edit}}
{{!}}-
}}
!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|}}}|}}
{{!}}-
{{!}}}
}}
}}

Source

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