Difference between revisions of "Template:Weapons/TestStatsTB"

From ELWiki
Jump to navigation Jump to search
m (fix conditional name row)
m (fix more conditional name row)
Line 2: Line 2:
 
<table style="border:1px solid grey; border-right: none" cellpadding="3" cellspacing="0" align="center" class="rightbordergrey">
 
<table style="border:1px solid grey; border-right: none" cellpadding="3" cellspacing="0" align="center" class="rightbordergrey">
 
<tr style="background:#efefef;">
 
<tr style="background:#efefef;">
{{#if: {{{name}}}|<th title="Name">Name</th>|{{#if: {{{name2}}}|<th title="Name">Name</th>}} }}
+
{{#if:{{{name}}}|<th title="Name">Name</th>|{{#if:{{{name2}}}|<th title="Name">Name</th>}} }}
 
   <th title="Damage">Dmg</th>
 
   <th title="Damage">Dmg</th>
 
   <th title="Cold Damage">Cold</th>
 
   <th title="Cold Damage">Cold</th>

Revision as of 21:25, 25 July 2012


Produces a table with stats, parameters are

  • name: Name
  • dmg: Damage
  • cold: Cold damage
  • fire: Fire damage
  • mag: Magic damage
  • rad: Radiation damage
  • avgdmg: Average Damage
  • def: Defense bonus/penalty
  • acc: Accuracy bonus/penalty
  • crith: Critical to hit bonus/penalty
  • critd: Critical to damage bonus/penalty
  • light: Light Modifier bonus/penalty
  • emu: Weight
  • hnex: Human Nexus required to wear
  • fail: Degrade / Break when fails

All parameters are optional, if left empty, they'll produce an empty table cell.
Parameters for the degraded version are all optional; they have the same name but followed by a 2 (e.g. name2, dmg2, ...)