Difference between revisions of "Template:Infobox Location"

From Idlescape Wiki
Jump to navigation Jump to search
m (Updated formatting)
(added header for zone rec, added rec combat style as possible parameter)
 
(25 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div class="infobox">
+
<noinclude>{{Template:Infobox Location/doc}}</noinclude><includeonly>{{Infobox
<div class="infobox-header">{{{title|{{PAGENAME}}}}}</div>
+
| autoheaders    = y
<div class="infobox-image"><img src="{{{image}}}" height="auto" width="150"></div>
+
| title          = {{{title|{{PAGENAME}}}}}
<table style="padding: 1em;">
+
|  image        = {{#if: {{{image|}}}|<img src="{{{image}}}" height="auto" width="200">|{{img|{{PAGENAME}}|200}}}}
{{#if: {{{exp|}}}|
+
| label1  = Release Date
<tr>
+
|  data1  = {{{rel-date|}}}
    <th colspan="10">Exp per hour at req. level</th>
+
|  label2  = Level Required
    <td colspan="20">{{{exp}}}</td>
+
|  data2  = {{{level-req|}}}
</tr>
+
|  label3  = Type of zone
|}}
+
|  data3  = {{{zone-type|}}}
{{#if: {{{rel-date|}}}|
+
| label4  = Drops
<tr>
+
|  data4  = {{{drops|}}}
    <th colspan="10">Release Date</th>
+
|  label5  = Base Exp/Hour
    <td colspan="20">{{{rel-date}}}</td>
+
|   data5  = {{{exp|}}}
</tr>
+
|  label6  = Dangerous
|}}
+
|  data6  = {{{dangerous|}}}
{{#if: {{{zone-type|}}}|
+
| header10 = Encounters
<tr>
+
|  label11 = Max Players
    <th colspan="10">Zonetype</th>
+
|  data11 = {{{max-players|}}}
    <td colspan="20">{{{zone-type}}}</td>
+
|  label12 = Monsters
</tr>
+
|  data12 = {{{monsters|}}}
|}}
+
|  label13 = Encounter Rate
</table>
+
|  data13 = {{{encounter-rates|}}}
</div>
+
|  label14 = Notable Drops
<noinclude>
+
|  data14 = {{{combat-drops|}}}
====Usage====
+
| header15 = Zone Recommendations
<nowiki>{{Infobox Item</nowiki>
+
| label16 = Rec. Combat Levels
|title = Title of page
+
|   data16 = {{{recommended-stats|}}}
  |image = Image for zone
+
| label17 = Rec. Gear
|exp = Base experience at required level for zone
+
|   data17 = {{{recommended-gear|}}}
  |rel-date= Release date
+
| label18 = Rec. Comat Style
|level-req = Required level for zone
+
|  data18 = {{{recommended-style|}}}
  |zone-type = Type of zone, E.G. mining
+
}}
<nowiki>}}</nowiki>
 
</noinclude>
 

Latest revision as of 10:54, 2 November 2023

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
  |recommended-style = recommended combat style
 }}

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 = 
  |recommended-style = 
 }}