Difference between revisions of "SalesRow"
From Sega Retro
(16 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly> | + | <includeonly><div style="display:none;">{{#vardefine:last|0}}{{SalesRow/GetLast|chartname={{#var:chartname}}|{{{1|}}}|{{#if:{{{format|}}}|{{{format|}}}|{{#var:format}}}}}} |
− | + | ||
− | + | {{#vardefine:position|{{#expr:{{#var:position}}+1}}}} | |
− | + | ||
− | + | {{#cargo_store: | |
− | |||
− | {{#if:{{{ | ||
− | |||
_table = salescharts | _table = salescharts | ||
− | | chartname={{# | + | | chartname={{#var:chartname}} |
| date={{#var:currentdate}} | | date={{#var:currentdate}} | ||
| gamename={{{1|}}} | | gamename={{{1|}}} | ||
− | | format={{{format| | + | | format={{#if:{{{format|}}}|{{{format|}}}|{{#var:format}}}} |
| position={{#var:position}} | | position={{#var:position}} | ||
| units={{{units|}}} | | units={{{units|}}} | ||
− | }}</includeonly><noinclude>{{#cargo_declare: | + | }} |
+ | |||
+ | {{#vardefine:change|{{ | ||
+ | #ifeq:{{#var:last}}|0|{{NewEntry}}|{{ | ||
+ | #ifeq:{{#var:last}}|re-entry|(re-entry){{#vardefine:last|0}}|{{ | ||
+ | #ifexpr:{{#var:position}} > {{#var:last}}|({{decrease}} {{#expr:{{#var:position}}-{{#var:last}}}})|{{#ifexpr:{{#var:position}} < {{#var:last}}|({{increase}} {{#expr:{{#var:last}}-{{#var:position}}}})|{{#ifexpr:{{#var:position}} = {{#var:last}}|({{steady}})}}}}}}}}|}}}} | ||
+ | |||
+ | {{#ifeq:{{#var:last}}|0|{{#vardefine:weeks_{{{1}}}|1}}|{{incvar|weeks_{{{1}}}}}}} | ||
+ | |||
+ | {{incvar|weeks_{{{1}}}_total}}}} | ||
+ | </div> | ||
+ | |- | ||
+ | |style="text-align:center;"|{{#var:position}} | ||
+ | |style="text-align:center;"|{{#ifexpr:{{#var:last}}>0|<div style="display:inline-block; width:1em;">{{#var:last}}</div>|}}{{#if:{{#var:change}}|<div style="white-space: nowrap; display:inline-block; {{#ifexpr:{{#var:last}}>0|text-align:right; width:3em;}}">{{#var:change}}</div>|}}{{ | ||
+ | #if:{{#var:hideformat}}||{{!}}{{!}}style="text-align:center;"{{!}}{{ {{#if:{{{format|}}}|{{{format|}}}|{{#var:format}}}} }}}} | ||
+ | |{{#if:{{{1|}}}|''[[{{StripBrackets|{{{1|}}}}}]]''}}{{ | ||
+ | #if:{{{units|}}}|{{!}}{{!}}style="text-align:right;"{{!}}{{{units}}}|}}{{ | ||
+ | #if:{{#var:weekcounter}}|{{!}}{{!}}style="text-align:right;"{{!}}{{#var:weeks_{{{1}}}}}|}}{{ | ||
+ | #if:{{#var:weekcounter}}|{{!}}{{!}}style="text-align:right;"{{!}}{{#var:weeks_{{{1}}}_total}}|}}{{clearvar|change}}</includeonly><noinclude> | ||
+ | |||
+ | {{#cargo_declare: | ||
_table = salescharts | _table = salescharts | ||
|chartname=Text | |chartname=Text | ||
Line 22: | Line 39: | ||
|position=Integer | |position=Integer | ||
|units=Integer | |units=Integer | ||
+ | }}[[Category:Templates]] | ||
+ | |||
+ | {{SalesChart|date=1992-04-04|format=yes|units=yes|weekcounter=yes| | ||
+ | {{SalesRow|Krusty's Super Fun House|format=SMS|units=555}} | ||
+ | {{SalesRow|Pit-Fighter|format=NG|units=444}} | ||
+ | {{SalesRow|Arch Rivals|format=SAT|units=33}} | ||
+ | {{SalesRow|Rolling Thunder 2|format=SMS|units=700}} | ||
+ | {{SalesRow|EA Hockey|format=MD|units=999}} | ||
+ | {{SalesRow|PGA Tour Golf|format=MD|units=998}} | ||
+ | {{SalesRow|Desert Strike: Return to the Gulf|format=MD|units=1000}} | ||
+ | {{SalesRow|Wonder Boy in Monster World|format=SMS|units=600}} | ||
+ | {{SalesRow|Kid Chameleon|format=SAT|units=20}} | ||
+ | {{SalesRow|Hellfire|format=XBOX|units=1}} | ||
+ | |ref={{magref|segapro|9|10}} | ||
+ | }} | ||
+ | |||
+ | {{SalesChart|date=1992-05-04|format=yes|units=yes|weekcounter=yes| | ||
+ | {{SalesRow|Pit-Fighter|format=NG|units=444}} | ||
+ | {{SalesRow|Rolling Thunder 2|format=SMS|units=700}} | ||
+ | {{SalesRow|Arch Rivals|format=SAT|units=33}} | ||
+ | {{SalesRow|EA Hockey|format=MD|units=999}} | ||
+ | {{SalesRow|Wonder Boy in Monster World|format=SMS|units=600}} | ||
+ | {{SalesRow|Sonic the Hedgehog (Mega Drive)|format=MD|units=998}} | ||
+ | {{SalesRow|Desert Strike: Return to the Gulf|format=MD|units=1000}} | ||
+ | {{SalesRow|Hellfire|format=XBOX|units=1}} | ||
+ | {{SalesRow|Kid Chameleon|format=SAT|units=20}} | ||
+ | {{SalesRow|Krusty's Super Fun House|format=SMS|units=555}} | ||
+ | |ref={{magref|segapro|9|10}} | ||
+ | }} | ||
+ | |||
+ | |||
+ | {{SalesChart|date=1992-06-04|format=yes|units=yes|weekcounter=yes| | ||
+ | {{SalesRow|Pit-Fighter|format=NG|units=444}} | ||
+ | {{SalesRow|Rolling Thunder 2|format=SMS|units=700}} | ||
+ | {{SalesRow|Arch Rivals|format=SAT|units=33}} | ||
+ | {{SalesRow|EA Hockey|format=MD|units=999}} | ||
+ | {{SalesRow|Wonder Boy in Monster World|format=SMS|units=600}} | ||
+ | {{SalesRow|Sonic the Hedgehog (Mega Drive)|format=MD|units=998}} | ||
+ | {{SalesRow|Desert Strike: Return to the Gulf|format=MD|units=1000}} | ||
+ | {{SalesRow|Hellfire|format=XBOX|units=1}} | ||
+ | {{SalesRow|Kid Chameleon|format=SAT|units=20}} | ||
+ | {{SalesRow|PGA Tour Golf|format=MD|units=998}} | ||
+ | |ref={{magref|segapro|9|10}} | ||
}} | }} | ||
− | + | </noinclude> |
Latest revision as of 09:09, 5 May 2022
This template defines the table "salescharts". View table.
Position | Previous | Format | Name | Units | Weeks in the chart | |
---|---|---|---|---|---|---|
Continuous | Total | |||||
1 | Krusty's Super Fun House | 555 | 1 | 1 | ||
2 | Pit-Fighter | 444 | 1 | 1 | ||
3 | Arch Rivals | 33 | 1 | 1 | ||
4 | Rolling Thunder 2 | 700 | 1 | 1 | ||
5 | EA Hockey | 999 | 1 | 1 | ||
6 | PGA Tour Golf | 998 | 1 | 1 | ||
7 | Desert Strike: Return to the Gulf | 1000 | 1 | 1 | ||
8 | Wonder Boy in Monster World | 600 | 1 | 1 | ||
9 | Kid Chameleon | 20 | 1 | 1 | ||
10 | Hellfire | 1 | 1 | 1 |
Position | Previous | Format | Name | Units | Weeks in the chart | |
---|---|---|---|---|---|---|
Continuous | Total | |||||
1 | 2 |
Pit-Fighter | 444 | 2 | 2 | |
2 | 4 |
Rolling Thunder 2 | 700 | 2 | 2 | |
3 | 3 |
Arch Rivals | 33 | 2 | 2 | |
4 | 5 |
EA Hockey | 999 | 2 | 2 | |
5 | 8 |
Wonder Boy in Monster World | 600 | 2 | 2 | |
6 | Sonic the Hedgehog | 998 | 1 | 1 | ||
7 | 7 |
Desert Strike: Return to the Gulf | 1000 | 2 | 2 | |
8 | 10 |
Hellfire | 1 | 2 | 2 | |
9 | 9 |
Kid Chameleon | 20 | 2 | 2 | |
10 | 1 |
Krusty's Super Fun House | 555 | 2 | 2 |
Position | Previous | Format | Name | Units | Weeks in the chart | |
---|---|---|---|---|---|---|
Continuous | Total | |||||
1 | 1 |
Pit-Fighter | 444 | 3 | 3 | |
2 | 2 |
Rolling Thunder 2 | 700 | 3 | 3 | |
3 | 3 |
Arch Rivals | 33 | 3 | 3 | |
4 | 4 |
EA Hockey | 999 | 3 | 3 | |
5 | 5 |
Wonder Boy in Monster World | 600 | 3 | 3 | |
6 | 6 |
Sonic the Hedgehog | 998 | 2 | 2 | |
7 | 7 |
Desert Strike: Return to the Gulf | 1000 | 3 | 3 | |
8 | 8 |
Hellfire | 1 | 3 | 3 | |
9 | 9 |
Kid Chameleon | 20 | 3 | 3 | |
10 | (re-entry) |
PGA Tour Golf | 998 | 1 | 2 |