Difference between revisions of "Template:Infobox Location"

From Idlescape Wiki
Jump to navigation Jump to search
m (Added whitespace formatting to level req field, moved exp field down, added field for encounter rate)
(added header for zone rec, added rec combat style as possible parameter)
 
(17 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="180"></div>
+
| title          = {{{title|{{PAGENAME}}}}}
<table style="padding: 1em;">
+
|  image        = {{#if: {{{image|}}}|<img src="{{{image}}}" height="auto" width="200">|{{img|{{PAGENAME}}|200}}}}
{{#if: {{{rel-date|}}}|
+
| label1  = Release Date
<tr>
+
|  data1  = {{{rel-date|}}}
    <th colspan="30">Release Date</th>
+
| label2  = Level Required
    <td colspan="20">{{{rel-date}}}</td>
+
|  data2  = {{{level-req|}}}
</tr>
+
| label3  = Type of zone
|}}
+
|  data3  = {{{zone-type|}}}
{{#if: {{{level-req|}}}|
+
| label4  = Drops
<tr>
+
|  data4  = {{{drops|}}}
    <th colspan="30" style="white-space:nowrap;">Level Required</th>
+
| label5  = Base Exp/Hour
    <td colspan="20">{{{level-req}}}</td>
+
|  data5  = {{{exp|}}}
</tr>
+
| label6  = Dangerous
|}}
+
|  data6  = {{{dangerous|}}}
{{#if: {{{zone-type|}}}|
+
| header10 = Encounters
<tr>
+
|  label11 = Max Players
    <th colspan="30">Type of zone</th>
+
|  data11 = {{{max-players|}}}
    <td colspan="20">{{{zone-type}}}</td>
+
| label12 = Monsters
</tr>
+
|  data12 = {{{monsters|}}}
|}}
+
|  label13 = Encounter Rate
{{#if: {{{drops|}}}|
+
|   data13 = {{{encounter-rates|}}}
<tr>
+
| label14 = Notable Drops
    <th colspan="30">Drops</th>
+
|  data14 = {{{combat-drops|}}}
    <td colspan="20">{{{drops}}}</td>
+
| header15 = Zone Recommendations
</tr>
+
| label16 = Rec. Combat Levels
|}}
+
|  data16 = {{{recommended-stats|}}}
{{#if: {{{exp|}}}|
+
| label17 = Rec. Gear
<tr>
+
|  data17 = {{{recommended-gear|}}}
    <th colspan="30" style="white-space:nowrap;">Base Exp/Hour</th>
+
label18 = Rec. Comat Style
    <td colspan="20">{{{exp}}}</td>
+
data18 = {{{recommended-style|}}}
</tr>
+
}}
|}}
 
{{#if: {{{dangerous|}}}|
 
<tr>
 
    <th colspan="30">Dangerous</th>
 
    <td colspan="20">{{{dangerous}}}</td>
 
</tr>
 
|}}
 
</table>
 
{{#if: {{{dangerous|}}}|
 
<div class="infobox-title">Encounters</div>
 
<div class="infobox-stats">
 
<table style="padding: 1em;">
 
{{#if: {{{monsters|}}}|
 
<tr>
 
    <th colspan="30">Monsters</th>
 
    <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>
 
|}}
 
{{#if: {{{recommended-stats|}}}|
 
<tr>
 
    <th colspan="30">Rec. Combat Levels</th>
 
    <td style="text-align: left;" colspan="20">{{{recommended-stats}}}</td>
 
</tr>
 
|}}
 
{{#if: {{{recommended-gear|}}}|
 
<tr>
 
    <th colspan="30">Rec. Gear</th>
 
    <td style="text-align: left;" colspan="20">{{{recommended-gear}}}</td>
 
</tr>
 
|}}
 
</table>
 
</div>
 
|}}
 
</div>
 
<noinclude>
 
====Usage====
 
<nowiki>{{Infobox Location</nowiki>
 
|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. <nowiki>[[Runite Ore]]</nowiki>
 
|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
 
<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 = 
 }}