Template:Jam occurrence leaderboard/query: Difference between revisions

From VNDev Wiki
m 0 indexed, not 1 indexed
fixing the subquery outputs
Line 13: Line 13:
<!-- 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}}} = 0 | 0 |  
|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=|headers=hide|mainlabel=-|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=|headers=hide|mainlabel=-|offset={{#expr: {{{1}}}-1}} }}
       | <!--At least two way tie; now test for three way tie-->
       | <!--At least two way tie; now test for three way tie-->
         {{#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=|headers=hide|mainlabel=-|offset={{{1}}} }}
           = {{#ask: [[Jam occurrence:+]] |?Has entries|format=plainlist|sort=Has entries|order=descending|limit=1|link=none|searchlabel=|offset={{#expr: {{{1}}}-2}} }}
           = {{#ask: [[Jam occurrence:+]] |?Has entries#-|format=plainlist|sort=Has entries|order=descending|limit=1|link=none|searchlabel=|headers=hide|mainlabel=-|offset={{#expr: {{{1}}}-2}} }}
           | Three-way tie
           | Three-way tie
           | Two-way tie
           | Two-way tie

Revision as of 16:59, 24 January 2025