From The Mana World
m (Reverted back to the original form. I'm trying to add conditional markup to show item effects (such as bonuses to Attack and Defense) only when those effects exist)
 
(13 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<dl style="margin-bottom:.75em">
<includeonly>
<dt style="display:inline-block">{{{Image}}} {{{Name}}}:
<div style="float:right; padding:0 0 1.5em 1.5em; width:12em; background-color:#white; text-align:center">
<dd style="display:inline-block; padding-left:.75em; margin-left:0;">{{{Description}}}
</dl>
 
<div style="float:right; padding:0 0 1.5em 1.5em; width:12em; background-color:#FFF; text-align:center">
 
<table class="wikitable" style="width:100%">
<table class="wikitable" style="width:100%">
  <caption>{{{Name}}}</caption>
  <tr><th colspan="2">{{{Name|N/A}}}</tr>
  <tr><th scope="row">Buy</th><td>{{{Buy}}} GP</td></tr>
<tr><th colspan="2">{{{Image|N/A}}}</tr>
  <tr><th scope="row">Sell</th><td>{{{Sell}}} GP</td></tr>
<tr><th colspan="2"><p style="color:#666">Item ID: {{{ID|N/A}}}</p></tr>
  <tr><th scope="row">Weight</th><td>{{{Weight}}} g</td></tr>
<tr><th colspan="2">{{{Description|N/A}}}</tr>
<tr><th scope="row">Buyable</th><td>{{{Buyable|No}}} </td></tr>
  <tr><th scope="row">Buy Price</th><td>{{{Buy|N/A}}} GP</td></tr>
  <tr><th scope="row">Sell Price</th><td>{{{Sell|N/A}}} GP</td></tr>
  <tr><th scope="row">Weight</th><td>{{{Weight|N/A}}} g</td></tr>
</table>
</table>
<p style="color:#666">ID: {{{ID}}}</p>
</div>
</div>
</includeonly>
<noinclude>
{{Template:{{PAGENAME}}/doc}}
[[Category:Content Template]]
</noinclude>

Latest revision as of 17:41, 3 August 2014


Please refer to Item Reference or item.db to fill the fields correctly. Actually, this template is not very useful for equipment which would require a more complete one.

Usage:

{{Item |Name = ItemName |Image = [[Image:Generic.png]] |ID = ItemID |Description = ItemDescription |Buyable = Yes_or_No |Buy = Buy Price |Sell = Sell Price |Weight = Weight }}