Difference between revisions of "Template:Bug"

From Inkscape Wiki
Jump to navigation Jump to search
(sp)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly><!-- Set the background color according to the bug status (if specified) --><span style=
<!-- Set the background color according to the bug status (if specified) -->
<span style=
{{#switch: {{{status}}}
{{#switch: {{{status}}}
   | new
   | new
Line 13: Line 11:
   | wontfix      = "background:LightGray;text-decoration:line-through"
   | 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>
[https://bugs.launchpad.net/inkscape/+bug/{{{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:
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:


Line 33: Line 28:
* <span style = "background:LightGray;text-decoration:line-through">invalid</span>
* <span style = "background:LightGray;text-decoration:line-through">invalid</span>
* <span style = "background:LightGray;text-decoration:line-through">wontfix</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>
</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 }}