Template:Monster2EInfobox: Difference between revisions

From TTRPG Vault Wiki
(Created page with "<!-- Template:Monster2EInfobox --> <div style="width: 100%; display: flex;"> <div style="flex: 1; padding-right: 20px;"> {{{description|}}} </div> <div style="width: 300px;"> <div class="infobox" style="width: 100%; border: 1px solid #ccc; padding: 10px;"> <div class="infobox-header" style="font-size: 1.2em; font-weight: bold; text-align: center;"> {{{MonName|Monster Name}}} </div> <div class="infobox-content"> <div><strong...")
 
No edit summary
Line 1: Line 1:
<!-- Template:Monster2EInfobox -->
<!-- Template:MonsterInfobox -->
<div style="width: 100%; display: flex;">
<includeonly>
   <div style="flex: 1; padding-right: 20px;">
<div style="float: right; width: 400px; margin-left: 0px; border: 1px solid #aaa; padding: 5px; background: #f9f9f9; font-family: 'ZapfCalligr BT', Times, serif; border-radius: 10px;">
     {{{description|}}}
  <!-- Infobox with image and details -->
   <div style="text-align: center; margin-bottom: 10px;">
     <img src="{{{MonImage}}}" alt="{{{MonName}}}" style="max-width: 100%; border-radius: 10px;"/>
   </div>
   </div>
   <div style="width: 300px;">
   <div style="line-height: 1.5;">
     <div class="infobox" style="width: 100%; border: 1px solid #ccc; padding: 10px;">
     <strong>Name:</strong> {{{MonName}}} <br/>
      <div class="infobox-header" style="font-size: 1.2em; font-weight: bold; text-align: center;">
    <strong>Climate/Terrain:</strong> {{{MonClim}}} <br/>
        {{{MonName|Monster Name}}}
    <strong>Frequency:</strong> {{{MonFreq}}} <br/>
      </div>
    <strong>Organization:</strong> {{{MonOrg}}} <br/>
      <div class="infobox-content">
    <strong>Activity Cycle:</strong> {{{MonAct}}} <br/>
        <div><strong>Climate/Terrain:</strong> [[Has climate terrain::{{{MonClim|}}}]</div>
    <strong>Diet:</strong> {{{MonDiet}}} <br/>
        <div><strong>Frequency:</strong> [[Has frequency::{{{MonFreq|}}}]</div>
    <strong>Intelligence:</strong> {{{MonInt}}} <br/>
        <div><strong>Organization:</strong> [[Has organization::{{{MonOrg|}}}]</div>
    <strong>Treasure:</strong> {{{MonTreas}}} <br/>
        <div><strong>Activity Cycle:</strong> [[Has activity cycle::{{{MonAct|}}}]</div>
    <strong>Alignment:</strong> {{{MonAlign}}} <br/>
        <div><strong>Diet:</strong> [[Has diet::{{{MonDiet|}}}]</div>
    <strong>Number Appearing:</strong> {{{MonNumberApp}}} <br/>
        <div><strong>Intelligence:</strong> [[Has intelligence::{{{MonInt|}}}]</div>
    <strong>Armor Class:</strong> {{{MonArClass}}} <br/>
        <div><strong>Treasure:</strong> [[Has treasure::{{{MonTreas|}}}]</div>
    <strong>Movement:</strong> {{{MonMove}}} <br/>
        <div><strong>Alignment:</strong> [[Has alignment::{{{MonAlign|}}}]</div>
    <strong>Hit Dice:</strong> {{{MonHD}}} <br/>
        <div><strong>Number Appearing:</strong> [[Has number appearing::{{{MonNumberApp|}}}]</div>
    <strong>THAC0:</strong> {{{MonTHAC0}}} <br/>
        <div><strong>Armor Class:</strong> [[Has armor class::{{{MonArClass|}}}]</div>
    <strong># of Attacks:</strong> {{{MonNoAttacks}}} <br/>
        <div><strong>Movement:</strong> [[Has movement::{{{MonMove|}}}]</div>
    <strong>Damage/Attack:</strong> {{{MonDmgAttacks}}} <br/>
        <div><strong>Hit Dice:</strong> [[Has hit dice::{{{MonHD|}}}]</div>
    <strong>Special Attacks:</strong> {{{MonSpecAttacks}}} <br/>
        <div><strong>THAC0:</strong> [[Has thac0::{{{MonTHAC0|}}}]</div>
    <strong>Special Defenses:</strong> {{{MonSpecDef}}} <br/>
        <div><strong># of Attacks:</strong> [[Has attacks::{{{MonNoAttacks|}}}]</div>
    <strong>Magic Resistance:</strong> {{{MonMagRes}}} <br/>
        <div><strong>Damage/Attack:</strong> [[Has damage::{{{MonDmgAttacks|}}}]</div>
    <strong>Size:</strong> {{{MonSize}}} <br/>
        <div><strong>Special Attacks:</strong> [[Has special attacks::{{{MonSpecAttacks|}}}]</div>
    <strong>Morale:</strong> {{{MonMorale}}} <br/>
        <div><strong>Special Defenses:</strong> [[Has special defenses::{{{MonSpecDef|}}}]</div>
    <strong>XP Value:</strong> {{{MonXP}}} <br/>
        <div><strong>Magic Resistance:</strong> [[Has magic resistance::{{{MonMagRes|}}}]</div>
    <strong>Source:</strong> {{{MonSource}}} <br/>
        <div><strong>Size:</strong> [[Has size::{{{MonSize|}}}]</div>
    <strong>Source Material:</strong> {{{MonSourceMat}}} <br/>
        <div><strong>Morale:</strong> [[Has morale::{{{MonMorale|}}}]</div>
        <div><strong>XP Value:</strong> [[Has xp value::{{{MonXP|}}}]</div>
        <div><strong>Image:</strong> [[Has image::{{{MonImage|}}}]]
          <br><img src="{{{MonImage|}}}" alt="{{{MonName|Monster Image}}}" style="width: 100%;"/>
        </div>
        <div><strong>Source:</strong>
          <ul>
            {{#each MonSource}}
              <li>[[Has source::{{this}}]]</li>
            {{/each}}
          </ul>
        </div>
        <div><strong>Source Material:</strong>
          <ul>
            {{#each MonSourceMat}}
              <li>[[Has source material::{{this}}]]</li>
            {{/each}}
          </ul>
        </div>
        <div><strong>Sort:</strong> [[Has sort::{{{MonSort|}}}]</div>
      </div>
    </div>
   </div>
   </div>
  <!-- Hidden SMW properties -->
  <span style="display:none;">
    [[Has name::{{{MonName}}}]]
    [[Has climate terrain::{{{MonClim}}}]]
    [[Has frequency::{{{MonFreq}}}]]
    [[Has organization::{{{MonOrg}}}]]
    [[Has activity cycle::{{{MonAct}}}]]
    [[Has diet::{{{MonDiet}}}]]
    [[Has intelligence::{{{MonInt}}}]]
    [[Has treasure::{{{MonTreas}}}]]
    [[Has alignment::{{{MonAlign}}}]]
    [[Has number appearing::{{{MonNumberApp}}}]]
    [[Has armor class::{{{MonArClass}}}]]
    [[Has movement::{{{MonMove}}}]]
    [[Has hit dice::{{{MonHD}}}]]
    [[Has thac0::{{{MonTHAC0}}}]]
    [[Has attacks::{{{MonNoAttacks}}}]]
    [[Has damage::{{{MonDmgAttacks}}}]]
    [[Has special attacks::{{{MonSpecAttacks}}}]]
    [[Has special defenses::{{{MonSpecDef}}}]]
    [[Has magic resistance::{{{MonMagRes}}}]]
    [[Has size::{{{MonSize}}}]]
    [[Has morale::{{{MonMorale}}}]]
    [[Has xp value::{{{MonXP}}}]]
    [[Has image::{{{MonImage}}}]]
    [[Has source::{{{MonSource}}}]]
    [[Has source material::{{{MonSourceMat}}}]]
  </span>
</div>
</div>
</includeonly>

Revision as of 15:09, 23 May 2024