Module:SportsRankings/doc

MyWikiBiz, Author Your Legacy — Thursday December 12, 2024
Jump to navigationJump to search

This is the documentation page for Module:SportsRankings

Template:Module rating

Module to display sports rankings of countries in various sports. The data on the rankings is held in module subpages so the lists can be updated in one location.

Data subpages

Template:Div col

Template:Div col end

Templates for single country rank (with flag and change):

Template:Col-2Template:Col-2Template:Col-endTemplate to generate rankings table:

Usage

  • Show ranking of named country with change:

{{#invoke:SportsRankings|main|country|mdy}}

  • List ranking from start ranking to end ranking (default: 1-10):

{{#invoke:SportsRankings|list|FIFA World Rankings|first|last}}

  • List ranking from for names country with number of countries above and below:

{{#invoke:SportsRankings|list2|FIFA World Rankings|country name|number to display above and below named country}}

  • Show ranking of a confederation:

{{#invoke:SportsRankings|list|FIH World Rankings|first|last|select=confederation|rank_header=FIH}}

Country examples:

Country examples Code Output
FIFA World Rankings for France {{#invoke:SportsRankings|main |FIFA World Rankings|FRA}} Template:FIFA World Rankings/sandbox
World Football Elo Ratings for France {{#invoke:SportsRankings|main |World Football Elo Ratings|France}} Template:World Football Elo Ratings/sandbox
FIBA World Rankings for USA {{#invoke:SportsRankings|main |FIBA World Rankings|USA}} Template:FIBA World Rankings/sandbox
List example Output
FIFA World Rankings table (1-5) {{#invoke:SportsRankings|list |FIFA World Rankings |1 |5 }} Lua error: expandTemplate: template "refn" does not exist.
FIBA World Rankings table (1-5) {{#invoke:SportsRankings|list |FIBA World Rankings |1 |5 }} Lua error: expandTemplate: template "refn" does not exist.
FIBA Women's World Rankings table (1-5) {{#invoke:SportsRankings|list |FIBA Women's World Rankings |1 |5 }} Lua error in package.lua at line 80: module 'Module:SportsRankings/data/FIBA Women's World Rankings' not found.
FIFA Women's World Rankings (1-5): {{#invoke:SportsRankings|list |FIFA Women's World Rankings |1 |5 }} Lua error: expandTemplate: template "refn" does not exist.
FIH World Rankings by confederation {{#invoke:SportsRankings|list |FIH World Rankings |1 |65 |select=AfHF |rankheader=FIH }} Lua error: expandTemplate: template "refn" does not exist.
World Football Elo Ratings(1-5): {{#invoke:SportsRankings|list |World Football Elo Ratings |1 |5 }} Lua error: expandTemplate: template "refn" does not exist.
UEFA Coefficient Rankings (+/-2): {{#invoke:SportsRankings|list2 |UEFA Coefficient Rankings |Luxembourg |2 }} Lua error: expandTemplate: template "refn" does not exist.
IIHF World Rankings (1-5)

(with optional caption parameter):
{{#invoke:SportsRankings|list |IIHF World Rankings |1 |5 caption=Men's IIHF World Rankings (INSERT_UPDATE_DATE) }} Lua error: expandTemplate: template "refn" does not exist.
IIHF Women's World Rankings (1-5)

(with optional caption parameter):
{{#invoke:SportsRankings|list |IIHF Women's World Rankings |1 |5 caption=Women's IIHF World Rankings (INSERT_UPDATE_DATE) }} Lua error in package.lua at line 80: module 'Module:SportsRankings/data/IIHF Women's World Ranking' not found.


Usage