Difference between revisions of "SalesRow"

From Sega Retro

Line 1: Line 1:
<includeonly>{{#vardefine:position|{{#expr:{{#var:position}}+1}}}}
+
<includeonly><div style="display:none;">{{#vardefine:last|0}}{{SalesRow/GetLast|chartname={{#var:chartname}}|{{{1|}}}|{{{format|}}}}}
|-
+
 
|style="text-align:center;"|{{#var:position}}
+
{{#vardefine:position|{{#expr:{{#var:position}}+1}}}}
|style="text-align:center;"|{{#vardefine:last|0}}{{SalesRow/GetLast|chartname={{#var:chartname}}|{{{1|}}}|{{{format|}}}}}{{#var:last}}
+
 
{{#if:{{{format|}}}|{{!}}style="text-align:center;"{{!}}{{{{{format}}}}}|}}
+
{{#ifeq:{{#var:last|0}}|{{#vardefine:weeks_{{{1}}}|1}}|{{incvar|weeks_{{{1}}}}}}}
|''[[{{{1|}}}]]''
+
 
{{#if:{{{units|}}}|{{!}}style="text-align:right;"{{!}}{{{units}}}|}}
+
{{#cargo_store:
|style="text-align:center;"|{{#ifeq:{{#var:last}}|0|{{NewEntry}}|{{#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}}}}}}}}}}{{#cargo_store:
 
 
_table = salescharts
 
_table = salescharts
 
| chartname={{#titleparts:{{PAGENAME}}}}
 
| chartname={{#titleparts:{{PAGENAME}}}}
Line 14: Line 13:
 
| position={{#var:position}}
 
| position={{#var:position}}
 
| units={{{units|}}}
 
| units={{{units|}}}
}}</includeonly><noinclude>{{#cargo_declare:
+
}}
 +
 
 +
{{#vardefine:change|{{#ifeq:{{#var:last}}|0|{{NewEntry}}|{{#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}}}}}}}}}}}}
 +
 
 +
</div>
 +
|-
 +
|style="text-align:center;"|{{#var:position}}
 +
|style="text-align:center;"|{{#ifexpr:{{#var:last}}>0|{{#var:last}}|}} {{#if:{{#var:change}}|{{#var:change}}|}}{{
 +
#if:{{{format|}}}|{{!}}{{!}}style="text-align:center;"{{!}}{{{{{format}}}}}|}}
 +
|''[[{{{1|}}}]]''{{
 +
#if:{{{units|}}}|{{!}}{{!}}style="text-align:right;"{{!}}{{{units}}}|}}{{
 +
#if:{{#var:weekcounter}}|{{!}}{{!}}style="text-align:right;"{{!}}{{#var:weeks_{{{1}}}}}|}}{{clearvar|change}}</includeonly><noinclude>
 +
 
 +
 
 +
{{#cargo_declare:
 
_table = salescharts
 
_table = salescharts
 
|chartname=Text
 
|chartname=Text
Line 22: Line 35:
 
|position=Integer
 
|position=Integer
 
|units=Integer
 
|units=Integer
}}[[Category:Templates]]</noinclude>
+
}}[[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|PGA Tour Golf|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}}
 +
}}
 +
 
 +
</noinclude>

Revision as of 11:36, 4 May 2022


This template defines the table "salescharts". View table.

No results


No results






1992-04-04[1]
Position Previous Format Name Units Weeks in the chart
Continuous Total
1 Icon newentry.svg
Sega Master System
Krusty's Super Fun House 555 1
No results


No results






2 Icon newentry.svg
Neo Geo
Pit-Fighter 444 1
No results


No results






3 Icon newentry.svg
Sega Saturn
Arch Rivals 33 1
No results


No results






4 Icon newentry.svg
Sega Master System
Rolling Thunder 2 700 1
No results


No results






5 Icon newentry.svg
Sega Mega Drive
EA Hockey 999 1
No results


No results






6 Icon newentry.svg
Sega Mega Drive
PGA Tour Golf 998 1
No results


No results






7 Icon newentry.svg
Sega Mega Drive
Desert Strike: Return to the Gulf 1000 1
No results


No results






8 Icon newentry.svg
Sega Master System
Wonder Boy in Monster World 600 1
No results


No results






9 Icon newentry.svg
Sega Saturn
Kid Chameleon 20 1
No results


No results






10 Icon newentry.svg
Xbox
Hellfire 1 1








1992-05-04[1]
Position Previous Format Name Units Weeks in the chart
Continuous Total
1 2 Icon increase.svg 1
Neo Geo
Pit-Fighter 444 1







2 4 Icon increase.svg 2
Sega Master System
Rolling Thunder 2 700 1







3 3 Icon steady.svg
Sega Saturn
Arch Rivals 33 1







4 5 Icon increase.svg 1
Sega Mega Drive
EA Hockey 999 1







5 8 Icon increase.svg 3
Sega Master System
Wonder Boy in Monster World 600 1







6 6 Icon steady.svg
Sega Mega Drive
PGA Tour Golf 998 1







7 7 Icon steady.svg
Sega Mega Drive
Desert Strike: Return to the Gulf 1000 1







8 10 Icon increase.svg 2
Xbox
Hellfire 1 1







9 9 Icon steady.svg
Sega Saturn
Kid Chameleon 20 1







10 1 Icon decrease.svg 9
Sega Master System
Krusty's Super Fun House 555 1