Template:Reveries reward table row: Difference between revisions

From Tears of Themis Wiki
imported>Harmonea
(Created page with "<noinclude>{{doc}}Category:Templates</noinclude><includeonly>|- | {{#var:level}} {{#vardefine:level | {{#expr: {{#var:level}}+1 }} }} | {{{{#switch: {{{1|}}} |Stellin |S-Chip |Home Deco Voucher |Tears of Themis=Currency |#default=Item icon }}|{{{1|}}} x{{{2|}}} | {{{{#switch: {{{3|}}} |Stellin |S-Chip |Home Deco Voucher |Tears of Themis=Currency |#default=Item icon }}|{{{3|}}} x{{{4|}}}{{#if: {{{5|}}} | <br/>{{{{#switch: {{{5|}}} |Stellin |S-...")
 
imported>Harmonea
mNo edit summary
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|}}}
| {{{{#switch: {{{3|}}}
| {{{{#switch: {{{3|}}}
   |Stellin
   |Stellin
Line 12: Line 12:
   |Home Deco Voucher
   |Home Deco Voucher
   |Tears of Themis=Currency
   |Tears of Themis=Currency
   |#default=Item icon }}|{{{3|}}} x{{{4|}}}{{#if: {{{5|}}} |  
   |#default=Item icon }}|{{{3|}}}}} x{{{4|}}}{{#if: {{{5|}}} |  
<br/>{{{{#switch: {{{5|}}}
<br/>{{{{#switch: {{{5|}}}
   |Stellin
   |Stellin
Line 18: Line 18:
   |Home Deco Voucher
   |Home Deco Voucher
   |Tears of Themis=Currency
   |Tears of Themis=Currency
   |#default=Item icon }}|{{{5|}}} x{{{6|}}} }}</includeonly>
   |#default=Item icon }}|{{{5|}}}}} x{{{6|}}} }}</includeonly>

Revision as of 00:02, 30 May 2022

Template-info.png Documentation

Description

Used in conjunction with Template:Reveries reward table for the "rewards" subheader of Reveries pages

Usage

{{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

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 count
    • parameter 3: The paid track item
    • parameter 4: The paid track item count
    • parameter 5: (Optional) The second paid track item
    • parameter 6: (Optional) The second paid track item count

Example

{{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 Btn coin s.pngStellin x15,000 Btn coin s.pngStellin x15,000
Oracle of Justice IV icon.pngOracle of Justice IV x6
2 Selection Star SR icon.pngSelection Star SR x1 Selection Star MR icon.pngSelection Star MR x1
3 File:Special icon.pngSpecial xReveries Discount Coupon icon.pngReveries Discount Coupon [[File:Floral Greenhouse icon.png Floral Greenhouse Visit BG icon.png|link=Floral Greenhouse icon.png Floral Greenhouse Visit BG|24px]][[Floral Greenhouse icon.png Floral Greenhouse Visit BG]] x