Difference between revisions of "Template:Infobox Item"

From Idlescape Wiki
Jump to navigation Jump to search
m (removed a 🐞)
m (added seed- in front of lvl req for seeds to not show it on all infoboxes)
 
(36 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<div class="infobox">
+
<noinclude>{{Template:Infobox Item/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; margin: auto;">
+
|  image        = {{#if: {{{image|}}}|<img src="{{{image}}}" height="auto" width="150">|{{img|{{PAGENAME}}|150}}}}
{{#if: {{{gold|}}}|
+
|  label1  = {{img|gold coin}}
<tr>
+
|  data1  = {{{gold|}}}
    <th colspan="15"><img src="https://idlescape.com/images/gold_coin.png" alt="Gold Coin" height="20" width="20"></th>
+
|  label2  = {{img|marketplace}}
    <td colspan="15">{{{gold}}}</td>
+
|  data2  = {{market|{{{market|{{PAGENAME}}}}}|1|1}}
</tr>
+
|  label3  = Level Required
|}}
+
|  data3  = {{{level-req|}}}
{{#if: {{{level-req|}}}|
+
| label4  = Source
<tr>
+
|  data4  = {{{source|}}}
    <th colspan="15">Level Required</th>
+
|  label5  = {{img|heat}}
    <td colspan="15">{{{level-req}}}</td>
+
|  data5  = {{{heat|}}}
</tr>
+
|  label6  = Exp
 +
|  data6  = {{{exp|}}}
 +
|  label7  = Aug Bonus
 +
|  data7  = {{{aug-bonus|}}}
 +
|  label8  = Enchantment Slots
 +
|  data8  = {{{aug-slots|}}}
 +
|  label9  = Aug Cost
 +
|  data9  = {{{aug-cost|}}}
 +
|  label10 = HP
 +
|  data10 = {{{hp|}}}
 +
|  label11 = Base HP
 +
|  data11 = {{{base-hp|}}}
 +
| header20 = Cooking
 +
|  label21 = Size
 +
|  data21 = {{{food-size|}}}
 +
|  label22 = Difficulty
 +
|  data22 = {{{food-diff|}}}
 +
|  label23 = Category
 +
|  data23 = {{{food-cat|}}}
 +
|  label24 = Buff
 +
|  data24 = {{{food-buff|}}}
 +
|  label31 = Recipe ID
 +
|  data31 = {{{cook-id|}}}
 +
|  label32 = Required Category
 +
|  data32 = {{{cook-cat|}}}
 +
|  label33 = Notes
 +
|  data33 = {{{cook-note|}}}
 +
| header50 = Offensive Stats
 +
|  label51 = Accuracy
 +
|  data51 = {{{accuracy|}}}
 +
|  label52 = Strength
 +
|  data52 = {{{strength|}}}
 +
|  label53 = Attack Speed
 +
|  data53 = {{{speed|}}}
 +
|  label54 = Attack Type
 +
|  data54 = {{{attacktype|}}}
 +
|  label55 = Slot
 +
|  sdata55 = {{{slot|}}}
 +
| header60 = Defensive Stats
 +
| slabel61 = Stab
 +
|  sdata61 = {{{stab|}}}
 +
| slabel62 = Slash
 +
|  sdata62 = {{{slash|}}}
 +
| slabel63 = Crush
 +
|  sdata63 = {{{crush|}}}
 +
| slabel64 = Magic
 +
|  sdata64 = {{{magic|}}}
 +
| slabel65 = Range
 +
|  sdata65 = {{{range|}}}
 +
| header70 = Non Combat Stat
 +
|  label71= {{{non-combat-name|}}}
 +
|  data71= {{{non-combat-stat|}}}
 +
| header80 = Seeds
 +
|  label81= Level Required
 +
|  data81= {{{seed-level-req|}}}
 +
|  label82= Experience
 +
|  data82= {{{seed-exp|}}}
 +
|  label83= Plot Size
 +
|  data83= {{{plot-size|}}}
 +
|  label84= Harvest Time
 +
|  data84= {{{harvest-time|}}}
 +
|  label85= Yield
 +
|  data85= {{{yield|}}}
 +
| header100= Tooltip
 +
|  data101= {{Infobox | subbox = yes
 +
| bodystyle= padding: 0.5em; margin:auto; font-style:italic; font-size:110%; text-align: center
 +
|    data1 = {{{tooltip|}}}
 
}}
 
}}
{{#if: {{{source|}}}|
+
}}</includeonly>
<tr>
 
    <th colspan="15">Source</th>
 
    <td colspan="15">{{{source}}}</td>
 
</tr>
 
|}}
 
{{#if: {{{heat|}}}|
 
<tr>
 
    <th colspan="15"><img src="https://idlescape.com/images/heat_icon.png" alt="Gold Coin" height="20" width="20"></th>
 
    <td colspan="15">{{{heat}}}</td>
 
</tr>
 
|}}
 
{{#if: {{{exp|}}}|
 
<tr>
 
    <th colspan="15">Exp</th>
 
    <td colspan="15">{{{exp}}}</td>
 
</tr>
 
|}}
 
{{#if: {{{aug-bonus|}}}|
 
<tr>
 
    <th colspan="15">Aug Bonus</th>
 
    <td colspan="15">{{{aug-bonus}}}</td>
 
</tr>
 
|}}
 
{{#if: {{{aug-slots|}}}|
 
<tr>
 
    <th colspan="15">Aug Slots</th>
 
    <td colspan="15">{{{aug-slots}}}</td>
 
</tr>
 
|}}
 
{{#if: {{{aug-cost|}}}|
 
<tr>
 
    <th colspan="15">Aug Cost</th>
 
    <td style="text-align: left; vertical-align: middle;" colspan="15">{{{aug-cost}}}</td>
 
</tr>
 
|}}
 
{{#if: {{{hp|}}}|
 
<tr>
 
    <th colspan="15">HP</th>
 
    <td colspan="15">{{{hp}}}</td>
 
</tr>
 
|}}
 
</table>
 
{{#if: {{{stab|{{{slash|{{{crush|{{{accuracy|{{{strength|{{{speed|{{{attacktype|}}}}}}}}}}}}}}}}}}}}}|
 
<div class="infobox-title">Combat Stats</div>
 
<div class="infobox-stats">
 
<table style="padding: 1em;">
 
{{#if: {{{stab|}}} |
 
<tr>
 
    <th width="90">Stab Defense</th>
 
    <td>{{{stab}}}</td>
 
</tr>
 
|}}
 
{{#if: {{{slash|}}} |
 
<tr>
 
    <th width="90">Slash Defense</th>
 
    <td>{{{slash}}}</td>
 
</tr>
 
|}}
 
{{#if: {{{crush|}}} |
 
<tr>
 
    <th width="90">Crush Defense</th>
 
    <td>{{{crush}}}</td>
 
</tr>
 
|}}
 
{{#if: {{{accuracy|}}} |
 
<tr>
 
    <th width="90">Accuracy</th>
 
    <td>{{{accuracy}}}</td>
 
</tr>
 
|}}
 
{{#if: {{{strength|}}} |
 
<tr>
 
    <th width="90">Strength</th>
 
    <td>{{{strength}}}</td>
 
</tr>
 
|}}
 
{{#if: {{{speed|}}} |
 
<tr>
 
    <th width="90">Attack Speed</th>
 
    <td>{{{speed}}}</td>
 
</tr>
 
|}}
 
{{#if: {{{attacktype|}}} |
 
<tr>
 
    <th width="90">Attack Type</th>
 
    <td>{{{attacktype}}}</td>
 
</tr>
 
|}}
 
{{#if: {{{slot|}}} |
 
<tr>
 
    <th width="90">Slot</th>
 
    <td>{{{slot}}}</td>
 
</tr>
 
|}}
 
</table>
 
</div>
 
|}}
 
{{#if:{{{non-combat-name|}}}|
 
<div class="infobox-title">Non Combat Stat</div>
 
<div class="infobox-stats">
 
<table style="padding: 1em; margin: auto;">
 
<tr>
 
<th colspan="15">{{{non-combat-name}}}</th>
 
<td colspan="15">{{{non-combat-stat}}}</td>
 
</tr>
 
</table>
 
</div>
 
|}}
 
{{#if: {{{plot-size|{{{seed-exp|}}}}}}|
 
<div class="infobox-title">Seeds</div>
 
<div class="infobox-stats">
 
<table style="padding: 1em; margin: auto;">
 
{{#if: {{{level-req|}}}|
 
<tr>
 
    <th colspan="10">Level Required</th>
 
    <td colspan="20" style="text-align: left;>{{{level-req}}}</td>
 
</tr>
 
}}
 
<tr>
 
    <th colspan="10">Experience</th>
 
    <td colspan="20" style="text-align: left;>{{{seed-exp}}}</td>
 
</tr>
 
<tr>
 
    <th colspan="10">Plot Size</th>
 
    <td colspan="20" style="text-align: left;>{{{plot-size}}}</td>
 
</tr>
 
<tr>
 
    <th colspan="10">Harvest Time</th>
 
    <td colspan="20" style="text-align: left;>{{{harvest-time}}}</td>
 
</tr>
 
<tr>
 
    <th colspan="10">Yield</th>
 
    <td colspan="20" style="text-align: left;>{{{yield}}}</td>
 
</tr>
 
</table>
 
</div>
 
|}}
 
</div>
 
<noinclude>
 
 
 
====Usage====
 
<pre>{{Infobox Item
 
|title = Autofilled from pagename, only use if custom name is needed
 
|image = Img URL e.g. https://idlescape.com/images/fishing/raw_shrimp.png
 
|gold = Vendor price
 
|source = Source of acquiring, e.g. seeds come from foraging = [[Foraging]]
 
|level-req = Lvl requirement for item
 
|heat = How much heat item gives when burned, e.g. coal gives 10
 
|exp = How much exp item gives
 
|aug-bonus = Use Infobox Equipment for equipment, augment bonus
 
|aug-slots = Use Infobox Equipment for equipment, augment slots
 
|aug-cost = Augment cost, separate with <br>
 
|hp = How much HP item provides
 
|stab = Use Infobox Equipment for equipment, stab bonus
 
|slash = Use Infobox Equipment for equipment, slash bonus
 
|crush = Use Infobox Equipment for equipment, crush bonus
 
|accuracy = Use Infobox Equipment for equipment, accuracy bonus
 
|strength = Use Infobox Equipment for equipment, strength bonus
 
|speed = Use Infobox Equipment for equipment, attack speed
 
|attacktype = Use Infobox Equipment for equipment, attack type
 
|slot = Use Infobox Equipment for equipment, what slot the item have
 
|non-combat-name =
 
|non-combat-stat =
 
|plot-size = used for seeds only, plot size
 
|seed-exp = used for seeds only, xp gain after farming
 
|harvest-time = used for seeds only, harvest time
 
|yield = used for seeds only, aprx. yield from seed
 
}}</pre>
 
 
 
Copy pasta:
 
<pre>{{Infobox Item
 
|title =
 
|image =
 
|gold =
 
|source =
 
|level-req =
 
|heat =
 
|exp =
 
|aug-bonus =
 
|aug-slots =
 
|aug-cost =
 
|hp =
 
|stab =
 
|slash =
 
|crush =
 
|accuracy =
 
|strength =
 
|speed =
 
|attacktype =
 
|slot =
 
|non-combat-name =
 
|non-combat-stat =
 
|plot-size =
 
|seed-exp =
 
|harvest-time =
 
|yield =
 
}}</pre>
 
</noinclude>
 

Latest revision as of 12:11, 19 June 2023

Usage

{{Infobox Item
|title = Autofilled from pagename, only use if custom name is needed
|image = Autofilled from pagename, img URL e.g. https://idlescape.com/images/fishing/raw_shrimp.png
|gold = Vendor price
|market = Autofilled from pagename, enter market name if different from title
|source = Source of acquiring, e.g. seeds come from foraging = [[Foraging]]
|level-req = Lvl requirement for item
|heat = How much heat item gives when burned, e.g. coal gives 10
|exp = How much exp item gives
|aug-bonus = Use Infobox Equipment for equipment, augment bonus
|aug-slots = Use Infobox Equipment for equipment, augment slots
|aug-cost = Augment cost, separate with <br>
|hp = How much HP item provides
|base-hp = base hp for food
|food-size = size of cooking ingredient
|food-cat = category of cooking ingredient
|food-buff = food buff gained from eating, write None if no buff is gained
|cook-id = Recipe ID
|cook-cat = Required food category
|cook-note = Any other notes
|stab = Use Infobox Equipment for equipment, stab bonus
|slash = Use Infobox Equipment for equipment, slash bonus
|crush = Use Infobox Equipment for equipment, crush bonus
|accuracy = Use Infobox Equipment for equipment, accuracy bonus
|strength = Use Infobox Equipment for equipment, strength bonus
|speed = Use Infobox Equipment for equipment, attack speed
|attacktype = Use Infobox Equipment for equipment, attack type
|slot = Use Infobox Equipment for equipment, what slot the item have
|non-combat-name = 
|non-combat-stat =
|plot-size = used for seeds only, plot size
|seed-exp = used for seeds only, xp gain after farming
|harvest-time = used for seeds only, harvest time
|yield = used for seeds only, aprx. yield from seed
|tooltip = In-game tooltip text if needed
}}

Copy pasta:

{{Infobox Item
 |title = 
 |image =
 |gold =
 |market =
 |source =
 |level-req =
 |heat =
 |exp =
 |aug-bonus = 
 |aug-slots = 
 |aug-cost = 
 |hp =
 |base-hp = 
 |food-size =
 |food-cat =
 |food-buff = 
 |cook-id =
 |cook-cat =
 |cook-note =
 |non-combat-name =
 |non-combat-stat =
 |plot-size =
 |seed-exp =
 |harvest-time =
 |yield =
 |tooltip = 
 }}