Difference between revisions of "SalesChart"
From Sega Retro
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{#vardefine:position|0}}{{#vardefine:currentdate|{{#replace:{{#replace:{{{date|}}}|x|0}}|-|}}}}{{#vardefine:chartname|{{{chartname|{{PAGENAME}}}}}}}{{#vardefine:weekcounter|{{{weekcounter|}}}}}{|class="prettytable sortable"| | + | <includeonly>{{#vardefine:position|0}}{{#vardefine:format|{{{format|}}}}}{{#vardefine:hideformat|{{{hideformat|}}}}}{{#vardefine:currentdate|{{#replace:{{#replace:{{{date|}}}|x|0}}|-|}}}}{{#vardefine:chartname|{{{chartname|{{#titleparts:{{PAGENAME}}}}}}}}}{{#vardefine:weekcounter|{{{weekcounter|}}}{{{monthcounter|}}}}}{|class="prettytable sortable"| |
|+{{{date}}}{{{ref|}}} | |+{{{date}}}{{{ref|}}} | ||
|- | |- | ||
− | !Position | + | !rowspan="2"|Position |
− | !Previous{{ | + | !rowspan="2"|Previous{{ |
− | #if:{{{ | + | #if:{{#var:hideformat}}||{{!}}{{!}}rowspan="2"{{!}}Format|}} |
− | !Name{{ | + | !rowspan="2"|Name{{ |
− | #if:{{{units|}}}|{{!}}{{!}}Units|}}{{ | + | #if:{{{units|}}}|{{!}}{{!}}rowspan="2"{{!}}Units|}}{{ |
− | #if:{{#var:weekcounter}}|{{!}}{{!}}style="font-size:0.8em; | + | #if:{{#var:weekcounter}}|{{!}}{{!}}colspan="2"{{!}}{{#if:{{{monthcounter|}}}|Months|Weeks}} in the chart |
+ | {{!}}- | ||
+ | !style="font-size:0.8em;"{{!}}Continuous | ||
+ | !style="font-size:0.8em;"{{!}}Total | ||
+ | {{!}}- | ||
+ | |}} | ||
|- | |- | ||
{{{1|}}} | {{{1|}}} | ||
− | |} | + | |}{{clear|format}}</includeonly><noinclude> |
− | + | Template for logging sales charts. To be used in conjunction with [[Template:SalesRow]]. | |
− | |||
− | + | The idea is to just log games in order of where they appeared in a chart - the template(s) should do all the calculations. Although you might have to save and re-load the page first, since it works with already stored records. | |
− | {{SalesChart|date=1992-01-01| | + | You can specify individual formats and units sold. Some charts like to list release dates and publishers and genres - we shouldn't need to redefine those here as we have proper game pages. |
+ | |||
+ | We will want to cover multi-format charts in full, even if 95% of it has nothing to do with Sega, as it gives scope to Sega game releases. If no Sega games chart, we might not have to care (although the calculations might end up being wrong, so maybe we do, and it's probably good practise anyway). | ||
+ | |||
+ | With this information filled in, details should appear automatically in [[:category:Reception|reception sub-pages]]. | ||
+ | |||
+ | ==Example== | ||
+ | <pre>{{SalesChart|date=1992-01-01|format=MD| | ||
+ | {{SalesRow|Desert Strike: Return to the Gulf}} | ||
+ | {{SalesRow|EA Hockey}} | ||
+ | {{SalesRow|PGA Tour Golf}} | ||
+ | {{SalesRow|Rolling Thunder 2}} | ||
+ | {{SalesRow|Wonder Boy in Monster World}} | ||
+ | {{SalesRow|Krusty's Super Fun House}} | ||
+ | {{SalesRow|Pit-Fighter}} | ||
+ | {{SalesRow|Arch Rivals}} | ||
+ | {{SalesRow|Kid Chameleon}} | ||
+ | {{SalesRow|Hellfire}} | ||
+ | |ref={{magref|segapro|9|10}} | ||
+ | }}</pre> | ||
+ | |||
+ | {{SalesChart|date=1992-01-01|format=MD| | ||
{{SalesRow|Desert Strike: Return to the Gulf}} | {{SalesRow|Desert Strike: Return to the Gulf}} | ||
{{SalesRow|EA Hockey}} | {{SalesRow|EA Hockey}} | ||
Line 31: | Line 56: | ||
}} | }} | ||
− | {{SalesChart|date=1992-02-02 | + | ==tests== |
+ | {{SalesChart|date=1992-02-02| | ||
{{SalesRow|Desert Strike: Return to the Gulf|format=MD}} | {{SalesRow|Desert Strike: Return to the Gulf|format=MD}} | ||
{{SalesRow|Kid Chameleon|format=SAT}} | {{SalesRow|Kid Chameleon|format=SAT}} | ||
Line 45: | Line 71: | ||
}} | }} | ||
− | {{SalesChart|date=1992-03-03|units=yes| | + | {{SalesChart|date=1992-03-03|format=MD|units=yes| |
{{SalesRow|Desert Strike: Return to the Gulf|units=1000}} | {{SalesRow|Desert Strike: Return to the Gulf|units=1000}} | ||
{{SalesRow|EA Hockey|units=999}} | {{SalesRow|EA Hockey|units=999}} | ||
Line 59: | Line 85: | ||
}} | }} | ||
− | {{SalesChart|date=1992-04-04 | + | {{SalesChart|date=1992-04-04|units=yes|weekcounter=yes| |
{{SalesRow|Krusty's Super Fun House|format=SMS|units=555}} | {{SalesRow|Krusty's Super Fun House|format=SMS|units=555}} | ||
{{SalesRow|Pit-Fighter|format=NG|units=444}} | {{SalesRow|Pit-Fighter|format=NG|units=444}} | ||
Line 72: | Line 98: | ||
|ref={{magref|segapro|9|10}} | |ref={{magref|segapro|9|10}} | ||
}} | }} | ||
− | [[Category:Templates]] | + | [[Category:Templates]]</noinclude> |
− | </noinclude> |
Latest revision as of 10:18, 5 May 2022
Template for logging sales charts. To be used in conjunction with Template:SalesRow.
The idea is to just log games in order of where they appeared in a chart - the template(s) should do all the calculations. Although you might have to save and re-load the page first, since it works with already stored records.
You can specify individual formats and units sold. Some charts like to list release dates and publishers and genres - we shouldn't need to redefine those here as we have proper game pages.
We will want to cover multi-format charts in full, even if 95% of it has nothing to do with Sega, as it gives scope to Sega game releases. If no Sega games chart, we might not have to care (although the calculations might end up being wrong, so maybe we do, and it's probably good practise anyway).
With this information filled in, details should appear automatically in reception sub-pages.
Example
{{SalesChart|date=1992-01-01|format=MD| {{SalesRow|Desert Strike: Return to the Gulf}} {{SalesRow|EA Hockey}} {{SalesRow|PGA Tour Golf}} {{SalesRow|Rolling Thunder 2}} {{SalesRow|Wonder Boy in Monster World}} {{SalesRow|Krusty's Super Fun House}} {{SalesRow|Pit-Fighter}} {{SalesRow|Arch Rivals}} {{SalesRow|Kid Chameleon}} {{SalesRow|Hellfire}} |ref={{magref|segapro|9|10}} }}
Position | Previous | Format | Name |
---|---|---|---|
1 | Desert Strike: Return to the Gulf | ||
2 | EA Hockey | ||
3 | PGA Tour Golf | ||
4 | Rolling Thunder 2 | ||
5 | Wonder Boy in Monster World | ||
6 | Krusty's Super Fun House | ||
7 | Pit-Fighter | ||
8 | Arch Rivals | ||
9 | Kid Chameleon | ||
10 | Hellfire |
tests
Position | Previous | Format | Name |
---|---|---|---|
1 | 1 |
Desert Strike: Return to the Gulf | |
2 | Kid Chameleon | ||
3 | 2 |
EA Hockey | |
4 | Krusty's Super Fun House | ||
5 | 3 |
PGA Tour Golf | |
6 | Pit-Fighter | ||
7 | Rolling Thunder 2 | ||
8 | Wonder Boy in Monster World | ||
9 | Arch Rivals | ||
10 | Hellfire |
Position | Previous | Format | Name | Units |
---|---|---|---|---|
1 | 1 |
Desert Strike: Return to the Gulf | 1000 | |
2 | 3 |
EA Hockey | 999 | |
3 | 5 |
PGA Tour Golf | 998 | |
4 | (re-entry) |
Rolling Thunder 2 | 700 | |
5 | (re-entry) |
Wonder Boy in Monster World | 600 | |
6 | (re-entry) |
Krusty's Super Fun House | 555 | |
7 | (re-entry) |
Pit-Fighter | 444 | |
8 | (re-entry) |
Arch Rivals | 33 | |
9 | (re-entry) |
Kid Chameleon | 20 | |
10 | (re-entry) |
Hellfire | 1 |
Position | Previous | Format | Name | Units | Weeks in the chart | |
---|---|---|---|---|---|---|
Continuous | Total | |||||
1 | (re-entry) |
Krusty's Super Fun House | 555 | 1 | 4 | |
2 | (re-entry) |
Pit-Fighter | 444 | 1 | 4 | |
3 | (re-entry) |
Arch Rivals | 33 | 1 | 4 | |
4 | (re-entry) |
Rolling Thunder 2 | 700 | 1 | 4 | |
5 | 2 |
EA Hockey | 999 | 4 | 4 | |
6 | 3 |
PGA Tour Golf | 998 | 4 | 4 | |
7 | 1 |
Desert Strike: Return to the Gulf | 1000 | 4 | 4 | |
8 | (re-entry) |
Wonder Boy in Monster World | 600 | 1 | 4 | |
9 | (re-entry) |
Kid Chameleon | 20 | 1 | 4 | |
10 | (re-entry) |
Hellfire | 1 | 1 | 4 |