Difference between revisions of "Template:Infobox Location"

From Idlescape Wiki
Jump to navigation Jump to search
m (Text align left added to dangerous sub-table -> td)
m (Added whitespace formatting to level req field, moved exp field down, added field for encounter rate)
Line 3: Line 3:
 
<div class="infobox-image"><img src="{{{image}}}" height="auto" width="180"></div>
 
<div class="infobox-image"><img src="{{{image}}}" height="auto" width="180"></div>
 
<table style="padding: 1em;">
 
<table style="padding: 1em;">
{{#if: {{{exp|}}}|
 
<tr>
 
    <th colspan="30" style="white-space:nowrap;">Base Exp/Hour</th>
 
    <td colspan="20">{{{exp}}}</td>
 
</tr>
 
|}}
 
 
{{#if: {{{rel-date|}}}|
 
{{#if: {{{rel-date|}}}|
 
<tr>
 
<tr>
Line 17: Line 11:
 
{{#if: {{{level-req|}}}|
 
{{#if: {{{level-req|}}}|
 
<tr>
 
<tr>
     <th colspan="30">Level Required</th>
+
     <th colspan="30" style="white-space:nowrap;">Level Required</th>
 
     <td colspan="20">{{{level-req}}}</td>
 
     <td colspan="20">{{{level-req}}}</td>
 
</tr>
 
</tr>
Line 31: Line 25:
 
     <th colspan="30">Drops</th>
 
     <th colspan="30">Drops</th>
 
     <td colspan="20">{{{drops}}}</td>
 
     <td colspan="20">{{{drops}}}</td>
 +
</tr>
 +
|}}
 +
{{#if: {{{exp|}}}|
 +
<tr>
 +
    <th colspan="30" style="white-space:nowrap;">Base Exp/Hour</th>
 +
    <td colspan="20">{{{exp}}}</td>
 
</tr>
 
</tr>
 
|}}
 
|}}
Line 41: Line 41:
 
</table>
 
</table>
 
{{#if: {{{dangerous|}}}|
 
{{#if: {{{dangerous|}}}|
<div class="infobox-title">Encounter/s</div>
+
<div class="infobox-title">Encounters</div>
 
<div class="infobox-stats">
 
<div class="infobox-stats">
 
<table style="padding: 1em;">
 
<table style="padding: 1em;">
Line 48: Line 48:
 
     <th colspan="30">Monsters</th>
 
     <th colspan="30">Monsters</th>
 
     <td style="text-align: left;" colspan="20">{{{monsters}}}</td>
 
     <td style="text-align: left;" colspan="20">{{{monsters}}}</td>
 +
</tr>
 +
|}}
 +
{{#if: {{{encounter-rates|}}}|
 +
<tr>
 +
    <th colspan="30">Encounter %</th>
 +
    <td style="text-align: left;" colspan="20">{{{encounter-rates}}}</td>
 
</tr>
 
</tr>
 
|}}
 
|}}
Line 71: Line 77:
 
  |title = Title of page
 
  |title = Title of page
 
  |image = Image for zone
 
  |image = Image for zone
|exp = Base experience at required level for zone
 
 
  |rel-date = Release date
 
  |rel-date = Release date
 
  |level-req = Required level for zone
 
  |level-req = Required level for zone
 
  |zone-type = Type of zone, E.G. mining
 
  |zone-type = Type of zone, E.G. mining
 
  |drops = Type of drops, E.G. <nowiki>[[Runite Ore]]</nowiki>
 
  |drops = Type of drops, E.G. <nowiki>[[Runite Ore]]</nowiki>
 +
|exp = Base experience at required level for zone
 
  |dangerous = Only if monsters are encountered
 
  |dangerous = Only if monsters are encountered
 
   |monsters = Needs dangerous to work, list of monsters encountered
 
   |monsters = Needs dangerous to work, list of monsters encountered
 +
  |encounter-rates = Needs dangerous to work, encounter rates in %
 
   |recommended-stats = Needs dangerous to work, lowest recommended combat levels
 
   |recommended-stats = Needs dangerous to work, lowest recommended combat levels
 
   |recommended-gear = Needs dangerous to work, lowest recommended combat gear
 
   |recommended-gear = Needs dangerous to work, lowest recommended combat gear
 
  <nowiki>}}</nowiki>
 
  <nowiki>}}</nowiki>
 
</noinclude>
 
</noinclude>

Revision as of 16:03, 27 December 2020

Infobox Location

Usage

{{Infobox Location
|title = Title of page
|image = Image for zone
|rel-date = Release date
|level-req = Required level for zone
|zone-type = Type of zone, E.G. mining
|drops = Type of drops, E.G. [[Runite Ore]]
|exp = Base experience at required level for zone
|dangerous = Only if monsters are encountered
 |monsters = Needs dangerous to work, list of monsters encountered
 |encounter-rates = Needs dangerous to work, encounter rates in %
 |recommended-stats = Needs dangerous to work, lowest recommended combat levels
 |recommended-gear = Needs dangerous to work, lowest recommended combat gear
}}