Template:Ring: Difference between revisions
From The Mana World
now It'd show a black "N/A" if no text is given in stats de/increase, but a colored text if text is given |
thanks alex :), changing "N/A" for stats to a simple "-" (looks better here), adding a category line |
||
| Line 5: | Line 5: | ||
<tr><th colspan="2"><p style="color:#666">Item ID: {{{ID|N/A}}}</p></tr> | <tr><th colspan="2"><p style="color:#666">Item ID: {{{ID|N/A}}}</p></tr> | ||
<tr><th colspan="2">{{{Description|N/A}}}</tr> | <tr><th colspan="2">{{{Description|N/A}}}</tr> | ||
<tr><th scope="row">Stats increase</th><td>{{#if: {{{Stats increase|}}}|<span style="color:#007700;">{{{Stats increase|}}}</span>| | <tr><th scope="row">Category</th><td>[[Ring]]</td></tr> | ||
<tr><th scope="row">Stats decrease</th><td>{{#if: {{{Stats decrease|}}}|<span style="color:#ad1818;">{{{Stats decrease|}}}</span>| | <tr><th scope="row">Stats increase</th><td>{{#if: {{{Stats increase|}}}|<span style="color:#007700;">{{{Stats increase|}}}</span>|-}}</td></tr> | ||
<tr><th scope="row">Stats decrease</th><td>{{#if: {{{Stats decrease|}}}|<span style="color:#ad1818;">{{{Stats decrease|}}}</span>|-}}</td></tr> | |||
<tr><th scope="row">Buyable</th><td>{{{Buyable|No}}}</td></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">Buy Price</th><td>{{{Buy|N/A}}} GP</td></tr> | ||
| Line 16: | Line 17: | ||
[[Category:Ring]] | [[Category:Ring]] | ||
<noinclude> | <noinclude> | ||
{{:Template:{{PAGENAME}}/doc}} | {{:Template:{{PAGENAME}}/doc}} <!-- this is to include documentation in this page, without transcluding it in the page where template is used --> | ||
[[Category:Content Template]] | [[Category:Content Template]] <!-- this is to categorize the template. It will not be transcluded in the page where template is used --> | ||
</noinclude> | </noinclude> | ||
Revision as of 07:33, 13 March 2015
| N/A | |
|---|---|
| N/A | |
Item ID: N/A | |
| N/A | |
| Category | Ring |
| Stats increase | - |
| Stats decrease | - |
| Buyable | No |
| Buy Price | N/A GP |
| Sell Price | N/A GP |
| Weight | N/A g |
A template used for pages about Rings.
It will automatically add Category:Ring to pages using it.
Usage:
Copy the following code into your page and fill the lines:
-
{{Ring
|Name = [[Item name]]
|Image = [[File:Ring.png]]
|ID = Item ID
|Description = Item description
|Level = required equip level (not level to obtain it!), delete Level line if none
|Stats increase = formatting example: "Vitality +1", delete Stats increase line if none
|Stats decrease = formatting example: "M.Attack -1", delete Stats decrease line if none
|Buyable = Yes or no
|Buy = formatting example: "1,000", it will add "GP" automatically
|Sell = formatting example: "1,000", it will add "GP" automatically
|Weight = formatting example: "1,000", it will add "g" automatically
}}