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
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!-- Template:Monster2EInfobox -->
<includeonly>
<div style="width: 100%; display: flex;">
<div style="float: right; width: 400px; margin-left: 0px; border: 1px solid #aaa; padding: 10px; background: #f9f9f9; font-family: Arial, sans-serif; border-radius: 10px;">
   <div style="flex: 1; padding-right: 20px;">
  <!-- Infobox with image and details -->
     {{{description|}}}
   <div style="text-align: center; margin-bottom: 10px;">
     {{{MonImage}}}
   </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}}}
      <div class="infobox-header" style="font-size: 1.2em; font-weight: bold; text-align: center;">
    <strong>Climate/Terrain:</strong> {{{MonClim}}}
        {{{MonName|Monster Name}}}
    <strong>Frequency:</strong> {{{MonFreq}}}
      </div>
    <strong>Organization:</strong> {{{MonOrg}}}
      <div class="infobox-content">
    <strong>Activity Cycle:</strong> {{{MonAct}}}
        <div><strong>Climate/Terrain:</strong> [[Has climate terrain::{{{MonClim|}}}]</div>
    <strong>Diet:</strong> {{{MonDiet}}}
        <div><strong>Frequency:</strong> [[Has frequency::{{{MonFreq|}}}]</div>
    <strong>Intelligence:</strong> {{{MonInt}}}
        <div><strong>Organization:</strong> [[Has organization::{{{MonOrg|}}}]</div>
    <strong>Treasure:</strong> {{{MonTreas}}}
        <div><strong>Activity Cycle:</strong> [[Has activity cycle::{{{MonAct|}}}]</div>
    <strong>Alignment:</strong> {{{MonAlign}}}
        <div><strong>Diet:</strong> [[Has diet::{{{MonDiet|}}}]</div>
</div>  
        <div><strong>Intelligence:</strong> [[Has intelligence::{{{MonInt|}}}]</div>
<div style="line-height: 1.5;">  
        <div><strong>Treasure:</strong> [[Has treasure::{{{MonTreas|}}}]</div>
 
        <div><strong>Alignment:</strong> [[Has alignment::{{{MonAlign|}}}]</div>
    <strong>Number Appearing:</strong> {{{MonNumberApp}}}
        <div><strong>Number Appearing:</strong> [[Has number appearing::{{{MonNumberApp|}}}]</div>
    <strong>Armor Class:</strong> {{{MonArClass}}}
        <div><strong>Armor Class:</strong> [[Has armor class::{{{MonArClass|}}}]</div>
    <strong>Movement:</strong> {{{MonMove}}}
        <div><strong>Movement:</strong> [[Has movement::{{{MonMove|}}}]</div>
    <strong>Hit Dice:</strong> {{{MonHD}}}
        <div><strong>Hit Dice:</strong> [[Has hit dice::{{{MonHD|}}}]</div>
    <strong>THAC0:</strong> {{{MonTHAC0}}}
        <div><strong>THAC0:</strong> [[Has thac0::{{{MonTHAC0|}}}]</div>
    <strong># of Attacks:</strong> {{{MonNoAttacks}}}
        <div><strong># of Attacks:</strong> [[Has attacks::{{{MonNoAttacks|}}}]</div>
    <strong>Damage/Attack:</strong> {{{MonDmgAttacks}}}
        <div><strong>Damage/Attack:</strong> [[Has damage::{{{MonDmgAttacks|}}}]</div>
    <strong>Special Attacks:</strong> {{{MonSpecAttacks}}}
        <div><strong>Special Attacks:</strong> [[Has special attacks::{{{MonSpecAttacks|}}}]</div>
    <strong>Special Defenses:</strong> {{{MonSpecDef}}}
        <div><strong>Special Defenses:</strong> [[Has special defenses::{{{MonSpecDef|}}}]</div>
    <strong>Magic Resistance:</strong> {{{MonMagRes}}}
        <div><strong>Magic Resistance:</strong> [[Has magic resistance::{{{MonMagRes|}}}]</div>
    <strong>Size:</strong> {{{MonSize}}}
        <div><strong>Size:</strong> [[Has size::{{{MonSize|}}}]</div>
    <strong>Morale:</strong> {{{MonMorale}}}
        <div><strong>Morale:</strong> [[Has morale::{{{MonMorale|}}}]</div>
    <strong>XP Value:</strong> {{{MonXP}}}
        <div><strong>XP Value:</strong> [[Has xp value::{{{MonXP|}}}]</div>
    </div>  
        <div><strong>Image:</strong> [[Has image::{{{MonImage|}}}]]
<div style="line-height: 1.5;">  
          <br><img src="{{{MonImage|}}}" alt="{{{MonName|Monster Image}}}" style="width: 100%;"/>
   
        </div>
    <strong>Source Material:</strong> {{{MonSourceMat}}}
        <div><strong>Source:</strong>
  </div>
          <ul>
  <!-- Hidden SMW properties -->
            {{#each MonSource}}
  <div style="display:none;">
              <li>[[Has source::{{this}}]]</li>
    [[Has name::{{{MonName}}}]]
            {{/each}}
    [[Has climateterrain::{{{MonClim}}}]]
          </ul>
    [[Has frequency::{{{MonFreq}}}]]
        </div>
    [[Has organization::{{{MonOrg}}}]]
        <div><strong>Source Material:</strong>
    [[Has activity cycle::{{{MonAct}}}]]
          <ul>
    [[Has diet::{{{MonDiet}}}]]
            {{#each MonSourceMat}}
    [[Has intelligence::{{{MonInt}}}]]
              <li>[[Has source material::{{this}}]]</li>
    [[Has treasure::{{{MonTreas}}}]]
            {{/each}}
    [[Has alignment::{{{MonAlign}}}]]
          </ul>
    [[Has numberappearing::{{{MonNumberApp}}}]]
        </div>
    [[Has armorclass::{{{MonArClass}}}]]
        <div><strong>Sort:</strong> [[Has sort::{{{MonSort|}}}]</div>
    [[Has movement::{{{MonMove}}}]]
      </div>
    [[Has hitdice::{{{MonHD}}}]]
     </div>
    [[Has thac0::{{{MonTHAC0}}}]]
    [[Has attacks::{{{MonNoAttacks}}}]]
    [[Has damage::{{{MonDmgAttacks}}}]]
    [[Has specialattacks::{{{MonSpecAttacks}}}]]
    [[Has specialdefenses::{{{MonSpecDef}}}]]
    [[Has magicresistance::{{{MonMagRes}}}]]
    [[Has size::{{{MonSize}}}]]
    [[Has morale::{{{MonMorale}}}]]
    [[Has xpvalue::{{{MonXP}}}]]
    [[Has image::{{{MonImage}}}]]
    [[Has source::{{{MonSource}}}]]
    [[Has systemtype::{{{SystemType}}}]]
    [[Has sourcematerial::{{{MonSourceMat}}}]]
     [[Has monsort::{{{MonSort}}}]]
   </div>
   </div>
</div>
</div>
</includeonly>

Latest revision as of 02:23, 10 July 2024