Content deleted Content added
expand doc |
Transcluded the TM:Documentation subpage template directly so it adds Category:Module documentation pages. See phab:T289404. |
||
(8 intermediate revisions by 2 users not shown) | |||
Line 1:
{{documentation subpage}}
{{Module rating|
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
This module implements {{t|Top
== Usage ==
<code><nowiki>{{</nowiki>#invoke:ATP rankings|createNavbox|singles|''IOC country code''|''nationality''<nowiki>}}</nowiki></code>
The template takes an [[List of IOC country codes|IOC country code]] and the nationality based on that code, e.g. <code>ITA</code> and <code>Italian</code>. The former is used to call the relevant subgroup from the [[Module:ATP rankings/data/singles.json|module's JSON file]], while the latter is used in the title of the navbox. If using {{t|Top ten male singles tennis players by country}}, only the country code is needed.
==Tracking category for forced disambiguation==
The bot, and therefore this module, are pulling names from the PDF provided by the ATP ([https://www.atptour.com/en/media/rankings-and-stats ATP Rankings and Info Reports]). Thus, they will not always meet the naming and page conventions of the English Wikipedia. If a name is a disambiguation page (or a redirect to one) and the disambiguator <code>(tennis)</code> is insufficient to link to the appropriate page, it will be listed at {{clc|ATP rankings call with disambiguated page title}}. The links can be corrected by adding an exception to [[Module:ATP rankings/data/overrides.json]]. This is also true if the module is linking to the wrong person (e.g. if there is a primary target at the base page name and a disambiguator needs to be manually added).
<includeonly>{{Sandbox other||
|