Difference between revisions of "Template:Infobox Item"

From Idlescape Wiki
Jump to navigation Jump to search
(Created page with "<div class="infobox"> <div class="infobox-header">{{{title|{{PAGENAME}}}}}</div> <div class="infobox-image"><img src="{{{image}}}" height="auto" width="250"></div> <table styl...")
 
m (added seed- in front of lvl req for seeds to not show it on all infoboxes)
 
(69 intermediate revisions by 6 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="250"></div>
+
| title          = {{{title|{{PAGENAME}}}}}
<table style="padding: 1em;">
+
|  image        = {{#if: {{{image|}}}|<img src="{{{image}}}" height="auto" width="150">|{{img|{{PAGENAME}}|150}}}}
<tr>
+
|  label1  = {{img|gold coin}}
    <th colspan="10"><img src="https://idlescape.com/images/gold_coin.png" alt="Gold Coin" height="20" width="20"></th>
+
|  data1  = {{{gold|}}}
    <td colspan="20">{{{gold}}}</td>
+
|  label2  = {{img|marketplace}}
</tr>
+
|  data2  = {{market|{{{market|{{PAGENAME}}}}}|1|1}}
{{#if: {{{heat}}}|
+
|  label3  = Level Required
<tr>
+
|  data3  = {{{level-req|}}}
    <th colspan="10"><img src="https://idlescape.com/images/heat_icon.png" alt="Gold Coin" height="20" width="20"></th>
+
|  label4  = Source
    <td colspan="20">{{{heat}}}</td>
+
|   data4  = {{{source|}}}
</tr>
+
|  label5  = {{img|heat}}
|}}
+
|  data5  = {{{heat|}}}
</table>
+
| label6  = Exp
 
+
|  data6  = {{{exp|}}}
{{#if: {{{hp}}}|
+
|  label7  = Aug Bonus
<tr>
+
|  data7  = {{{aug-bonus|}}}
    <th colspan="10">HP</th>
+
|  label8  = Enchantment Slots
    <td colspan="20">{{{hp}}}</td>
+
|  data8  = {{{aug-slots|}}}
</tr>
+
| label9  = Aug Cost
|}}
+
|  data9  = {{{aug-cost|}}}
 
+
|  label10 = HP
{{#if: {{{level-req}}}|
+
|   data10 = {{{hp|}}}
<tr>
+
|  label11 = Base HP
    <th colspan="10">Level Required</th>
+
|  data11 = {{{base-hp|}}}
    <td colspan="20">{{{level-req}}}</td>
+
| header20 = Cooking
</tr>
+
|  label21 = Size
|}}
+
|   data21 = {{{food-size|}}}
</table>
+
|  label22 = Difficulty
 
+
|   data22 = {{{food-diff|}}}
{{#if: {{{stab|{{{slash}}}|{{{crush}}}|{{{accuracy}}}|{{{strength}}}|{{{speed}}}|{{{attacktype}}}|{{{equipment}}}}}}|
+
|  label23 = Category
<div class="infobox-title">Combat Stats</div>
+
|   data23 = {{{food-cat|}}}
<div class="infobox-stats">
+
|  label24 = Buff
<table style="padding: 1em;">
+
|   data24 = {{{food-buff|}}}
{{#if: {{{stab}}} |
+
|  label31 = Recipe ID
<tr>
+
|   data31 = {{{cook-id|}}}
    <th colspan="10">Stab Defense</th>
+
|  label32 = Required Category
    <td colspan="20">{{{stab}}}</td>
+
|   data32 = {{{cook-cat|}}}
</tr>
+
| label33 = Notes
|}}
+
|  data33 = {{{cook-note|}}}
{{#if: {{{slash}}} |
+
| header50 = Offensive Stats
<tr>
+
|  label51 = Accuracy
    <th colspan="10">Slash Defense</th>
+
|  data51 = {{{accuracy|}}}
    <td colspan="20">{{{slash}}}</td>
+
|  label52 = Strength
</tr>
+
|  data52 = {{{strength|}}}
|}}
+
| label53 = Attack Speed
{{#if: {{{crush}}} |
+
|  data53 = {{{speed|}}}
<tr>
+
|  label54 = Attack Type
    <th colspan="10">Crush Defense</th>
+
|  data54 = {{{attacktype|}}}
    <td colspan="20">{{{crush}}}</td>
+
|  label55 = Slot
</tr>
+
|  sdata55 = {{{slot|}}}
|}}
+
| header60 = Defensive Stats
{{#if: {{{accuracy}}} |
+
| slabel61 = Stab
<tr>
+
|  sdata61 = {{{stab|}}}
    <th colspan="10">Accuracy</th>
+
| slabel62 = Slash
    <td colspan="20">{{{accuracy}}}</td>
+
| sdata62 = {{{slash|}}}
</tr>
+
| slabel63 = Crush
|}}
+
|  sdata63 = {{{crush|}}}
{{#if: {{{strength}}} |
+
| slabel64 = Magic
<tr>
+
| sdata64 = {{{magic|}}}
    <th colspan="10">Strength</th>
+
| slabel65 = Range
    <td colspan="20">{{{strength}}}</td>
+
|  sdata65 = {{{range|}}}
</tr>
+
| header70 = Non Combat Stat
|}}
+
| label71= {{{non-combat-name|}}}
{{#if: {{{speed}}} |
+
|  data71= {{{non-combat-stat|}}}
<tr>
+
| header80 = Seeds
    <th colspan="10">Attack Speed</th>
+
|  label81= Level Required
    <td colspan="20">{{{speed}}}</td>
+
|  data81= {{{seed-level-req|}}}
</tr>
+
|  label82= Experience
|}}
+
|  data82= {{{seed-exp|}}}
{{#if: {{{attacktype}}} |
+
|  label83= Plot Size
<tr>
+
|  data83= {{{plot-size|}}}
    <th colspan="10">Attack Type</th>
+
| label84= Harvest Time
    <td colspan="20">{{{attacktype}}}</td>
+
|  data84= {{{harvest-time|}}}
</tr>
+
|  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|}}}
 
}}
 
}}
</table>
+
}}</includeonly>
|}}
 
 
 
{{#if:{{{non-combat-name}}}|
 
<div class="infobox-title">Non Combat Stat</div>
 
<div class="infobox-stats">
 
<table class="fullWidth-table">
 
<tr>
 
<th colspan="10">{{{non-combat-name}}}</th>
 
<td colspan="20">{{{non-combat}}}</td>
 
</tr>
 
</table>
 
|}}
 
 
 
{{#if: {{{seed-size|{{{experience}}}}}}|
 
<div class="infobox-title">Seeds</div>
 
<div class="infobox-stats">
 
<table class="fullWidth-table">
 
<tr>
 
    <th colspan="10">Seed Size</th>
 
    <td colspan="20">{{{seed-size}}}</td>
 
</tr>
 
<tr>
 
    <th colspan="10">Experience</th>
 
    <td colspan="20">{{{experience}}}</td>
 
</tr>
 
<tr>
 
    <th colspan="10">Harvest Time</th>
 
    <td colspan="20">{{{harvest-time}}}</td>
 
</tr>
 
</table>
 
|}}
 

Latest revision as of 12:11, 19 June 2023

Usage[edit source]

{{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 = 
 }}