Difference between revisions of "Template:TopicLink"
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- | + | -- 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 05: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 }}
{{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
{{!}} {{#if:{{{name|}}}|{{{name|}}}|}}
{{!}}-
!source
{{!}} {{#if:{{{source|}}}|[[{{{source|}}}]]|}}
{{!}}-
!sourceRole
{{!}} {{#if:{{{sourceRole|}}}|{{{sourceRole|}}}|}}
{{!}}-
!sourceMultiple
{{!}} {{#if:{{{sourceMultiple|}}}|{{{sourceMultiple|}}}|}}
{{!}}-
!source Doc
{{!}} {{#if:{{{sourceDocumentation|}}}|{{{sourceDocumentation|}}}|}}
{{!}}-
!target
{{!}} {{#if:{{{target|}}}|[[{{{target|}}}]]|}}
{{!}}-
!targetRole
{{!}} {{#if:{{{targetRole|}}}|{{{targetRole|}}}|}}
{{!}}-
!sourceMultiple
{{!}} {{#if:{{{targetMultiple|}}}|{{{targetMultiple|}}}|}}
{{!}}-
!target Doc
{{!}} {{#if:{{{targetDocumentation|}}}|{{{targetDocumentation|}}}|}}
{{!}}-
!masterDetail
{{!}} {{#if:{{{masterDetail|}}}|{{{masterDetail|}}}|}}
{{!}}-
{{!}}}
}}
}}
Source
Click on "Edit" to edit the noinclude-part Source of this Template.