Template:Inventory Item: Difference between revisions

From Drunkapedia
Jump to: navigation, search
imported>Tlosk
No edit summary
imported>Tlosk
(added optional modifer for price)
Line 2: Line 2:
|align=center width=32px| [[Image:{{{1|Icon]]}}} Icon.png]]
|align=center width=32px| [[Image:{{{1|Icon]]}}} Icon.png]]
|align=left| {{#ifeq:{{{Alias|}}}||[[{{{1|??}}}]]|[[{{{1|}}}|{{{Alias|??}}}]]}} [[{{strip|{{{1|}}}}}/Sold By|<nowiki></nowiki>]]
|align=left| {{#ifeq:{{{Alias|}}}||[[{{{1|??}}}]]|[[{{{1|}}}|{{{Alias|??}}}]]}} [[{{strip|{{{1|}}}}}/Sold By|<nowiki></nowiki>]]
|align=right| {{{2|??}}}&nbsp;
|align=right| {{#ifeq:{{{3|}}}||{{{2|??}}}&nbsp;|{{#expr:round({{{2|}}} * {{{3|}}})&nbsp;}}
|-</includeonly><noinclude>
|-</includeonly><noinclude>
{{Related|Wiki Templates|Template:Inventory Table{{!}}<nowiki>{{Inventory Table}}</nowiki>}}
{{Related|Wiki Templates|Template:Inventory Table{{!}}<nowiki>{{Inventory Table}}</nowiki>}}
Line 9: Line 9:
{{Inventory Item |  |  }}
{{Inventory Item |  |  }}


{{Inventory Item | <Name> | <Price> | Alias = <Name> }}
{{Inventory Item | <Name> | <Price> | <Optional Modifier> | Alias = <Name> }}
</pre>
</pre>



Revision as of 14:22, 1 November 2009

Related topics: Wiki Templates, {{Inventory Table}}

Syntax

{{Inventory Item |  |  }}

{{Inventory Item | <Name> | <Price> | <Optional Modifier> | Alias = <Name> }}

Usage

Used as a single row within a table, see Template:Inventory Table for more details. Alias is optional and will display an alternate name as the link instead of the actual page name.