Difference between revisions of "Template:Bug"

From sureai
Jump to: navigation, search
m (Missing })
(Make "fixed" also imply "confirmed")
Line 1: Line 1:
* {{{1}}}{{#if: {{{confirmed|}}} ||<sup title="This bug is unconfirmed. If you are able to reproduce it, add a confirmed=1 to it." style = "text-decoration: underline dotted black; cursor: help; color: red; font-weight: bold;">?</sup>}} {{#if: {{{fixed|}}} |
+
* {{{1}}}{{#if: {{{confirmed|{{{fixed|}}}}}} ||<sup title="This bug is unconfirmed. If you are able to reproduce it, add a confirmed=1 to it." style = "text-decoration: underline dotted black; cursor: help; color: red; font-weight: bold;">?</sup>}} {{#if: {{{fixed|}}} |
** This bug was fixed in the [[{{NAMESPACE}}:Patch/{{{fixed}}}|{{{fixed}}} patch]].|}}<includeonly>[[Category:{{#if: {{NAMESPACE}}|{{NAMESPACE}}-|}}{{#if: {{{confirmed|}}}|Confirmed|Unconfirmed}} Bugs]]</includeonly><noinclude>
+
** This bug was fixed in the [[{{NAMESPACE}}:Patch/{{{fixed}}}|{{{fixed}}} patch]].|}}<includeonly>[[Category:{{#if: {{NAMESPACE}}|{{NAMESPACE}}-|}}{{#if: {{{fixed|}}}|Fixed|{{#if: {{{confirmed|}}}|Confirmed|Unconfirmed}}}} Bugs]]</includeonly><noinclude>
  
 
== Usage ==
 
== Usage ==
  
 
=== Parameters ===
 
=== Parameters ===
 +
''All parameters are required''
 
* '''confirmed''': If anything is written in this parameter, the bug is considered confirmed (reproduced by many users)
 
* '''confirmed''': If anything is written in this parameter, the bug is considered confirmed (reproduced by many users)
 
* '''fixed''': If present, should contain the patch number in which the bug was fixed.
 
* '''fixed''': If present, should contain the patch number in which the bug was fixed.
 +
 +
A bug can't be unconfirmed and fixed at the same time.
  
 
=== Examples ===
 
=== Examples ===
Line 22: Line 25:
  
 
<pre>
 
<pre>
{{Bug|This is an unconfirmed, fixed bug.|fixed=1.2.0.0}}
+
{{Bug|This is a fixed bug.|fixed=1.2.0.0}}
</pre>
+
 
+
{{Bug|This is an unconfirmed, fixed bug.|fixed=1.2.0.0}}
+
 
+
<pre>
+
{{Bug|This is a confirmed, fixed bug.|confirmed=1|fixed=1.2.0.0}}}
+
 
</pre>
 
</pre>
  
{{Bug|This is a confirmed, fixed bug.|confirmed=1|fixed=1.2.0.0}}
+
{{Bug|This is a fixed bug.|fixed=1.2.0.0}}
  
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 15:40, 27 June 2017

  • {{{1}}}?

Usage

Parameters

All parameters are required

  • confirmed: If anything is written in this parameter, the bug is considered confirmed (reproduced by many users)
  • fixed: If present, should contain the patch number in which the bug was fixed.

A bug can't be unconfirmed and fixed at the same time.

Examples

{{Bug|This is an unconfirmed bug.}}
  • This is an unconfirmed bug.?
{{Bug|This is a confirmed bug.|confirmed=1}}
  • This is a confirmed bug.
{{Bug|This is a fixed bug.|fixed=1.2.0.0}}