Difference between revisions of "Template:RuneBox"

From Official Runecraft Wiki
Line 13: Line 13:
 
   </div>
 
   </div>
  
   <div class="rune-box-display" style="float:right;width:30%;padding:2px;border-style:solid;border-color:black;">
+
   <table class="rune-infobox">
    <p class="rune-box-title" style="text-align:center"><b>Rune Info</b></p>
+
    <tbody>
    {{#if:{{{disp_widget|}}} |<div class="rune-display" style="margin: 0 auto;">{{{disp_widget|}}}</div> |<div class="rune-display" style="height: fit-content;width: fit-content;margin-left: auto; margin-right:auto; background-color: aliceblue;border-color: black;border-style: solid;">[[File:Coming_Soon.png]]</div>}}
+
      <tr>
    <hr>
+
        <th class="rune-infobox-above" colspan="2">
    <div class="rune-info-line"><p><strong>Size</strong></p><p>{{{size|}}}</p></div>
+
          <div class="rune-infobox-title"><b>Rune Infobox</b></div>
    <div class="rune-info-line"><p><strong>Tool</strong></p><p>{{{tool|}}}</p></div>
+
        </th>
    {{#if: {{{uses|}}} |<div class="rune-info-line"><p><strong>Uses</strong></p><p>{{{uses|}}}</p></div>}}
+
      </tr>
    {{#if: {{{energy|}}} |<div class="rune-info-line"><p><strong>Energy Cost</strong></p><p>{{{energy|}}}</p></div>}}
+
     
    {{#if: {{{disabledrunestxt|}}} | <div class="rune-info-line"><p><strong>Disabled-runes.txt</strong></p><p><pre>{{{disabledrunestxt|}}}</pre></p></div>}}
+
      <tr>
    <div class="rune-info-line"><p><strong>Materials</strong></p><p>{{{materials|}}}</p></div>
+
        <th class="rune-imagebox-above" colspan="2">
 +
{{#if:{{{disp_widget|}}} |<div class="rune-infobox-display" style="margin: 0 auto;">{{{disp_widget|}}}</div> |<div class="rune-infobox-display" style="height: fit-content;width: fit-content;margin-left: auto; margin-right:auto; background-color: aliceblue;border-color: black;border-style: solid;">[[File:Coming_Soon.png]]</div>}}
 +
        </th>
 +
      </tr>
  
   </div>
+
      <tr>
 +
        <th class="rune-infobox-label" scope="row">
 +
          Size
 +
        </th>
 +
        <td class="rune-infobox-data">
 +
          {{{size|}}}
 +
        </td>
 +
      </tr>
 +
 
 +
      <tr>
 +
        <th class="rune-infobox-label" scope="row">
 +
          Tool
 +
        </th>
 +
        <td class="rune-infobox-data">
 +
          {{{tool|}}}
 +
        </td>
 +
      </tr>
 +
 
 +
      {{#if:{{{uses|}}}
 +
    |<tr>
 +
        <th class="rune-infobox-label" scope="row">
 +
          Uses
 +
        </th>
 +
        <td class="rune-infobox-data">
 +
          {{{uses|}}}
 +
        </td>
 +
      </tr>
 +
      }}
 +
 
 +
      {{#if:{{{energy|}}}
 +
    |<tr>
 +
        <th class="rune-infobox-label" scope="row">
 +
          Energy Cost
 +
        </th>
 +
        <td class="rune-infobox-data">
 +
          {{{energy|}}}
 +
        </td>
 +
      </tr>
 +
      }}
 +
 
 +
      {{#if:{{{uses|}}}
 +
    |<tr>
 +
        <th class="rune-infobox-label" scope="row">
 +
          Disabled-runes.txt
 +
        </th>
 +
        <td class="rune-infobox-data">
 +
          {{{disabledrunestxt|}}}
 +
        </td>
 +
      </tr>
 +
      }}
 +
 
 +
      <tr>
 +
        <th class="rune-infobox-label" scope="row">
 +
          Materials
 +
        </th>
 +
        <td class="rune-infobox-data">
 +
          {{{materials|}}}
 +
        </td>
 +
      </tr>
 +
 
 +
    </tbody>
 +
   </table>
  
 
   <div style="clear: both;"></div>
 
   <div style="clear: both;"></div>

Revision as of 04:15, 26 January 2022

[create | history | purge]Documentation
This template has no documentation. If you know how to use this template, please create it.