Template:PMarket Row: Difference between revisions

From Unofficial Homecoming Wiki
Jump to navigation Jump to search
imported>ScottyB
No edit summary
imported>ScottyB
mNo edit summary
Line 1: Line 1:
| {{{1}}} || {{{2|0}}} || {{{3}}} || {{{4}}} || ${{Format price|{{#expr:(({{{2}}} * 1.25)/100)}}}} || € {{Format price|{{#expr:(({{{2}}} * 1.2)/100)}}}} || £ {{Format price|{{#expr:(({{{2}}} * 0.85)/100)}}}}
<noinclude>{{PMarket Start}}</noinclude>
| {{{1| }}} || {{{2|0}}} || {{{3| }}} || {{{4| }}} || ${{Format price|{{#expr:(({{{2}}} * 1.25)/100)}}}} || € {{Format price|{{#expr:(({{{2}}} * 1.2)/100)}}}} || £ {{Format price|{{#expr:(({{{2}}} * 0.85)/100)}}}}
|-
|-
<noinclude>{{PMarket Row|Standard Points Bundle|400|Example|}}{{Table End}}


<noinclude>This is working properly when fed arguments, and now it even formats decimals for currency. Parameters in order: item name, points price, info, free to VIPs? After that it calculates USD, Euro and GBP from points.</noinclude>
Now it even formats decimals for currency! Only one row is created by using the template (table heading and additional row on this page for demonstrative purposes). The only parameters are Item, PP, Info, and VIP. The USD, Euro, and GBP are calculated from PP.</noinclude>

Revision as of 11:06, 2 October 2011

Template:Table End Now it even formats decimals for currency! Only one row is created by using the template (table heading and additional row on this page for demonstrative purposes). The only parameters are Item, PP, Info, and VIP. The USD, Euro, and GBP are calculated from PP.
Item PP Date Added Info VIP $ US € EU £ UK 0 $Template:Format price Template:Format price £ Template:Format price
Standard Points Bundle 400 Example $Template:Format price Template:Format price £ Template:Format price