Difference between revisions of "Template:Bug"

From Inkscape Wiki
Jump to: navigation, search
 
(3 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
   | incomplete = "background:LightPink"
+
   | incomplete   = "background:LightPink"
 
   | confirmed
 
   | confirmed
   | triaged     = "background:LemonChiffon"
+
   | triaged     = "background:LemonChiffon"
 
   | inprogress
 
   | inprogress
   | fixcommited = "background:LightSkyBlue"  
+
   | fixcommitted = "background:LightSkyBlue"  
   | fixed       = "background:PaleGreen;text-decoration:line-through"
+
   | fixed       = "background:PaleGreen;text-decoration:line-through"
 
   | invalid
 
   | invalid
   | 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 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 An example bug (lp:1662098)