Difference between revisions of "Template:Bug"

From Inkscape Wiki
Jump to navigation Jump to search
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<span style="background:green">[https://bugs.launchpad.net/inkscape/+bug/{{{id}}} lp:{{{id}}}]</span>
<includeonly><!-- Set the background color according to the bug status (if specified) --><span style=
{{#switch: {{{status}}}
  | new
  | incomplete  = "background:LightPink"
  | confirmed
  | triaged      = "background:LemonChiffon"
  | inprogress
  | fixcommitted = "background:LightSkyBlue"
  | fixed        = "background:PaleGreen;text-decoration:line-through"
  | invalid
  | wontfix      = "background:LightGray;text-decoration:line-through"
}}
><!-- Use the description of the bug-link if it has been specified -->[https://bugs.launchpad.net/inkscape/+bug/{{{id}}} {{#if: {{{name|}}} | {{{name}}} (lp:{{{id}}})| lp:{{{id}}} }}]</span></includeonly><noinclude>
This template provides a color-coded link to an Inkscape bug on Launchpad.  For example, to link to bug #1662098, which has the status "invalid", use:
 
<code><nowiki>{{bug | id = 1662098 | status = invalid}}</nowiki></code>
 
This will render as {{bug | id = 1662098 | status = invalid}}
 
The list of valid status codes is:
* <span style = "background:LightPink">new</span>
* <span style = "background:LightPink">incomplete</span>
* <span style = "background:LemonChiffon">confirmed</span>
* <span style = "background:LemonChiffon">triaged</span>
* <span style = "background:LightSkyBlue">inprogress</span>
* <span style = "background:LightSkyBlue">fixcommitted</span>
* <span style = "background:PaleGreen;text-decoration:line-through">fixed</span>
* <span style = "background:LightGray;text-decoration:line-through">invalid</span>
* <span style = "background:LightGray;text-decoration:line-through">wontfix</span>
 
You can also provide a name or description of the bug by using the format:
<code><nowiki>{{bug | id = 1662098 | name = An example bug | status = invalid}}</nowiki></code>
 
This renders as {{bug | id = 1662098 | name = An example bug | status = invalid}}
</noinclude>

Latest revision as of 14:29, 23 February 2017

This template provides a color-coded link to an Inkscape bug on Launchpad. For example, to link to bug #1662098, which has the status "invalid", use:

{{bug | id = 1662098 | status = invalid}}

This will render as {{#if: | {{{name}}} (lp:1662098)| lp:1662098 }}

The list of valid status codes is:

  • new
  • incomplete
  • confirmed
  • triaged
  • inprogress
  • fixcommitted
  • fixed
  • invalid
  • wontfix

You can also provide a name or description of the bug by using the format: {{bug | id = 1662098 | name = An example bug | status = invalid}}

This renders as {{#if: An example bug | An example bug (lp:1662098)| lp:1662098 }}