Template:Ticket

From BITPlan Wiki
Revision as of 08:09, 24 January 2022 by Wf (talk | contribs) (created by WikiTask 2022-01-24T07:09:26Z)
Jump to navigation Jump to search

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.