Difference between revisions of "Template:Buginfobox"

From Alpha Centauri Wiki
Jump to: navigation, search
m (rearranging saves, adding thread)
m (adding logic for categorizing by category, fixing some things)
 
(One intermediate revision by one user not shown)
Line 4: Line 4:
 
     </tr>
 
     </tr>
 
     <tr>
 
     <tr>
         <td>Version reported</td>
+
         <td>Version</td>
         <td>{{{version|unknown}}}</td>
+
         <td>{{#if:{{{version|}}}|{{{version}}}|unknown}}</td>
 
     </tr>
 
     </tr>
 
     <tr>
 
     <tr>
 
         <td>Status</td>
 
         <td>Status</td>
         <td>{{#if:{{{fixedin|}}}|{{{fixedin}}}|{{{status|unconfirmed}}}}}}{{#if:{{{fixedin|}}}|[[Category:Solved bugs]]|{{#switch:{{{status}}}|Confirmed=[[Category:Confirmed bugs]]|Unconfirmed=[[Category:Unconfirmed bugs]]|Invalid=[[Category:Invalid bugs]]|OneTime=[[Category:Unconfirmed bugs]]|Demonstrated=[[Category:Demonstrated bugs]]|[[Category:Unconfirmed bugs]]}}}}</td>
+
         <td>{{#if:{{{fixedin|}}}|{{{fixedin}}}|{{{status|unconfirmed}}}}}{{#if:{{{fixedin|}}}|[[Category:Solved bugs]]|{{#switch:{{{status}}}|Confirmed=[[Category:Confirmed bugs]]|Unconfirmed=[[Category:Unconfirmed bugs]]|Invalid=[[Category:Invalid bugs]]|OneTime=[[Category:Unconfirmed bugs]]|Demonstrated=[[Category:Demonstrated bugs]]|[[Category:Unconfirmed bugs]]}}}}</td>
 
     </tr>{{#if:{{{savebefore|}}}|
 
     </tr>{{#if:{{{savebefore|}}}|
 
     <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
}}