Template:Infobox golfer/highest ranking/doc

Usage
This template contains a list of the highest ranking reached by golfers in the OWGR. We are currently restricting ourselves to those who've reached the top 100 of the OWGR. See the discussions at Wikipedia talk:WikiProject Golf. Do not add data for those who have never reached the top 100 or data for other golf rankings (eg women, amateurs)

The list of those who've reached the top 100 is intended to be complete, although some golfers from the 1980s/1990s have their entries commented out. This is either because their peak ranking is uncertain or because it is felt that, for those golfers past their prime in 1986, the inclusion is confusing. If you find any missing entries or errors in the data please notify the golf project (via the talk page).

Each line takes the form "|Golfers Name=text". The "Golfer Name" must match the "name" field in the player's infobox. Sometimes the "name" field contains additional text after the player's name: text after the first "<" is stripped away before any comparison is done. To aid efficiency, players are sorted into sections by the first character of their name. So Adam Scott appears in the "A" section. Players with names starting with Q,U,X,Z (eg Zach Johnson) or anything else (eg Álvaro Quirós), appear in a section at the end. Within a section the order of players is unimportant, although generally players are sorted in order of their highest ranking. As noted above some players are commented out. These players have entries starting " (683 weeks)

which appears in his infobox as:

1 (June 15, 1997) (683 weeks)

The current number 1 has the addition of an "as of" date:

|Dustin Johnson=1 (February 19, 2017) (99 weeks, as of 2020-10-11)

which appears in his infobox as:

1 (February 19, 2017) (99 weeks, as of 2020-10-11)


 * Action required:
 * If the number 1 is the same as the previous week - Increment the number of weeks
 * If the number 1 has changed to a player who has previously been number 1 - Increment the number of weeks for the new number 1. Remove the "as of" section from the previous number 1 and add it to the new number 1
 * If the number 1 has changed to a player who has never been number 1 - Add a "1 week" section to the new number 1. Remove the "as of" section from the previous number 1 and add it to the new number 1

2. Other players in the top 100
Each player needs to be checked to see if they have reached a new high. Only players who have moved up in the rankings need to be checked; indicated by a green chevron. If using http://www.owgr.com/ranking you can click on the player to go their individual page, which has the player's current and best rankings. If the current and best are the same the player will probably have reached a new high, although it may be that they have equalled the previous high (in which case no action is required). A player's previous high can be checked by searching for their entry in this file - eg using Ctrl-F.


 * Action required:
 * If the player already has an entry - update the highest ranking, the date (a Sunday) and the reference. The date and the accessdate in the reference should use the appropriate style (dmy or mdy for US and Canada). All players who have new highs in a particular week will have the same date and reference, so, for the second player you find, these can be copied from the first player (again using the appropriate date style: dmy or mdy).
 * If the player doesn't currently have an entry - add an entry to the appropriate section, based on the first character of their name. The easiest way is to copy the entry from a player who has also reached a new high that week and then make the appropriate changes. The player's "name" must match the "name" field in the player's infobox.

3. Update the "as of" dates
All the "as of" dates need updating by a week, so that eg "{{Date|2020-10-11" becomes "{{Date|2020-10-18" throughout the list. To do this reliably it is best to copy the file to an external utilty ("Notepad" is ideal for Windows users), make the change globally (Edit->Replace->Replace All) and then copy it back.

4. Save and check
It is best to use the "Show preview" option first. This will detect many syntax problems. Add an appropriate edit summary. Check a few player articles, especially those you have changed. You may need to "purge" pages to show the changes.

Annual update
Only players who have reached their highest ranking in the last 5 years or so, have "as of" sections. So every now and then the "as of" sections need removing for players who reached their ranking more than 5 years ago.