Template:Jam occurrence leaderboard/query: Difference between revisions

From VNDev Wiki
okay, let's see whether this logic works
 
m 0 indexed, not 1 indexed
Line 12: Line 12:
|named args=yes
|named args=yes
<!-- The below section calculates the correct rank number by comparing to prior items  -->
<!-- The below section calculates the correct rank number by comparing to prior items  -->
|userparam={{#ifexpr: {{{1}}} = 1 | 1 |  
|userparam={{#ifexpr: {{{1}}} = 0 | 0 |  
     {{#ifexpr: {{#ask: [[Jam occurrence:+]] |?Has entries|format=plainlist|sort=Has entries|order=descending|limit=1|link=none|searchlabel=|offset={{{1}}} }}
     {{#ifexpr: {{#ask: [[Jam occurrence:+]] |?Has entries|format=plainlist|sort=Has entries|order=descending|limit=1|link=none|searchlabel=|offset={{{1}}} }}
       = {{#ask: [[Jam occurrence:+]] |?Has entries|format=plainlist|sort=Has entries|order=descending|limit=1|link=none|searchlabel=|offset={{#expr: {{{1}}}-1}} }}
       = {{#ask: [[Jam occurrence:+]] |?Has entries|format=plainlist|sort=Has entries|order=descending|limit=1|link=none|searchlabel=|offset={{#expr: {{{1}}}-1}} }}

Revision as of 16:44, 24 January 2025