Badge time.png   The Paragon Wiki Archive documents the state of City of Heroes/Villains as it existed on December 1, 2012.

Difference between revisions of "Template:PMarket Row"

From Paragon Wiki Archive
Jump to: navigation, search
m
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

Item PP Date Added Info VIP $ US € EU £ UK 0 $Template:Format price Template:Format price £ Template:Format price
Standard Points Bundle 400 Example $5.00 €3,98 £3.20Template: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.