Module:DartsRankings/data/PDC Rankings/doc explained

Usage

<nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|''function_name''}}

The template is meant to be used on the infoboxes of each player, which automatically updates their OoM ranking when this page is updated. The name typed in the first argument (eg <nowiki> {{PDC Rankings|Michael van Gerwen}}</nowiki>) should match the spelling - including lack of accent marks - with the PDC website. New players should be added at with the appropriate naming conventions.

Updating

The main template page is not meant to be updated. The rankings should be updated at .

To update the rankings:

  1. Adjust the day and month (along with the year if necessary) of the current rankings.
  2. Adjust the day and month (along with the year if necessary) of the previous rankings (the old current date).
  3. Copy and paste the rankings from "data.rankings" to "rankingsOld" section (the lower one).
  4. Paste in the new rankings data to the "data.rankings" section (upper one).

Generating rankings code

All positions can be quickly updated using a spreadsheet. For example, after copying the entire ranking list from https://www.pdc.tv/order-of-merit/pdc-order-merit, the following formula can be used in an external spreadsheet to generate the code necessary to update the data page (given the rankings begin in cell A1):

= "{ """&B1&""", "&A1&", """&C1&""" }," 

Then you can copy & past all 128+ rows into the rankings module.