Template:Tickets: Difference between revisions

Jump to navigation Jump to search
Turning this template into a link to the issue tracker tickets after having moved out other functionalities to Template:Register to sf and Template:create ticket
(+ Labels instead of bare links; + Default; doc; +rel: Template:Issue)
(Turning this template into a link to the issue tracker tickets after having moved out other functionalities to Template:Register to sf and Template:create ticket)
Line 1: Line 1:
{{#if: <!-- Are any parameter non-empty? -->
[{{#if: {{{2|-}}} | http://sourceforge.net/p/flightgear/codetickets/search/?q={{urlencode:{{{2}}}|QUERY}} | http://sourceforge.net/p/flightgear/codetickets/}} {{#if: {{{1|}}} | {{{1}}} | Issue tracker tickets}}]<noinclude>
{{{registration|}}}{{{new-ticket|}}}
| <!-- one or more parameter is non-empty
-->{{ #if: {{{registration|}}} | [https://sourceforge.net/user/registration Register a SourceForge account]}}{{ #if: {{{new-ticket|}}} | [http://sourceforge.net/p/flightgear/codetickets/new/ Create an issue tracker ticket]}}
| <!-- No parameter is used
-->[http://sourceforge.net/p/flightgear/codetickets/ Issue tracker tickets]
}}<noinclude>
{{Informative template|1=
{{Informative template|1=
__NOTOC__
__NOTOC__
== Goal ==
== Goal ==
This template can be used either to link to:
Use this template for linking to the list of tickets on the issue tracker:
* The SourceForge new account registration form
* A form to create a new issue tracker ticket


== Usage ==
== Usage ==
  {{obr}}'''issue tracker''' {{!}}''registration='' {{!}}''new-ticket=''{{cbr}}
  {{obr}}'''tickets'''{{!}}''label''{{!}}''query''{{cbr}}


All parameters are optional.  If neither parameter is used a link to the issue tracker tickets will be shown.
Both parameters are optional.


; registrationIf not empty the template will show a link to the page for registering a new SourceForge account.
; labelLabel to use instead of the default one.


; new-ticketIf not empty the template will show a link to the page for creating a new issue tracker ticket.
; querySearch query to apply on the list.


== Examples ==
== Examples ==
  {{obr}}issue tracker{{cbr}}
  {{obr}}tickets{{cbr}}
{{issue tracker}}
{{tickets}}


  {{obr}}issue tracker{{!}}registration=1{{cbr}}
  You can see a list of issue tracker tickets {{obr}}tickets{{!}}here{{cbr}}
{{issue tracker|registration=1}}
{{tickets|here}}


  {{obr}}issue tracker{{!}}new-ticket=1{{cbr}}
  * {{obr}}tickets{{!}}List of tickets with insufficient data{{!}}status:NeedInfo{{cbr}}
{{issue tracker|new-ticket=1}}
* {{tickets|List of tickets with insufficient data|status:NeedInfo}}
 
== Query syntax ==
{{inote|The query syntax is case sensitive.}}
 
See the [http://sourceforge.net/p/flightgear/codetickets/search_help/ SourceForge ticket search help] for details.


== Related templates ==
== Related templates ==
* {{tl|issue}} – For linking to an existing issue tracker ticket
* {{tl|create ticket}} – For linking to a form creating a new issue tracker ticket
* {{tl|ticket}} – For linking to an existing issue tracker ticket
* {{tl|register to sf}} – For linking to the SourceForge form for registering a new account


}}
}}

Navigation menu