Template:Reveries reward table row: Difference between revisions
From Tears of Themis Wiki
imported>Harmonea No edit summary |
imported>Harmonea (I guess arrays aren't a thing, we didn't need an iterator ;;) |
||
Line 6: | Line 6: | ||
|Home Deco Voucher | |Home Deco Voucher | ||
|Tears of Themis=Currency | |Tears of Themis=Currency | ||
|#default=Item icon }}|{{{1|}}}}} x{{{2| | |#default=Item icon }}|{{{1|}}}}} x{{{2|}}} }}<!--add amount to item 1 tracking | ||
-->{{#vardefine: {{{1|}}}Free | {{#expr: {{#var:{{{1|}}}Free|0}}+ {{formatnum:{{{2|}}}|R}}}} }} | |||
-->{{#vardefine: {{{1|}}} | {{#expr: {{#var:{{{1|}}}|0}}+ {{formatnum:{{{2|}}}|R}}}} }} | |||
| {{#ifeq: {{{1|}}} | Special | {{{3|}}} | {{{{#switch: {{{3|}}} | | {{#ifeq: {{{1|}}} | Special | {{{3|}}} | {{{{#switch: {{{3|}}} | ||
|Stellin | |Stellin | ||
Line 14: | Line 13: | ||
|Home Deco Voucher | |Home Deco Voucher | ||
|Tears of Themis=Currency | |Tears of Themis=Currency | ||
|#default=Item icon }}|{{{3|}}}}} x{{{4| | |#default=Item icon }}|{{{3|}}}}} x{{{4|}}}<!--add amount to item 2 tracking | ||
-->{{#vardefine: {{{3|}}} | {{#expr: {{#var:{{{3|}}}|0}}+ {{formatnum:{{{4|}}}|R}}}} }}<!-- | -->{{#vardefine: {{{3|}}} | {{#expr: {{#var:{{{3|}}}|0}}+ {{formatnum:{{{4|}}}|R}}}} }}<!-- | ||
-->{{#if: {{{5|}}} | | -->{{#if: {{{5|}}} | | ||
Line 23: | Line 21: | ||
|Home Deco Voucher | |Home Deco Voucher | ||
|Tears of Themis=Currency | |Tears of Themis=Currency | ||
|#default=Item icon }}|{{{5|}}}}} x{{{6| | |#default=Item icon }}|{{{5|}}}}} x{{{6|}}}<!--add amount to item 1 tracking | ||
-->{{#vardefine: {{{5|}}} | {{#expr: {{#var:{{{5|}}}|0}}+ {{formatnum:{{{6|}}}|R}}}} }} }} }}</includeonly> | -->{{#vardefine: {{{5|}}} | {{#expr: {{#var:{{{5|}}}|0}}+ {{formatnum:{{{6|}}}|R}}}} }} }} }}</includeonly> |
Latest revision as of 00:36, 30 May 2022
Description[edit source]
Used in conjunction with Template:Reveries reward table for the "rewards" subheader of Reveries pages
Usage[edit source]
{{Reveries reward table |rewards= {{RRTR|Item|Amount|Item|Amount}} {{RRTR|Item|Amount|Item|Amount|Item|Amount}} {{RRTR|Special|Cell 1 raw input|Cell 2 raw input}} }}
Parameters[edit source]
Beginning the table template initializes a variable that handles automatic iteration of the level column.
rewards
- a list of Template:RRTR used as follows:parameter 1
: The free track item- If parameter 1 is "Special", changes the function of the template to simply display the next two parameters directly without parsing or tallying.
parameter 2
: The free track item countparameter 3
: The paid track itemparameter 4
: The paid track item countparameter 5
: (Optional) The second paid track itemparameter 6
: (Optional) The second paid track item count
Example[edit source]
{{Reveries reward table |rewards= {{RRTR|Stellin|15,000|Stellin|15,000|Oracle of Justice IV|6}} {{RRTR|Selection Star SR|1|Selection Star MR|1}} {{RRTR|Special|{{Item icon|Reveries Discount Coupon}}|{{Visit BG icon|Floral Greenhouse}}}} }}
Level | Regular Reveries | Tiered Pass |
---|---|---|
1 | ![]() |
![]() ![]() |
2 | ![]() |
![]() |
3 | ![]() |
![]() |
The above documentation is transcluded from Template:Reveries reward table row/doc. (edit | history)