Difference between revisions of "Template:Ticket"

From BITPlan Wiki
Jump to navigation Jump to search
(pushed from media by wikipush)
m (created by WikiTask 2022-01-24T07:09:26Z)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
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>
  
see
+
==== storemode property ====
* {{Link|target=Property:Ticket title}}
+
<pre>{{Ticket
* {{Link|target=Property:Ticket project}}
+
|no=
* {{Link|target=Property:Ticket number}}
+
|title=
* {{Link|target=Property:Ticket closed_at}}
+
|project=
* {{Link|target=Property:Ticket created_at}}
+
|storemode=property
* {{Link|target=Property:Ticket url}}
+
}}
 +
</pre>
  
= Usage =
+
==== storemode none ====
<pre>{{Ticket|30|Cleanup Template}}</pre>
+
<pre>{{Ticket
<pre>{{Ticket|CONFIDENT-373|Webanalytics strategy|wiki.tib.eu}}</pre>
+
|no=
 +
|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:-
+
 
|Ticket number={{#var:number}}
+
</noinclude><includeonly>{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA Ticket<br>|}}
|Ticket title={{#var:title}}
+
{{#if:{{{?no|}}}|"{{{?no}}}" is no of it <br>|}}
|Ticket project={{#var:project}}
+
{{#if:{{{?title|}}}|"{{{?title}}}" is title of it <br>|}}
|Ticket url={{#var:url}}{{#var:path}}{{#var:number}}
+
{{#if:{{{?project|}}}|"{{{?project}}}" is project of it <br>|}}
|Ticket created_at={{{created_at|}}}
+
|#default={{#switch:{{{storemode|}}}
|Ticket closed_at={{{closed_at|}}}
+
|none=
}}{{#ifeq:{{{state|}}}|closed|{{Done}}|}}</includeonly>
+
|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|}}}]]|}}
 +
{{!}}-
 +
{{!}}}
 +
}}
 +
}}
 +
</includeonly>

Revision as of 08:09, 24 January 2022

This is the template Ticket. It belongs to the concept/topic Concept:Ticket
You may find examples for the use of this template via the List of Tickets.

Usage

storemode subobject

{{Ticket
|no=
|title=
|project=
|storemode=subobject
}}

storemode property

{{Ticket
|no=
|title=
|project=
|storemode=property
}}

storemode none

{{Ticket
|no=
|title=
|project=
|storemode=none
}}


viewmode tableheader

{{Ticket
|no=
|title=
|project=
|viewmode=tableheader
}}

viewmode tablerow

{{Ticket
|no=
|title=
|project=
|viewmode=tablerow
}}

viewmode tablefooter

{{Ticket
|no=
|title=
|project=
|viewmode=tablefooter
}}

viewmode labelfield

{{Ticket
|no=
|title=
|project=
|viewmode=labelfield
}}

Source (pretty printed)

{{#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

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