Difference between revisions of "Template:Ticket"

From BITPlan Wiki
Jump to navigation Jump to search
m (created by WikiTask 2022-01-24T07:09:26Z)
(pushed from media by wikipush)
 
Line 1: Line 1:
<noinclude>
+
<noinclude><!-- THIS FILE IS PROTECTED - smartGENERATOR WILL NOT OVERWRITE IT -->
<!--
+
This template is for referencing tickets
  -- Copyright (C) 2015-2018 BITPlan GmbH
 
  --
 
  -- Pater-Delp-Str. -- 1
 
  -- D-47877 -- Willich-Schiefbahn
 
  --
 
  -- http://www.bitplan.com
 
  --
 
  --
 
-->
 
This is the template {{Link|target=Template:Ticket|title=Ticket}}.
 
It belongs to the concept/topic {{Link|target=:Concept:Ticket}}<br>
 
You may find examples for the use of this template via the {{Link|target=List of Tickets}}.
 
=== Usage ===
 
==== storemode subobject ====
 
<pre>{{Ticket
 
|no=
 
|title=
 
|project=
 
|storemode=subobject
 
}}
 
</pre>
 
  
==== storemode property ====
+
see
<pre>{{Ticket
+
* {{Link|target=Property:Ticket title}}
|no=
+
* {{Link|target=Property:Ticket project}}
|title=
+
* {{Link|target=Property:Ticket number}}
|project=
+
* {{Link|target=Property:Ticket closedAt}}
|storemode=property
+
* {{Link|target=Property:Ticket createdAt}}
}}
+
* {{Link|target=Property:Ticket url}}
</pre>
 
  
==== storemode none ====
+
= Usage =
<pre>{{Ticket
+
<pre>{{Ticket|30|Cleanup Template}}</pre>
|no=
+
<pre>{{Ticket|CONFIDENT-373|Webanalytics strategy|wiki.tib.eu}}</pre>
|title=
 
|project=
 
|storemode=none
 
}}
 
</pre>
 
  
 +
{{Ticket|30|Cleanup Template}}
 +
{{Ticket|CONFIDENT-373|Webanalytics strategy|wiki.tib.eu}}
  
==== viewmode tableheader ====
 
<pre>{{Ticket
 
|no=
 
|title=
 
|project=
 
|viewmode=tableheader
 
}}
 
</pre>
 
 
==== viewmode tablerow ====
 
<pre>{{Ticket
 
|no=
 
|title=
 
|project=
 
|viewmode=tablerow
 
}}
 
</pre>
 
 
==== viewmode tablefooter ====
 
<pre>{{Ticket
 
|no=
 
|title=
 
|project=
 
|viewmode=tablefooter
 
}}
 
</pre>
 
 
==== viewmode labelfield ====
 
<pre>{{Ticket
 
|no=
 
|title=
 
|project=
 
|viewmode=labelfield
 
}}
 
</pre>
 
 
=== Source (pretty printed) ===
 
<source lang='html4strict'>
 
{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA Ticket<br>|}}
 
{{#if:{{{?no|}}}|"{{{?no}}}" is no of it <br>|}}
 
{{#if:{{{?title|}}}|"{{{?title}}}" is title of it <br>|}}
 
{{#if:{{{?project|}}}|"{{{?project}}}" is project of it <br>|}}
 
|#default={{#switch:{{{storemode|}}}
 
|none=
 
|subobject={{#subobject:-
 
|isA=Ticket
 
|Ticket no={{{no|}}}
 
|Ticket title={{{title|}}}
 
|Ticket project={{{project|}}}
 
}}
 
|#default={{#set:
 
|isA=Ticket
 
|Ticket no={{{no|}}}
 
|Ticket title={{{title|}}}
 
|Ticket project={{{project|}}}
 
}}
 
}}
 
{{#switch: {{{viewmode|}}}
 
|hidden=
 
|masterdetail=
 
|tableheader={{{!}} class='wikitable'
 
!no!!title!!project
 
{{!}}-
 
|tablerow=
 
{{!}}{{{no|}}}{{!}}{{!}}{{{title|}}}{{!}}{{!}}{{{project|}}}
 
{{!}}-
 
|tablefooter={{!}}}
 
|labelfield=
 
no={{#if:{{{no|}}}|{{{no|}}}|}}<br>title={{#if:{{{title|}}}|{{{title|}}}|}}<br>project={{#if:{{{project|}}}|[[{{{project|}}}]]|}}<br>|#default={{{!}} class='wikitable'
 
! colspan='2' {{!}}Ticket
 
{{!}}-
 
{{#switch:{{{storemode|}}}|property=
 
! colspan='2' style='text-align:left' {{!}} {{Icon|name=edit|size=24}}{{Link|target=Special:FormEdit/Ticket/{{FULLPAGENAME}}|title=edit}}
 
{{!}}-
 
}}
 
!no
 
{{!}}&nbsp;{{#if:{{{no|}}}|{{{no|}}}|}}
 
{{!}}-
 
!title
 
{{!}}&nbsp;{{#if:{{{title|}}}|{{{title|}}}|}}
 
{{!}}-
 
!project
 
{{!}}&nbsp;{{#if:{{{project|}}}|[[{{{project|}}}]]|}}
 
{{!}}-
 
{{!}}}
 
}}
 
}}
 
 
</source>
 
=== Source ===
 
Click on "Edit" to edit the noinclude-part Source of this Template.
 
 
[[Category:Template]]
 
[[Category:Template]]
 
+
</noinclude><includeonly>{{#vardefine:path|/issues/}}{{#if:{{{number|}}}|{{#vardefine:number|{{{number|}}}}}|{{#vardefine:number|{{{1|}}}}}}}{{#if:{{{title|}}}|{{#vardefine:title|{{{title|}}}}}|{{#vardefine:title|{{{2|}}}}}}}{{#if:{{{project|}}}|{{#vardefine:project|{{{project|}}}}}|{{#vardefine:project|{{{3|SmartDataAnalytics/OpenResearch}}}}}}}{{#vardefine:url|{{#show:{{#var:project}}|?OsProject url}}}}{{#if:{{#pos:{{#var:url}}|/jira/}}|{{#vardefine:path|/}}}}[{{#var:url}}{{#var:path}}{{#var:number}} Issue {{#var:number}} - {{#var:title}}]{{#subobject:-
</noinclude><includeonly>{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA Ticket<br>|}}
+
|Ticket number={{#var:number}}
{{#if:{{{?no|}}}|"{{{?no}}}" is no of it <br>|}}
+
|Ticket title={{#var:title}}
{{#if:{{{?title|}}}|"{{{?title}}}" is title of it <br>|}}
+
|Ticket project={{#var:project}}
{{#if:{{{?project|}}}|"{{{?project}}}" is project of it <br>|}}
+
|Ticket url={{#var:url}}{{#var:path}}{{#var:number}}
|#default={{#switch:{{{storemode|}}}
+
|Ticket createdAt={{{createdAt|}}}
|none=
+
|Ticket closedAt={{{closedAt|}}}
|subobject={{#subobject:-
+
}}{{#ifeq:{{{state|}}}|closed|{{Done}}|}}</includeonly>
|isA=Ticket
 
|Ticket no={{{no|}}}
 
|Ticket title={{{title|}}}
 
|Ticket project={{{project|}}}
 
}}
 
|#default={{#set:
 
|isA=Ticket
 
|Ticket no={{{no|}}}
 
|Ticket title={{{title|}}}
 
|Ticket project={{{project|}}}
 
}}
 
}}
 
{{#switch: {{{viewmode|}}}
 
|hidden=
 
|masterdetail=
 
|tableheader={{{!}} class='wikitable'
 
!no!!title!!project
 
{{!}}-
 
|tablerow=
 
{{!}}{{{no|}}}{{!}}{{!}}{{{title|}}}{{!}}{{!}}{{{project|}}}
 
{{!}}-
 
|tablefooter={{!}}}
 
|labelfield=
 
no={{#if:{{{no|}}}|{{{no|}}}|}}<br>title={{#if:{{{title|}}}|{{{title|}}}|}}<br>project={{#if:{{{project|}}}|[[{{{project|}}}]]|}}<br>|#default={{{!}} class='wikitable'
 
! colspan='2' {{!}}Ticket
 
{{!}}-
 
{{#switch:{{{storemode|}}}|property=
 
! colspan='2' style='text-align:left' {{!}} {{Icon|name=edit|size=24}}{{Link|target=Special:FormEdit/Ticket/{{FULLPAGENAME}}|title=edit}}
 
{{!}}-
 
}}
 
!no
 
{{!}}&nbsp;{{#if:{{{no|}}}|{{{no|}}}|}}
 
{{!}}-
 
!title
 
{{!}}&nbsp;{{#if:{{{title|}}}|{{{title|}}}|}}
 
{{!}}-
 
!project
 
{{!}}&nbsp;{{#if:{{{project|}}}|[[{{{project|}}}]]|}}
 
{{!}}-
 
{{!}}}
 
}}
 
}}
 
</includeonly>
 

Latest revision as of 09:15, 29 January 2022

This template is for referencing tickets

see

Usage

{{Ticket|30|Cleanup Template}}
{{Ticket|CONFIDENT-373|Webanalytics strategy|wiki.tib.eu}}

[/issues/30 Issue 30 - Cleanup Template]"http:///issues/30" has been identified to contain an invalid "/issues/30" authority or path component. [/issues/CONFIDENT-373 Issue CONFIDENT-373 - Webanalytics strategy]"http:///issues/CONFIDENT-373" has been identified to contain an invalid "/issues/CONFIDENT-373" authority or path component.