Difference between revisions of "SalesRow/GetLast"

From Sega Retro

Line 6: Line 6:
 
|format=template
 
|format=template
 
|template=SalesRow/GetLast/Cargo
 
|template=SalesRow/GetLast/Cargo
}}</div></includeonly><noinclude>
+
}}{{#vardefine:lastgamedate|{{#var:lastdate}}}}
 +
 
 +
{{#cargo_query:
 +
table=salescharts
 +
|fields=position,date
 +
|where=chartname="{{{chartname|{{PAGENAME}}}}}" and date < {{#var:currentdate}}
 +
|order by=date DESC
 +
|format=template
 +
|template=SalesRow/GetLast/Cargo
 +
}}
 +
 
 +
{{#ifexpr:{{#var:lastgamedate}} > 0|{{#ifeq:{{#var:lastdate}}|{{#var:lastgamedate}}||{{#vardefine:last|re-entry}}}}|}}
 +
</div></includeonly><noinclude>
  
  

Revision as of 15:30, 4 May 2022





20020600