Difference between revisions of "Template:TopicLink"

From BITPlan E-Bike Wiki
Jump to navigation Jump to search
(created by WikiTask 2018-06-18T23:10:30Z)
 
(modified by py-yprinciple-gen 0.3.4)
 
Line 1: Line 1:
<noinclude>
+
<noinclude><!--
<!--
+
   --     Copyright (C) 2015-2024 BITPlan GmbH
   -- Copyright (C) 2015-2018 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]]
 +
 
 
=== 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 subobject or none"
 
}}
 
}}
 
</pre>
 
</pre>
 
+
[[Category:Template]]
==== storemode property ====
+
</noinclude><includeonly>{{#switch:{{{storemode|}}}
<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 49:
 
|TopicLink targetMultiple={{{targetMultiple|}}}
 
|TopicLink targetMultiple={{{targetMultiple|}}}
 
|TopicLink targetDocumentation={{{targetDocumentation|}}}
 
|TopicLink targetDocumentation={{{targetDocumentation|}}}
 +
|TopicLink separator={{{separator|}}}
 
|TopicLink masterDetail={{{masterDetail|}}}
 
|TopicLink masterDetail={{{masterDetail|}}}
 
}}
 
}}
Line 166: Line 63:
 
|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=
|hidden=
+
|#default={{{!}} class='wikitable'
|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
 
! colspan='2' {{!}}TopicLink
 
{{!}}-
 
{{!}}-
Line 187: Line 75:
 
{{!}}-
 
{{!}}-
 
}}
 
}}
!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|}}}
 
|hidden=
 
|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}}}|}}
 
{{!}}-
 
{{!}}-
}}
+
![[Property:TopicLink sourceDocumentation|sourceDocumentation]]
!name
+
{{!}}&nbsp;{{#if:{{{sourceDocumentation|}}}|{{{sourceDocumentation}}}|}}
{{!}}&nbsp;{{#if:{{{name|}}}|{{{name|}}}|}}
 
 
{{!}}-
 
{{!}}-
!source
+
![[Property:TopicLink target|target]]
{{!}}&nbsp;{{#if:{{{source|}}}|[[{{{source|}}}]]|}}
+
{{!}}&nbsp;{{#if:{{{target|}}}|{{{target}}}|}}→[[{{{target|}}}]]
 
{{!}}-
 
{{!}}-
!sourceRole
+
![[Property:TopicLink targetRole|targetRole]]
{{!}}&nbsp;{{#if:{{{sourceRole|}}}|{{{sourceRole|}}}|}}
+
{{!}}&nbsp;{{#if:{{{targetRole|}}}|{{{targetRole}}}|}}
 
{{!}}-
 
{{!}}-
!sourceMultiple
+
![[Property:TopicLink targetMultiple|targetMultiple]]
{{!}}&nbsp;{{#if:{{{sourceMultiple|}}}|{{{sourceMultiple|}}}|}}
+
{{!}}&nbsp;{{#if:{{{targetMultiple|}}}|{{{targetMultiple}}}|}}
 
{{!}}-
 
{{!}}-
!source Doc
+
![[Property:TopicLink targetDocumentation|targetDocumentation]]
{{!}}&nbsp;{{#if:{{{sourceDocumentation|}}}|{{{sourceDocumentation|}}}|}}
+
{{!}}&nbsp;{{#if:{{{targetDocumentation|}}}|{{{targetDocumentation}}}|}}
 
{{!}}-
 
{{!}}-
!target
+
![[Property:TopicLink separator|separator]]
{{!}}&nbsp;{{#if:{{{target|}}}|[[{{{target|}}}]]|}}
+
{{!}}&nbsp;{{#if:{{{separator|}}}|{{{separator}}}|}}
 
{{!}}-
 
{{!}}-
!targetRole
+
![[Property:TopicLink masterDetail|masterDetail]]
{{!}}&nbsp;{{#if:{{{targetRole|}}}|{{{targetRole|}}}|}}
+
{{!}}&nbsp;{{#if:{{{masterDetail|}}}|{{{masterDetail}}}|}}
{{!}}-
 
!sourceMultiple
 
{{!}}&nbsp;{{#if:{{{targetMultiple|}}}|{{{targetMultiple|}}}|}}
 
{{!}}-
 
!target Doc
 
{{!}}&nbsp;{{#if:{{{targetDocumentation|}}}|{{{targetDocumentation|}}}|}}
 
{{!}}-
 
!masterDetail
 
{{!}}&nbsp;{{#if:{{{masterDetail|}}}|{{{masterDetail|}}}|}}
 
 
{{!}}-
 
{{!}}-
 
{{!}}}
 
{{!}}}
}}
 
 
}}
 
}}
 
</includeonly>
 
</includeonly>

Latest revision as of 09:54, 27 November 2024

This is the BITPlan Y-Prinzip ProfiWiki-Template for "TopicLink".

see also

see also

Usage

{{TopicLink
|name=
|source=
|sourceRole=
|sourceMultiple=
|sourceDocumentation=
|target=
|targetRole=
|targetMultiple=
|targetDocumentation=
|separator=
|masterDetail=
|storemode=property or subobject or none"
}}