Template:TopicLink: Difference between revisions

From BITPlan Wiki
Jump to navigation Jump to search
m (created by WikiTask 2017-11-05T16:17:37Z)
(modified by py-yprinciple-gen 0.2.5)
Line 1: Line 1:
<noinclude>
<noinclude><!--
<!--
   --     Copyright (C) 2015-2023 BITPlan GmbH
   -- Copyright (C) 2015-2017 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:TopicLink|title=TopicLink}}.
This is the [https://wiki.bitplan.com/index.php/ProfiWiki BITPlan Y-Prinzip ProfiWiki]-Template for "TopicLink".
It belongs to the concept/topic {{Link|target=:Concept:TopicLink}}<br>
=== see also ===
You may find examples for the use of this template via the {{Link|target=List of TopicLinks}}.
see also
* [[List of TopicLinks]]
* [[Help:TopicLink]]
* [[Concept:TopicLink]]
* [[:Category:TopicLink]]
* [[:Template:TopicLink]]
* [[:Form:TopicLink]]
topic links:
=== Usage ===
=== Usage ===
==== storemode subobject ====
<pre>{{TopicLink
<pre>{{TopicLink
|name=
|name=
Line 25: Line 30:
|targetMultiple=
|targetMultiple=
|targetDocumentation=
|targetDocumentation=
|separator=
|masterDetail=
|masterDetail=
|storemode=subobject
|storemode=property or subjobject or none"
}}
}}
</pre>
[[Category:Template]]
 
</noinclude><includeonly>{{#switch:{{{storemode|}}}
==== storemode property ====
<pre>{{TopicLink
|name=
|source=
|sourceRole=
|sourceMultiple=
|sourceDocumentation=
|target=
|targetRole=
|targetMultiple=
|targetDocumentation=
|masterDetail=
|storemode=property
}}
</pre>
 
==== storemode none ====
<pre>{{TopicLink
|name=
|source=
|sourceRole=
|sourceMultiple=
|sourceDocumentation=
|target=
|targetRole=
|targetMultiple=
|targetDocumentation=
|masterDetail=
|storemode=none
}}
</pre>
 
 
==== viewmode tableheader ====
<pre>{{TopicLink
|name=
|source=
|sourceRole=
|sourceMultiple=
|sourceDocumentation=
|target=
|targetRole=
|targetMultiple=
|targetDocumentation=
|masterDetail=
|viewmode=tableheader
}}
</pre>
 
==== viewmode tablerow ====
<pre>{{TopicLink
|name=
|source=
|sourceRole=
|sourceMultiple=
|sourceDocumentation=
|target=
|targetRole=
|targetMultiple=
|targetDocumentation=
|masterDetail=
|viewmode=tablerow
}}
</pre>
 
==== viewmode tablefooter ====
<pre>{{TopicLink
|name=
|source=
|sourceRole=
|sourceMultiple=
|sourceDocumentation=
|target=
|targetRole=
|targetMultiple=
|targetDocumentation=
|masterDetail=
|viewmode=tablefooter
}}
</pre>
 
==== viewmode labelfield ====
<pre>{{TopicLink
|name=
|source=
|sourceRole=
|sourceMultiple=
|sourceDocumentation=
|target=
|targetRole=
|targetMultiple=
|targetDocumentation=
|masterDetail=
|viewmode=labelfield
}}
</pre>
 
=== Source (pretty printed) ===
<source lang='html4strict'>
{{#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=
|none=
|subobject={{#subobject:-
|subobject={{#subobject:-
Line 153: Line 48:
|TopicLink targetMultiple={{{targetMultiple|}}}
|TopicLink targetMultiple={{{targetMultiple|}}}
|TopicLink targetDocumentation={{{targetDocumentation|}}}
|TopicLink targetDocumentation={{{targetDocumentation|}}}
|TopicLink separator={{{separator|}}}
|TopicLink masterDetail={{{masterDetail|}}}
|TopicLink masterDetail={{{masterDetail|}}}
}}
}}
Line 166: Line 62:
|TopicLink targetMultiple={{{targetMultiple|}}}
|TopicLink targetMultiple={{{targetMultiple|}}}
|TopicLink targetDocumentation={{{targetDocumentation|}}}
|TopicLink targetDocumentation={{{targetDocumentation|}}}
|TopicLink separator={{{separator|}}}
|TopicLink masterDetail={{{masterDetail|}}}
|TopicLink masterDetail={{{masterDetail|}}}
}}
}}
}}
}}
{{#switch: {{{viewmode|}}}
{{#switch:{{{viewmode|}}}|hidden=|masterdetail=
|masterdetail=
|#default={{{!}} class='wikitable'
|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
! colspan='2' {{!}}TopicLink
{{!}}-
{{!}}-
Line 186: Line 74:
{{!}}-
{{!}}-
}}
}}
!name
![[Property:TopicLink name|name]]
{{!}}&nbsp;{{#if:{{{name|}}}|{{{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>
=== 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 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|}}}
|masterdetail=
|tableheader={{{!}} class='wikitable'
!name!!source!!sourceRole!!sourceMultiple!!sourceDocumentation!!target!!targetRole!!targetMultiple!!targetDocumentation!!masterDetail
{{!}}-
{{!}}-
|tablerow=
![[Property:TopicLink source|source]]
{{!}}{{{name|}}}{{!}}{{!}}{{{source|}}}{{!}}{{!}}{{{sourceRole|}}}{{!}}{{!}}{{{sourceMultiple|}}}{{!}}{{!}}{{{sourceDocumentation|}}}{{!}}{{!}}{{{target|}}}{{!}}{{!}}{{{targetRole|}}}{{!}}{{!}}{{{targetMultiple|}}}{{!}}{{!}}{{{targetDocumentation|}}}{{!}}{{!}}{{{masterDetail|}}}
{{!}}&nbsp;{{#if:{{{source|}}}|{{{source}}}|}}→[[{{{source|}}}]]
{{!}}-
{{!}}-
|tablefooter={{!}}}
![[Property:TopicLink sourceRole|sourceRole]]
|labelfield=
{{!}}&nbsp;{{#if:{{{sourceRole|}}}|{{{sourceRole}}}|}}
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=
![[Property:TopicLink sourceMultiple|sourceMultiple]]
! colspan='2' style='text-align:left' {{!}} {{Icon|name=edit|size=24}}{{Link|target=Special:FormEdit/TopicLink/{{FULLPAGENAME}}|title=edit}}
{{!}}&nbsp;{{#if:{{{sourceMultiple|}}}|{{{sourceMultiple}}}|}}
{{!}}-
}}
!name
{{!}}&nbsp;{{#if:{{{name|}}}|{{{name|}}}|}}
{{!}}-
{{!}}-
!source
![[Property:TopicLink sourceDocumentation|sourceDocumentation]]
{{!}}&nbsp;{{#if:{{{source|}}}|[[{{{source|}}}]]|}}
{{!}}&nbsp;{{#if:{{{sourceDocumentation|}}}|{{{sourceDocumentation}}}|}}
{{!}}-
{{!}}-
!sourceRole
![[Property:TopicLink target|target]]
{{!}}&nbsp;{{#if:{{{sourceRole|}}}|{{{sourceRole|}}}|}}
{{!}}&nbsp;{{#if:{{{target|}}}|{{{target}}}|}}→[[{{{target|}}}]]
{{!}}-
{{!}}-
!sourceMultiple
![[Property:TopicLink targetRole|targetRole]]
{{!}}&nbsp;{{#if:{{{sourceMultiple|}}}|{{{sourceMultiple|}}}|}}
{{!}}&nbsp;{{#if:{{{targetRole|}}}|{{{targetRole}}}|}}
{{!}}-
{{!}}-
!source Doc
![[Property:TopicLink targetMultiple|targetMultiple]]
{{!}}&nbsp;{{#if:{{{sourceDocumentation|}}}|{{{sourceDocumentation|}}}|}}
{{!}}&nbsp;{{#if:{{{targetMultiple|}}}|{{{targetMultiple}}}|}}
{{!}}-
{{!}}-
!target
![[Property:TopicLink targetDocumentation|targetDocumentation]]
{{!}}&nbsp;{{#if:{{{target|}}}|[[{{{target|}}}]]|}}
{{!}}&nbsp;{{#if:{{{targetDocumentation|}}}|{{{targetDocumentation}}}|}}
{{!}}-
{{!}}-
!targetRole
![[Property:TopicLink separator|separator]]
{{!}}&nbsp;{{#if:{{{targetRole|}}}|{{{targetRole|}}}|}}
{{!}}&nbsp;{{#if:{{{separator|}}}|{{{separator}}}|}}
{{!}}-
{{!}}-
!sourceMultiple
![[Property:TopicLink masterDetail|masterDetail]]
{{!}}&nbsp;{{#if:{{{targetMultiple|}}}|{{{targetMultiple|}}}|}}
{{!}}&nbsp;{{#if:{{{masterDetail|}}}|{{{masterDetail}}}|}}
{{!}}-
!target Doc
{{!}}&nbsp;{{#if:{{{targetDocumentation|}}}|{{{targetDocumentation|}}}|}}
{{!}}-
!masterDetail
{{!}}&nbsp;{{#if:{{{masterDetail|}}}|{{{masterDetail|}}}|}}
{{!}}-
{{!}}-
{{!}}}
{{!}}}
}}
}}
}}
</includeonly>
</includeonly>

Revision as of 10:14, 10 March 2023