This is a wiki for a reason. Anyone can contribute. If you see something that is inaccurate or can be improved, don't ask that it be fixed--just improve it.
[ Disclaimer, Create new user --- Wiki markup help, Install P99 ]

Difference between revisions of "Template:Petstatsbox"

From Project 1999 Wiki
Jump to: navigation, search
 
(6 intermediate revisions by one user not shown)
Line 1: Line 1:
<noinclude>
+
<!-- Main table to display pet stats. The 'petStatsBox' class can be styled externally,
This is the template page for a pet quick stats box on the left that goes alongside the npc pet owner
+
    but we're using inline styles to define the border and width for compatibility. -->
----
+
<table cellspacing="3" class="petStatsBox" style="border: 1px solid #BECFE2; width: 220px;">
</noinclude>
+
    
<table cellspacing="3" class="petStatsBox" style="border: 1px solid #cedff2;" >
+
   <!-- Header row to display the pet's name with a custom background color.
   <tr><th bgcolor="#cedff2"> {{{name}}}
+
      {{{name}}} is a placeholder for the dynamic name field. -->
   </th></tr>
+
   <tr>
  <tr><td> '''Race:''' {{{race}}}
+
    <th bgcolor="#CEDFF2">{{{name}}}</th>
   </td></tr>
+
   </tr>
  <tr><td> '''Class:''' {{{class}}}
+
  </td></tr>
+
   <tr><td> '''Level:''' {{{level}}}
+
  </td></tr>
+
  
   <tr><th bgcolor="#f3f8fd"> Stats
+
   <!-- Row for displaying the pet's race. The <strong> tag is used to make the label bold.
  </th></tr>
+
      {{{race}}} is a placeholder for the dynamic race field. -->
  <tr><td> '''AC:''' {{{AC}}}
+
   <tr>
   </td></tr>
+
    <td><strong>Race:</strong> {{{race}}}</td>
  <tr><td> '''HP:''' {{{HP}}} <span class='ddb'>({{{HP_regen}}})</span>
+
   </tr>
  </td></tr>
+
   <tr><td> '''Damage per hit:''' {{{damage_per_hit}}}
+
  </td></tr>
+
 
    
 
    
   <!-- Additional parameters: Bash, Kick, Backstab -->
+
   <!-- Row for displaying the pet's class, similar to the race row. -->
   {{#if: {{{bash|}}}|</td></tr><tr><td> '''Bash:''' {{{bash}}} }}
+
   <tr>
   {{#if: {{{kick|}}}|</td></tr><tr><td> '''Kick:''' {{{kick}}} }}
+
    <td><strong>Class:</strong> {{{class}}}</td>
   {{#if: {{{backstab|}}}|</td></tr><tr><td> '''Backstab:''' {{{backstab}}} }}
+
  </tr>
 +
 
 +
  <!-- Row for displaying the pet's level. -->
 +
  <tr>
 +
    <td><strong>Level:</strong> {{{level}}}</td>
 +
  </tr>
 +
 
 +
  <!-- Subheader row for stats section, using a different background color. -->
 +
  <tr>
 +
    <th bgcolor="#F3F8FD">Stats</th>
 +
  </tr>
 +
 
 +
  <!-- Row for displaying Armor Class (AC). If {{{AC}}} is missing,
 +
      the editor may choose to display a placeholder like "?" elsewhere. -->
 +
  <tr>
 +
    <td><strong>AC:</strong> {{{AC}}}</td>
 +
  </tr>
 +
 
 +
  <!-- Row for displaying the pet's hit points (HP).
 +
      The span with class 'ddb' is used for displaying the HP regeneration in parentheses. -->
 +
  <tr>
 +
    <td><strong>HP:</strong> {{{HP}}} <span class="ddb">({{{HP_regen}}})</span></td>
 +
   </tr>
 +
 
 +
  <!-- Row for displaying the damage the pet deals per hit. -->
 +
  <tr>
 +
    <td><strong>Damage per hit:</strong> {{{damage_per_hit}}}</td>
 +
  </tr>
 +
 
 +
  <!-- Placeholder row for Bash. This row will only be shown if the 'bash' field exists.
 +
      If 'bash' is empty, the row will be hidden (display: none). -->
 +
  <tr style="{{#if: {{{bash|}}}|display:table-row;|display:none;}}">
 +
    <td><strong>Bash:</strong> {{{bash}}}</td>
 +
  </tr>
 +
 
 +
  <!-- Placeholder row for Kick. Functions similarly to the Bash row. -->
 +
  <tr style="{{#if: {{{kick|}}}|display:table-row;|display:none;}}">
 +
    <td><strong>Kick:</strong> {{{kick}}}</td>
 +
   </tr>
 +
 
 +
  <!-- Placeholder row for Backstab. Only shown if 'backstab' has a value. -->
 +
  <tr style="{{#if: {{{backstab|}}}|display:table-row;|display:none;}}">
 +
    <td><strong>Backstab:</strong> {{{backstab}}}</td>
 +
  </tr>
 +
 
 +
  <!-- Row for displaying attacks per round, with attack speed shown in parentheses using the 'ddb' class. -->
 +
  <tr>
 +
    <td><strong>Attacks per round:</strong> {{{attacks_per_round}}} <span class="ddb">({{{attack_speed}}})</span></td>
 +
  </tr>
 +
 
 +
  <!-- Row for displaying any special abilities the pet might have. -->
 +
  <tr>
 +
    <td><strong>Special:</strong> {{{special}}}</td>
 +
  </tr>
  
  <tr><td> '''Attacks per round:''' {{{attacks_per_round}}} <span class='ddb'>({{{attack_speed}}})</span>
 
  </td></tr>
 
  <tr><td> '''Special:''' {{{special}}}
 
  </td></tr>
 
 
</table>
 
</table>

Latest revision as of 05:59, 18 September 2024

{{{name}}}
Race: {{{race}}}
Class: {{{class}}}
Level: {{{level}}}
Stats
AC: {{{AC}}}
HP: {{{HP}}} ({{{HP_regen}}})
Damage per hit: {{{damage_per_hit}}}
Bash: {{{bash}}}
Kick: {{{kick}}}
Backstab: {{{backstab}}}
Attacks per round: {{{attacks_per_round}}} ({{{attack_speed}}})
Special: {{{special}}}