Difference between revisions of "Template:Infobox Item"

From Idlescape Wiki
Jump to navigation Jump to search
m (added seed- in front of lvl req for seeds to not show it on all infoboxes)
 
(64 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|}}}
{{#if: {{{hp|}}}|
+
| label6  = Exp
<tr>
+
|  data6  = {{{exp|}}}
    <th colspan="10">HP</th>
+
|  label7  = Aug Bonus
    <td colspan="20">{{{hp}}}</td>
+
|   data7  = {{{aug-bonus|}}}
</tr>
+
|  label8  = Enchantment Slots
|}}
+
|  data8  = {{{aug-slots|}}}
{{#if: {{{level-req|}}}|
+
| label9  = Aug Cost
<tr>
+
|  data9  = {{{aug-cost|}}}
    <th colspan="10">Level Required</th>
+
|  label10 = HP
    <td colspan="20">{{{level-req}}}</td>
+
|   data10 = {{{hp|}}}
</tr>
+
|  label11 = Base HP
|}}
+
|  data11 = {{{base-hp|}}}
</table>
+
| header20 = Cooking
{{#if: {{{stab|{{{slash|}}}|{{{crush|}}}|{{{accuracy|}}}|{{{strength|}}}|{{{speed|}}}|{{{attacktype|}}}|}}}|
+
|  label21 = Size
<div class="infobox-title">Combat Stats</div>
+
|   data21 = {{{food-size|}}}
<div class="infobox-stats">
+
|  label22 = Difficulty
<table style="padding: 1em;">
+
|   data22 = {{{food-diff|}}}
{{#if: {{{stab|}}} |
+
|  label23 = Category
<tr>
+
|   data23 = {{{food-cat|}}}
    <th colspan="10">Stab Defense</th>
+
|  label24 = Buff
    <td colspan="20">{{{stab}}}</td>
+
|   data24 = {{{food-buff|}}}
</tr>
+
| label31 = Recipe ID
|}}
+
|  data31 = {{{cook-id|}}}
{{#if: {{{slash|}}} |
+
| label32 = Required Category
<tr>
+
|  data32 = {{{cook-cat|}}}
    <th colspan="10">Slash Defense</th>
+
|  label33 = Notes
    <td colspan="20">{{{slash}}}</td>
+
|  data33 = {{{cook-note|}}}
</tr>
+
| header50 = Offensive Stats
|}}
+
|  label51 = Accuracy
{{#if: {{{crush|}}} |
+
|  data51 = {{{accuracy|}}}
<tr>
+
|  label52 = Strength
    <th colspan="10">Crush Defense</th>
+
|  data52 = {{{strength|}}}
    <td colspan="20">{{{crush}}}</td>
+
| label53 = Attack Speed
</tr>
+
|  data53 = {{{speed|}}}
|}}
+
|  label54 = Attack Type
{{#if: {{{accuracy|}}} |
+
|   data54 = {{{attacktype|}}}
<tr>
+
|  label55 = Slot
    <th colspan="10">Accuracy</th>
+
|  sdata55 = {{{slot|}}}
    <td colspan="20">{{{accuracy}}}</td>
+
| header60 = Defensive Stats
</tr>
+
| slabel61 = Stab
|}}
+
|  sdata61 = {{{stab|}}}
{{#if: {{{strength|}}} |
+
| slabel62 = Slash
<tr>
+
| sdata62 = {{{slash|}}}
    <th colspan="10">Strength</th>
+
| slabel63 = Crush
    <td colspan="20">{{{strength}}}</td>
+
|  sdata63 = {{{crush|}}}
</tr>
+
| slabel64 = Magic
|}}
+
| sdata64 = {{{magic|}}}
{{#if: {{{speed|}}} |
+
| slabel65 = Range
<tr>
+
|  sdata65 = {{{range|}}}
    <th colspan="10">Attack Speed</th>
+
| header70 = Non Combat Stat
    <td colspan="20">{{{speed}}}</td>
+
| label71= {{{non-combat-name|}}}
</tr>
+
|  data71= {{{non-combat-stat|}}}
|}}
+
| header80 = Seeds
{{#if: {{{attacktype|}}} |
+
|  label81= Level Required
<tr>
+
|  data81= {{{seed-level-req|}}}
    <th colspan="10">Attack Type</th>
+
|  label82= Experience
    <td colspan="20">{{{attacktype}}}</td>
+
|   data82= {{{seed-exp|}}}
</tr>
+
|  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|}}}
 
}}
 
}}
</table>
+
}}</includeonly>
</div>
 
|}}
 
{{#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-stat|}}}</td>
 
</tr>
 
</table>
 
</div>
 
|}}
 
{{#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>
 
</div>
 
|}}
 
</div>
 
 
 
 
 
<noinclude>
 
====Usage====
 
<nowiki>{{Infobox Monster</nowiki>
 
|title =
 
|image =
 
|gold =
 
|heat =
 
|hp =
 
|level-req =
 
|stab =
 
|slash =
 
|crush =
 
|accuracy =
 
|strength =
 
|speed =
 
|attacktype =
 
|non-combat-name =
 
|non-combat-stat =
 
|seed-size =
 
|experience =
 
|harvest-time =
 
<nowiki>}}</nowiki>
 
</noinclude>
 

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