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
 
(20 intermediate revisions by 6 users not shown)
Line 1: Line 1:
| {{{1}}} || {{{2}}} || {{{3}}} || {{{4}}} || ${{#expr:(({{{2}}} * 1.25)/100)}} || € {{#expr:(({{{2}}} * 1.2)/100)}} || £ {{#expr:(({{{2}}} * 0.85)/100)}}
+
<includeonly>
 
|-
 
|-
 
+
| {{{1|{{red|??}} }}}
<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>
+
| style="text-align: right;" | {{{2|{{red|??}} }}}
 +
| style="text-align: center;" | {{{3|{{red|??}} }}}
 +
| {{{4|{{red|??}} }}}
 +
| style="text-align: center;" | {{{5| }}}
 +
| style="text-align: right;" | {{#if: {{{2|}}} | ${{PP2USD|{{{2}}}}} | {{red|??}} }}
 +
| style="text-align: right;" | {{#if: {{{2|}}} | €{{PP2EUR|{{{2}}}}} | {{red|??}} }}
 +
| style="text-align: right;" | {{#if: {{{2|}}} | £{{PP2GBP|{{{2}}}}} | {{red|??}} }}</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 01:28, 2 May 2012

[edit] [purge] Documentation


Usage

For use on Paragon Market and related pages.

{{PMarket Row|<Item Name>|<PP>|<Description>|<VIPs?>}}

There are four parameters, which are all technically optional, but all but VIP result in ?? if left out.

  • The first parameter is for the item name as listed on the market interface. Use a singular name if it comes in packs (i.e. Mission Architect Story Slot instead of Mission Architect Story Slot x5).
  • The second parameter, for Paragon Points, automatically translates the PP cost into the various real-world currencies.
  • The third parameter, is for a human-readable "long description" of the item.
  • The fourth parameter should be a Y if the item is included for free for VIPs, and should be left out if it is not.

Example

{{PMarket Start}}
{{PMarket Row|Standard Points Bundle|400|Example 1}}
{{PMarket Row|Super Duper Awesome Powerset|800|Example 2|Y}}
{{PMarket Row|Free Stuff|0|Example 3}}
{{PMarket Row}}
|}
Item PP Date Added Info VIP $ US € EU £ UK
Standard Points Bundle 400 Example 1 ?? $5.00 €3,98 £3.20
Super Duper Awesome Powerset 800 Example 2 Y $10.00 €7,97 £6.41
Free Stuff 0 Example 3 ?? $0.00 €0,00 £0.00
?? ?? ?? ?? ?? ?? ??