Difference between revisions of "Template:Infobox Location"

From Idlescape Wiki
Jump to navigation Jump to search
m (forgot to change the input lul)
m (Autofill image from pagename.)
Line 1: Line 1:
 
<div class="infobox">
 
<div class="infobox">
 
<div class="infobox-header">{{{title|{{PAGENAME}}}}}</div>
 
<div class="infobox-header">{{{title|{{PAGENAME}}}}}</div>
<div class="infobox-image"><img src="{{{image}}}" height="auto" width="200"></div>
+
<div class="infobox-image">{{#if: {{{image|}}}|<img src="{{{image}}}" height="auto" width="150">|{{img|{{PAGENAME}}|200}}}}</div>
 
<div class="infobox-stats">
 
<div class="infobox-stats">
 
<table style="padding: 1em; margin:auto;">
 
<table style="padding: 1em; margin:auto;">
Line 90: Line 90:
 
  <pre>{{Infobox Location
 
  <pre>{{Infobox Location
 
  |title = Autofills from page name, use only if custom name is needed
 
  |title = Autofills from page name, use only if custom name is needed
  |image = Img URL, e.g. https://idlescape.com/images/combat/locations/farm.jpg
+
  |image = Autofills from page name, Img URL, e.g. https://idlescape.com/images/combat/locations/farm.jpg
 
  |rel-date = Release date
 
  |rel-date = Release date
 
  |level-req = Required level for zone
 
  |level-req = Required level for zone

Revision as of 08:06, 27 January 2022

Infobox Location
Infobox Location

Usage

{{Infobox Location
 |title = Autofills from page name, use only if custom name is needed
 |image = Autofills from page name, Img URL, e.g. https://idlescape.com/images/combat/locations/farm.jpg
 |rel-date = Release date
 |level-req = Required level for zone
 |zone-type = Type of zone, e.g. mining
 |drops = Non-combat type of drops, e.g. [[Runite Ore]]
 |exp = Base experience at required level for zone
 |dangerous = Use only if monsters are encountered e.g. Deep Pit
  |max-players = Number of max players available to join dungeon/key
  |monsters = Needs dangerous to work, list of monsters encountered
  |encounter-rates = Needs dangerous to work, encounter rates in %
  |combat-drops = Needs dangerous to work, notable/rare drops for location
  |recommended-stats = Needs dangerous to work, lowest recommended combat levels
  |recommended-gear = Needs dangerous to work, lowest recommended combat gear
 }}

Copy pasta:

{{Infobox Location
 |image = 
 |rel-date = 
 |level-req = 
 |zone-type = 
 |drops = 
 |exp = 
 |dangerous = 
  |max-players =
  |monsters = 
  |encounter-rates = 
  |combat-drops = 
  |recommended-stats = 
  |recommended-gear = 
 }}