Difference between revisions of "Template:Buginfobox"

From Alpha Centauri Wiki
Jump to: navigation, search
m
m (adding logic for categorizing by category, fixing some things)
 
(2 intermediate revisions 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>
+
     </tr>{{#if:{{{savebefore|}}}|
 
     <tr>
 
     <tr>
         <td>Save before</td>
+
         <td colspan="2">[{{{savebefore|}}} Save before]</td>
        <td>{{{savebefore|}}}</td>
+
     </tr>|}}{{#if:{{{saveafter|}}}|
     </tr>
+
 
     <tr>
 
     <tr>
         <td>Save after</td>
+
         <td colspan="2">[{{{saveafter|}}} Save after]</td>
         <td>{{{saveafter|}}}</td>
+
    </tr>|}}{{#if:{{{thread|}}}|
     </tr>
+
    <tr>
 +
         <td colspan="2">[{{{thread|}}} Thread]</td>
 +
     </tr>|}}
 
     <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 33: Line 34:
 
|savebefore=
 
|savebefore=
 
|saveafter=
 
|saveafter=
|category=Crash, Exploit, Bug, Enhancement, Modifiability
+
|thread=
 +
|category=Crash, Exploit, Bug, AI, Enhancement, Modifiability
 
}}</pre>
 
}}</pre>
  
Line 43: Line 45:
 
|savebefore= link to save file
 
|savebefore= link to save file
 
|saveafter= link to save file
 
|saveafter= link to save file
|category=Crash, Exploit, Bug, Enhancement, Modifiability
+
|thread=
 +
|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
}}