Template:PMarket Row: Difference between revisions

From Unofficial Homecoming Wiki
Jump to navigation Jump to search
imported>ScottyB
No edit summary
imported>ScottyB
No edit summary
Line 1: Line 1:
| {{{1}}} || {{{2}}} || {{{3}}} || {{{4}}} || ${{#expr:(({{{2}}} * 1.25)/100)}} || € {{#expr:(({{{2}}} * 1.2)/100)}} || £ {{#expr:(({{{2}}} * 0.85)/100)}}
| {{{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>Despite the errors above, this is working properly when fed arguments. In order: item name, points price, info, free to VIPs? After that it calculates USD, Euro and GBP from points. If anyone can help me figure out how to make those values always display to two decimals, I'd appreciate it!</noinclude>
<noinclude>Despite the errors above, this is working properly when fed arguments. In order: item name, points price, info, free to VIPs? After that it calculates USD, Euro and GBP from points. If anyone can help me figure out how to make those values always display to two decimals, I'd appreciate it!</noinclude>

Revision as of 10:42, 2 October 2011

| {{{1}}} || 0 || {{{3}}} || {{{4}}} || $Template:Format price || € Template:Format price || £ Template:Format price |-

Despite the errors above, this is working properly when fed arguments. In order: item name, points price, info, free to VIPs? After that it calculates USD, Euro and GBP from points. If anyone can help me figure out how to make those values always display to two decimals, I'd appreciate it!