Difference between revisions of "Template:Bug"

From sureai
Jump to: navigation, search
(Created page with "* {{{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 b...")
 
(Add a fixed=future option.)
 
(3 intermediate revisions by the same user not shown)
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 {{#ifeq: {{{fixed|}}} | future |will be fixed in the next patch|was fixed in the [[{{NAMESPACE}}:Patch/{{{fixed}}}|{{{fixed}}} patch]]}}.|}}<includeonly>{{#if: {{{nocategory|}}}||[[Category:{{#if: {{{fixed|}}}|Fixed|{{#if: {{{confirmed|}}}|Confirmed|Unconfirmed}}}} Bugs{{#ifeq: {{{fixed|}}} | future |-Future|}}]]{{#if: {{NAMESPACE}}|[[Category:{{NAMESPACE}}-{{#if: {{{fixed|}}}|Fixed|{{#if: {{{confirmed|}}}|Confirmed|Unconfirmed}}}} Bugs{{#ifeq: {{{fixed|}}} | future |-Future|}}]]|}}}}</includeonly><noinclude>
  
 
== Usage ==
 
== Usage ==
Line 6: Line 6:
 
=== Parameters ===
 
=== Parameters ===
 
* '''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. Can be <code>future</code> if the bug is fixed on the WIP to-be-released patch.
 +
* '''nocategory''': If present, doesn't add the page to any category. Don't use this unless you're giving an example of how to use the template (such as below).
 +
 
 +
A bug can't be unconfirmed and fixed at the same time.
  
 
=== Examples ===
 
=== Examples ===
Line 13: Line 16:
 
</pre>
 
</pre>
  
{{Bug|This is an unconfirmed bug.}}
+
{{Bug|This is an unconfirmed bug.|nocategory=1}}
  
 
<pre>
 
<pre>
Line 19: Line 22:
 
</pre>
 
</pre>
  
{{Bug|This is a confirmed bug.|confirmed=1}}
+
{{Bug|This is a confirmed bug.|confirmed=1|nocategory=1}}
  
 
<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>
 
</pre>
  
{{Bug|This is an unconfirmed, fixed bug.|fixed=1.2.0.0}}
+
{{Bug|This is a fixed bug.|fixed=1.2.0.0|nocategory=1}}
  
 
<pre>
 
<pre>
{{Bug|This is a confirmed, fixed bug.|confirmed=1|fixed=1.2.0.0}}}
+
{{Bug|This bug will be fixed in the next patch.|fixed=future}}
 
</pre>
 
</pre>
  
{{Bug|This is a confirmed, fixed bug.|confirmed=1|fixed=1.2.0.0}}
+
{{Bug|This bug will be fixed in the next patch.|fixed=future|nocategory=1}}
 +
 
 +
 
 +
== Categories ==
 +
* [[:Category:Fixed Bugs|Fixed Bugs]]
 +
** [[:Category:Fixed Bugs-Future|Fixed Bugs-Future]]
 +
* [[:Category:Unconfirmed Bugs|Unconfirmed Bugs]]
 +
* [[:Category:Confirmed Bugs|Confirmed Bugs]]
 +
* '''Enderal'''
 +
** [[:Category:Enderal-Fixed Bugs|Enderal-Fixed Bugs]]
 +
*** [[:Category:Enderal-Fixed Bugs-Future|Enderal-Fixed Bugs-Future]]
 +
** [[:Category:Enderal-Unconfirmed Bugs|Enderal-Unconfirmed Bugs]]
 +
** [[:Category:Enderal-Confirmed Bugs|Enderal-Confirmed Bugs]]
  
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 13:33, 28 June 2017

  • {{{1}}}?

Usage

Parameters

  • 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. Can be future if the bug is fixed on the WIP to-be-released patch.
  • nocategory: If present, doesn't add the page to any category. Don't use this unless you're giving an example of how to use the template (such as below).

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}}
{{Bug|This bug will be fixed in the next patch.|fixed=future}}
  • This bug will be fixed in the next patch.
    • This bug will be fixed in the next patch.


Categories