Template:Pricing info test: Difference between revisions
No edit summary |
No edit summary |
||
(33 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{| class="wikitable" style="text-align:center" | <includeonly><templatestyles src="Article/styles.css" /> | ||
{| class="wikitable" style="text-align:center" | |||
! {{#switch: {{{Type|}}} | |||
|Weapon= colspan="4" | |Weapon= colspan="4" | ||
|Casino weapon= colspan="2" | |Casino weapon= colspan="2" | ||
Line 6: | Line 7: | ||
|Casino line shield= colspan="2" | |Casino line shield= colspan="2" | ||
|Unit= colspan="2" | |Unit= colspan="2" | ||
|Unit board= colspan="4" | |||
|Casino unit= colspan="2" | |Casino unit= colspan="2" | ||
|Event item= colspan="4" | |Event item= colspan="4" | ||
|No board= colspan="2" | |No board= colspan="2" | ||
|#default= colspan="4"}} | |#default= colspan="4"}} | Pricing information | ||
{{#switch: {{{Type|}}} | {{#switch: {{{Type|}}} | ||
|Weapon= {{!}}- | |Weapon= {{!}}- | ||
{{!}} colspan="2" {{!}} '''Weapon''' {{!}}{{!}} colspan="2" {{!}} '''Board''' | {{!}} colspan="2" {{!}} '''Weapon''' {{!}}{{!}} colspan="2" {{!}} '''Board''' | ||
|Casino weapon= | |Casino weapon= | ||
|Line shield= {{!}}- | |Line shield= {{!}}- | ||
{{!}} colspan="2" {{!}} '''Line shield''' {{!}}{{!}} colspan="2" {{!}} '''Board''' | {{!}} colspan="2" {{!}} '''Line shield''' {{!}}{{!}} colspan="2" {{!}} '''Board''' | ||
|Casino line shield= | |Casino line shield= | ||
|Unit= | |Unit= | ||
|Unit board= {{!}}- | |||
{{!}} colspan="2" {{!}} '''Unit''' {{!}}{{!}} colspan="2" {{!}} '''Board''' | |||
|Casino unit= | |Casino unit= | ||
|Event item= | |Event item= | ||
|No board= | |No board= | ||
|#default= {{!}}- | |#default= {{!}}- | ||
{{!}} colspan="2" {{!}} '''Weapon''' {{!}}{{!}} colspan="2" {{!}} '''Board'''}} | {{!}} colspan="2" {{!}} '''Weapon''' {{!}}{{!}} colspan="2" {{!}} '''Board'''}} | ||
|- | |- | ||
| | | '''Buy price''' || {{#if: {{{Buy|}}}|{{{Buy}}}|N/A}} {{#switch: {{{Type|}}} | ||
|Casino weapon= | |Casino weapon= | ||
|Casino line shield= | |Casino line shield= | ||
|Unit= | |Unit= | ||
|Unit board= {{!}}{{!}} {{!}} '''Buy price''' {{!}}{{!}} {{#if: {{{[B] buy|}}}|{{{[B] buy}}}|N/A}} | |||
|Casino unit= | |Casino unit= | ||
|Event item= | |Event item= | ||
|No board= | |No board= | ||
|#default= {{!}}{{!}} | |#default= {{!}}{{!}} {{!}} '''Buy price''' {{!}}{{!}} {{#if: {{{[B] buy|}}}|{{{[B] buy}}}|N/A}} | ||
}} | }} | ||
|- | |- | ||
| | | '''Sell price''' || {{#if: {{{Sell|}}}|{{{Sell}}}|{{#switch: {{{Type|}}} | ||
|Weapon= {{#if: {{{ | |Weapon= {{#if: {{{Buy|}}}|{{#ifexpr: ({{{Buy}}}/10) < {{#expr: (({{{Rarity}}}) * 70) + (({{{Rank}}} - 1) * 500 * ({{{Rarity}}} - 1))}}|{{#expr: ({{{Buy}}}/10)}}|{{#expr: (({{{Rarity}}}) * 70) + (({{{Rank}}} - 1) * 500 * ({{{Rarity}}} - 1))}}}}|{{#expr: (({{{Rarity}}}) * 70) + (({{{Rank}}} - 1) * 500 * ({{{Rarity}}} - 1))}}}} | ||
|Casino weapon= {{#if: {{{Buy|}}}|{{#if: {{{Sell|}}}|{{{Sell}}}|Cannot be sold}}}} | |Casino weapon= {{#if: {{{Buy|}}}|{{#if: {{{Sell|}}}|{{{Sell}}}|Cannot be sold}}}} | ||
|Line shield= {{#if: {{{Rarity|}}}|{{#expr: 2 * ({{{Rarity}}} * 70) + (({{{Rank}}} - 1) * 500 * ({{{Rarity}}} - 1))}}|{{#if: {{{Sell|}}}|{{{Sell}}}|Unknown}}}} | |Line shield= {{#if: {{{Rarity|}}}|{{#expr: 2 * ({{{Rarity}}} * 70) + (({{{Rank}}} - 1) * 500 * ({{{Rarity}}} - 1))}}|{{#if: {{{Sell|}}}|{{{Sell}}}|Unknown}}}} | ||
|Casino line shield= {{#if: {{{Buy|}}}|{{#if: {{{Sell|}}}|{{{Sell}}}|Cannot be sold}}}} | |Casino line shield= {{#if: {{{Buy|}}}|{{#if: {{{Sell|}}}|{{{Sell}}}|Cannot be sold}}}} | ||
|Unit= {{#if: {{{ | |Unit= {{#if: {{{Buy|}}}|{{#ifexpr: ({{{Buy}}}/10) < {{#expr: (({{{Rarity}}}) * 70) + (({{{Rank}}} - 1) * 500 * ({{{Rarity}}} - 1))}}|{{#expr: ({{{Buy}}}/10)}}|{{#expr: (({{{Rarity}}}) * 70) + (({{{Rank}}} - 1) * 500 * ({{{Rarity}}} - 1))}}}}|{{#expr: (({{{Rarity}}}) * 70) + (({{{Rank}}} - 1) * 500 * ({{{Rarity}}} - 1))}}}} | ||
|Casino unit= {{#if: {{{Buy|}}}|{{#if: {{{Sell|}}}|{{{Sell}}}|Cannot be sold}}}} | |Casino unit= {{#if: {{{Buy|}}}|{{#if: {{{Sell|}}}|{{{Sell}}}|Cannot be sold}}}} | ||
|#default= {{#if: {{{Rarity|}}}|{{#expr: (({{{Rarity}}}) * 70) + (({{{Rank}}} - 1) * 500 * ({{{Rarity}}} - 1))}}|{{#if: {{{Sell|}}}|{{{Sell}}}|Unknown}}}}}}}} {{#switch: {{{Type|}}} | |#default= {{#if: {{{Rarity|}}}|{{#expr: (({{{Rarity}}}) * 70) + (({{{Rank}}} - 1) * 500 * ({{{Rarity}}} - 1))}}|{{#if: {{{Sell|}}}|{{{Sell}}}|Unknown}}}}}}}} {{#switch: {{{Type|}}} | ||
Line 45: | Line 50: | ||
|Casino line shield= | |Casino line shield= | ||
|Unit= | |Unit= | ||
|Unit board= {{!}}{{!}} {{!}} '''Sell price''' {{!}}{{!}} {{#if: {{{[B] sell|}}}|{{{[B] sell}}}}} | |||
|Casino unit= | |Casino unit= | ||
|Event item= | |Event item= | ||
|No board= | |No board= | ||
|#default= {{!}}{{!}} | |#default= {{!}}{{!}} {{!}} '''Sell price''' {{!}}{{!}} {{#if: {{{[B] sell|}}}|{{{[B] sell}}}|{{#switch: {{{Type|}}} | ||
|Weapon= {{#if: {{{Rarity|}}}|{{#expr: (({{{Rarity}}}) * 70) + (500 * ({{{Rarity}}} - 1))}}|{{#if: {{{sell|}}}|{{{sell}}}|Unknown}}}} | |Weapon= {{#if: {{{Rarity|}}}|{{#expr: floor(((({{{Rarity}}}) * 70) + (500 * ({{{Rarity}}} - 1)))/4)}}|{{#if: {{{sell|}}}|{{{sell}}}|Unknown}}}} | ||
|Casino weapon= {{#if: {{{[B] buy|}}}|{{#if: {{{[B] sell|}}}|{{{[B] sell}}}|Unknown}}}} | |Casino weapon= {{#if: {{{[B] buy|}}}|{{#if: {{{[B] sell|}}}|{{{[B] sell}}}|Unknown}}}} | ||
|Line shield= {{#if: {{{ | |Line shield= {{#if: {{{Rarity|}}}|{{#expr: floor(((({{{Rarity}}}) * 70) + (500 * ({{{Rarity}}} - 1)))/4)}}|{{#if: {{{sell|}}}|{{{sell}}}|Unknown}}}} | ||
|Casino line shield= {{#if: {{{[B] buy|}}}|{{#if: {{{[B] sell|}}}|{{{[B] sell}}}|Cannot be sold}}}} | |Casino line shield= {{#if: {{{[B] buy|}}}|{{#if: {{{[B] sell|}}}|{{{[B] sell}}}|Cannot be sold}}}} | ||
|#default= Unknown}}}} | |#default= Unknown}}}} | ||
}} | }} | ||
|- | |- | ||
| | | '''Shop location''' || {{#if: {{{Shop|}}}|{{{Shop}}}|N/A}} {{#switch: {{{Type|}}} | ||
|Casino weapon= | |Casino weapon= | ||
|Casino line shield= | |Casino line shield= | ||
|Unit board= {{!}}{{!}} {{!}} '''Shop location''' {{!}}{{!}} {{#if: {{{[B] shop|}}}|{{{[B] shop}}}|N/A}} | |||
|Unit= | |Unit= | ||
|Casino unit= | |Casino unit= | ||
|Event item= | |Event item= | ||
|No board= | |No board= | ||
|#default= {{!}}{{!}} | |#default= {{!}}{{!}} {{!}} '''Shop location''' {{!}}{{!}} {{#if: {{{[B] shop|}}}|{{{[B] shop}}}|N/A}} | ||
}} | }} | ||
|}</includeonly> | |}</includeonly> |
Latest revision as of 17:18, 21 March 2024
Template parameters
- Type: Identify the type of item this as Weapon, Line shield or Unit. This will ensure the proper table layout and price calculations. For items from Casino Voloyal, identify them as Casino weapon, Casino line shield or Casino unit. No board can also be used to remove the synthesis board pricing columns.
- Buy: If applicable, type the purchase price of the item here. If unknown, leave this field blank.
- Sell: Type the selling price of the item here. If unknown, leave blank.
- Shop: If available for purchase, list the shops where this item can be bought.
- [B] buy: If a synthesis board for this item is available for purchase, type the purchase price here.
- [B] sell: If known and applicable, type the selling price of the item's synthesis board here.
- [B] shop: List shops here where this item's board can be purchased.
In the case of an unknown value, leave the field blank! Do not enter question marks!
Blank template
{{Pricing info test |Type= |Buy= |Sell= |Shop= |[B] buy= |[B] sell= |[B] shop= }}
Examples
Weapon
{{Pricing info test |Type= Weapon |Buy= 8600 |Sell= |Shop= |[B] buy= 4300 |[B] sell= |[B] shop= }}
...produces...
Pricing information | |||
---|---|---|---|
Weapon | Board | ||
Buy price | 8600 | Buy price | 4300 |
Sell price | Expression error: Unexpected < operator. | Sell price | Unknown |
Shop location | N/A | Shop location | N/A |
Weapon w/ no purchase price
{{Pricing info test |Type= Weapon |Buy= |Sell= 450 |Shop= |[B] buy= |[B] sell= |[B] shop= }}
...produces...
Pricing information | |||
---|---|---|---|
Weapon | Board | ||
Buy price | N/A | Buy price | N/A |
Sell price | 450 | Sell price | Unknown |
Shop location | N/A | Shop location | N/A |
Weapon from Casino Voloyal
{{Pricing info test |Type= Casino weapon |Buy= {{Silver}} 04 |Sell= |Shop= [[Casino Voloyal]] |[B] buy= |[B] sell= |[B] shop= }}
...produces...
Pricing information | |
---|---|
Buy price | ![]() |
Sell price | Cannot be sold |
Shop location | Casino Voloyal |
Line shield
{{Pricing info test |Type= Line shield |Buy= 45000 |Sell= |Shop= |[B] buy= 15000 |[B] sell= |[B] shop= }}
...produces...
Pricing information | |||
---|---|---|---|
Line shield | Board | ||
Buy price | 45000 | Buy price | 15000 |
Sell price | Unknown | Sell price | Unknown |
Shop location | N/A | Shop location | N/A |
Line shield from Casino Voloyal
{{Pricing info test |Type= Casino line shield |Buy= {{Gold}} 03 |Sell= |Shop= [[Casino Voloyal]] |[B] buy= |[B] sell= |[B] shop= }}
...produces...
Pricing information | |
---|---|
Buy price | ![]() |
Sell price | Cannot be sold |
Shop location | Casino Voloyal |
Unit
{{Pricing info test |Type= Unit |Buy= 6000 |Sell= |Shop= |[B] buy= |[B] sell= |[B] shop= }}
...produces...
Pricing information | |
---|---|
Buy price | 6000 |
Sell price | Expression error: Unexpected < operator. |
Shop location | N/A |
Unit from Casino Voloyal
{{Pricing info test |Type= Casino unit |Buy= {{Bronze}} 50 |Sell= |Shop= [[Casino Voloyal]] |[B] buy= |[B] sell= |[B] shop= }}
...produces...
Pricing information | |
---|---|
Buy price | ![]() |
Sell price | Cannot be sold |
Shop location | Casino Voloyal |
Event item (Spread Needle/G, for example)
{{Pricing info test |Type= Event item |Buy= |Sell= 100 |Shop= |[B] buy= |[B] sell= |[B] shop= }}
...produces...
Pricing information | |||
---|---|---|---|
Buy price | N/A | ||
Sell price | 100 | ||
Shop location | N/A |