Difference between revisions of "Template:Buginfobox"
m |
m (adding logic for categorizing by category, fixing some things) |
||
Line 5: | Line 5: | ||
<tr> | <tr> | ||
<td>Version</td> | <td>Version</td> | ||
− | <td>{{{version| | + | <td>{{#if:{{{version|}}}|{{{version}}}|unknown}}</td> |
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 22: | Line 22: | ||
<tr> | <tr> | ||
<td>Category</td> | <td>Category</td> | ||
− | <td>{{{category|uncategorized}}}</td> | + | <td>{{#if:{{{category|}}}|{{{category}}}|uncategorized}}{{#switch:{{{category}}}|Crash=[[Category:Crashes]]|Exploit=[[Category:Exploits]]|Bug=[[Category:Other bugs]]|AI=[[Category:AI bugs]]|Enhancement=[[Category:Requested enhancement]]|Modifiability=[[Category:Requested modifiability]]|[[Category:Uncategorized bugs]]}}</td> |
</tr> | </tr> | ||
</table>{{#if:{{{savebefore|}}}{{{saveafter|}}}{{{fixedin|}}}|[[Category:Bugs with saves]]|[[Category:Bugs without saves]]}}</includeonly><noinclude> | </table>{{#if:{{{savebefore|}}}{{{saveafter|}}}{{{fixedin|}}}|[[Category:Bugs with saves]]|[[Category:Bugs without saves]]}}</includeonly><noinclude> | ||
Line 35: | Line 35: | ||
|saveafter= | |saveafter= | ||
|thread= | |thread= | ||
− | |category=Crash, Exploit, Bug, Enhancement, Modifiability | + | |category=Crash, Exploit, Bug, AI, Enhancement, Modifiability |
}}</pre> | }}</pre> | ||
Line 46: | Line 46: | ||
|saveafter= link to save file | |saveafter= link to save file | ||
|thread= | |thread= | ||
− | |category=Crash, Exploit, Bug, Enhancement, Modifiability | + | |category=Crash, Exploit, Bug, AI, Enhancement, Modifiability |
}}</pre> | }}</pre> | ||
</noinclude> | </noinclude> |
Latest revision as of 13:23, 7 March 2013
Use
{{bib| |version= |status= Confirmed, Unconfirmed, Invalid, OneTime, Demonstrated |fixedin= |savebefore= |saveafter= |thread= |category=Crash, Exploit, Bug, AI, Enhancement, Modifiability }}
{{bib| |version= version reported in |status= Confirmed, Unconfirmed, Invalid, OneTime, Demonstrated (ignored if fixedin is set) |fixedin= version fixed in |savebefore= link to save file |saveafter= link to save file |thread= |category=Crash, Exploit, Bug, AI, Enhancement, Modifiability }}