Difference between revisions of "Template:RuneBox"

From Official Runecraft Wiki
Line 13: Line 13:
 
   </div>
 
   </div>
  
    <table class="rune-infobox">
 
      <tbody>
 
        <tr>
 
          <th class="rune-infobox-above" colspan="2">
 
            <div class="rune-infobox-title"><b>Rune Infobox</b></div>
 
          </th>
 
        </tr>
 
     
 
        <tr>
 
          <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>
 
  
        <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|}}}  
+
  <div class="rune-box-display" style="float:right;width:30%;padding:2px;border-style:solid;border-color:black;">
      |<tr>
+
    <p class="rune-box-title" style="text-align:center"><b>Rune Info</b></p>
          <th class="rune-infobox-label" scope="row">
+
    {{#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>}}
            Energy Cost
+
    <hr>
          </th>
+
    <div class="rune-info-line"><p><strong>Size</strong></p><p>{{{size|}}}</p></div>
          <td class="rune-infobox-data">
+
    <div class="rune-info-line"><p><strong>Tool</strong></p><p>{{{tool|}}}</p></div>
            {{{energy|}}}
+
    {{#if: {{{uses|}}} |<div class="rune-info-line"><p><strong>Uses</strong></p><p>{{{uses|}}}</p></div>}}
          </td>
+
    {{#if: {{{energy|}}} |<div class="rune-info-line"><p><strong>Energy Cost</strong></p><p>{{{energy|}}}</p></div>}}
        </tr>
+
    {{#if: {{{disabledrunestxt|}}} | <div class="rune-info-line"><p><strong>Disabled-runes.txt</strong></p><p><pre>{{{disabledrunestxt|}}}</pre></p></div>}}
        }}
+
    <div class="rune-info-line"><p><strong>Materials</strong></p><p>{{{materials|}}}</p></div>
  
        {{#if:{{{uses|}}}
+
  </div>
      |<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:57, 26 January 2022

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