Difference between revisions of "Module:Tennis events nav"
Jump to navigation
Jump to search
blackwiki>Izkala (ce) |
blackwiki>Izkala (Increase the spacing slightly) |
||
| Line 20: | Line 20: | ||
| colspan="2" | [[{prefix} {year} {tournament} – Rising Stars Invitational|Rising Stars]]]=]}, | | colspan="2" | [[{prefix} {year} {tournament} – Rising Stars Invitational|Rising Stars]]]=]}, | ||
["boysgirlssingles"] = {[=[|- | ["boysgirlssingles"] = {[=[|- | ||
| − | ! scope="row" style="text-align: right;" | Singles | + | ! scope="row" style="font-weight: normal; text-align: right;" | Singles |
| [[{prefix} {year} {tournament} – Men's Singles|men]] | | [[{prefix} {year} {tournament} – Men's Singles|men]] | ||
| [[{prefix} {year} {tournament} – Women's Singles|women]] | | [[{prefix} {year} {tournament} – Women's Singles|women]] | ||
| Line 26: | Line 26: | ||
| [[{prefix} {year} {tournament} – Girls' Singles|girls]] | | [[{prefix} {year} {tournament} – Girls' Singles|girls]] | ||
|- | |- | ||
| − | ! scope="row" style="text-align: right;" | Doubles | + | ! scope="row" style="font-weight: normal; text-align: right;" | Doubles |
| [[{prefix} {year} {tournament} – Men's Doubles|men]] | | [[{prefix} {year} {tournament} – Men's Doubles|men]] | ||
| [[{prefix} {year} {tournament} – Women's Doubles|women]]]=]}, | | [[{prefix} {year} {tournament} – Women's Doubles|women]]]=]}, | ||
["miamimasters"] = "boysgirlssingles", | ["miamimasters"] = "boysgirlssingles", | ||
["mixeddoubles"] = {[=[|- | ["mixeddoubles"] = {[=[|- | ||
| − | ! scope="row" style="text-align: right;" | Singles | + | ! scope="row" style="font-weight: normal; text-align: right;" | Singles |
| [[{prefix} {year} {tournament} – Men's Singles|men]] | | [[{prefix} {year} {tournament} – Men's Singles|men]] | ||
| [[{prefix} {year} {tournament} – Women's Singles|women]] | | [[{prefix} {year} {tournament} – Women's Singles|women]] | ||
|- | |- | ||
| − | ! scope="row" style="text-align: right;" | Doubles | + | ! scope="row" style="font-weight: normal; text-align: right;" | Doubles |
| [[{prefix} {year} {tournament} – Men's Doubles|men]] | | [[{prefix} {year} {tournament} – Men's Doubles|men]] | ||
| [[{prefix} {year} {tournament} – Women's Doubles|women]] | | [[{prefix} {year} {tournament} – Women's Doubles|women]] | ||
| Line 41: | Line 41: | ||
["mixed"] = "mixeddoubles", | ["mixed"] = "mixeddoubles", | ||
["australianopen"] = {[=[|- | ["australianopen"] = {[=[|- | ||
| − | ! scope="row" style="text-align: right;" | Singles | + | ! scope="row" style="font-weight: normal; text-align: right;" | Singles |
| [[{year} {tournament} – Men's Singles|men]] | | [[{year} {tournament} – Men's Singles|men]] | ||
| [[{year} {tournament} – Women's Singles|women]] | | [[{year} {tournament} – Women's Singles|women]] | ||
| Line 48: | Line 48: | ||
| [[{year} {tournament} – Girls' Singles|girls]] | | [[{year} {tournament} – Girls' Singles|girls]] | ||
|- | |- | ||
| − | ! scope="row" style="text-align: right;" | Doubles | + | ! scope="row" style="font-weight: normal; text-align: right;" | Doubles |
| [[{year} {tournament} – Men's Doubles|men]] | | [[{year} {tournament} – Men's Doubles|men]] | ||
| [[{year} {tournament} – Women's Doubles|women]] | | [[{year} {tournament} – Women's Doubles|women]] | ||
| Line 55: | Line 55: | ||
| [[{year} {tournament} – Girls' Doubles|girls]] | | [[{year} {tournament} – Girls' Doubles|girls]] | ||
|- | |- | ||
| − | ! scope="row" style="text-align: right;" | Legends | + | ! scope="row" style="font-weight: normal; text-align: right;" | Legends |
| [[{year} {tournament} – Men Legends' Doubles|men]] | | [[{year} {tournament} – Men Legends' Doubles|men]] | ||
| [[{year} {tournament} – Women Legends' Doubles|women]] | | [[{year} {tournament} – Women Legends' Doubles|women]] | ||
| [[{year} {tournament} – Legends Mixed|mixed]] | | [[{year} {tournament} – Legends Mixed|mixed]] | ||
|- | |- | ||
| − | ! scope="row" style="text-align: right;" | WC Singles | + | ! scope="row" style="font-weight: normal; text-align: right;" | WC Singles |
| [[{year} {tournament} – Wheelchair Men's Singles|men]] | | [[{year} {tournament} – Wheelchair Men's Singles|men]] | ||
| [[{year} {tournament} – Wheelchair Women's Singles|women]] | | [[{year} {tournament} – Wheelchair Women's Singles|women]] | ||
| [[{year} {tournament} – Wheelchair Quad Singles|quad]] | | [[{year} {tournament} – Wheelchair Quad Singles|quad]] | ||
|- | |- | ||
| − | ! scope="row" style="text-align: right;" | WC Doubles | + | ! scope="row" style="font-weight: normal; text-align: right;" | WC Doubles |
| [[{year} {tournament} – Wheelchair Men's Doubles|men]] | | [[{year} {tournament} – Wheelchair Men's Doubles|men]] | ||
| [[{year} {tournament} – Wheelchair Women's Doubles|women]] | | [[{year} {tournament} – Wheelchair Women's Doubles|women]] | ||
| Line 71: | Line 71: | ||
]=]}, | ]=]}, | ||
["frenchopen"] = {[=[|- | ["frenchopen"] = {[=[|- | ||
| − | ! scope="row" style="text-align: right;" | Singles | + | ! scope="row" style="font-weight: normal; text-align: right;" | Singles |
| [[{year} {tournament} – Men's Singles|men]] | | [[{year} {tournament} – Men's Singles|men]] | ||
| [[{year} {tournament} – Women's Singles|women]] | | [[{year} {tournament} – Women's Singles|women]] | ||
| Line 78: | Line 78: | ||
| [[{year} {tournament} – Girls' Singles|girls]] | | [[{year} {tournament} – Girls' Singles|girls]] | ||
|- | |- | ||
| − | ! scope="row" style="text-align: right;" | Doubles | + | ! scope="row" style="font-weight: normal; text-align: right;" | Doubles |
| [[{year} {tournament} – Men's Doubles|men]] | | [[{year} {tournament} – Men's Doubles|men]] | ||
| [[{year} {tournament} – Women's Doubles|women]] | | [[{year} {tournament} – Women's Doubles|women]] | ||
| Line 85: | Line 85: | ||
| [[{year} {tournament} – Girls' Doubles|girls]] | | [[{year} {tournament} – Girls' Doubles|girls]] | ||
|- | |- | ||
| − | ! scope="row" style="text-align: right;" | Legends | + | ! scope="row" style="font-weight: normal; text-align: right;" | Legends |
| [[{year} {tournament} – Legends Under 45 Doubles|−45]] | | [[{year} {tournament} – Legends Under 45 Doubles|−45]] | ||
| [[{year} {tournament} – Legends Over 45 Doubles|45+]] | | [[{year} {tournament} – Legends Over 45 Doubles|45+]] | ||
| [[{year} {tournament} – Women's Legends Doubles|women]] | | [[{year} {tournament} – Women's Legends Doubles|women]] | ||
|- | |- | ||
| − | ! scope="row" style="text-align: right;" | WC Singles | + | ! scope="row" style="font-weight: normal; text-align: right;" | WC Singles |
| [[{year} {tournament} – Wheelchair Men's Singles|men]] | | [[{year} {tournament} – Wheelchair Men's Singles|men]] | ||
| [[{year} {tournament} – Wheelchair Women's Singles|women]] | | [[{year} {tournament} – Wheelchair Women's Singles|women]] | ||
|- | |- | ||
| − | ! scope="row" style="text-align: right;" | WC Doubles | + | ! scope="row" style="font-weight: normal; text-align: right;" | WC Doubles |
| [[{year} {tournament} – Wheelchair Men's Doubles|men]] | | [[{year} {tournament} – Wheelchair Men's Doubles|men]] | ||
| [[{year} {tournament} – Wheelchair Women's Doubles|women]] | | [[{year} {tournament} – Wheelchair Women's Doubles|women]] | ||
]=]}, | ]=]}, | ||
["wimbledonchampionships"] = {[=[|- | ["wimbledonchampionships"] = {[=[|- | ||
| − | ! scope="row" style="text-align: right;" | Singles | + | ! scope="row" style="font-weight: normal; text-align: right;" | Singles |
| [[{year} {tournament} – Men's Singles|men]] | | [[{year} {tournament} – Men's Singles|men]] | ||
| [[{year} {tournament} – Women's Singles|women]] | | [[{year} {tournament} – Women's Singles|women]] | ||
| Line 106: | Line 106: | ||
| [[{year} {tournament} – Girls' Singles|girls]] | | [[{year} {tournament} – Girls' Singles|girls]] | ||
|- | |- | ||
| − | ! scope="row" style="text-align: right;" | Doubles | + | ! scope="row" style="font-weight: normal; text-align: right;" | Doubles |
| [[{year} {tournament} – Men's Doubles|men]] | | [[{year} {tournament} – Men's Doubles|men]] | ||
| [[{year} {tournament} – Women's Doubles|women]] | | [[{year} {tournament} – Women's Doubles|women]] | ||
| Line 113: | Line 113: | ||
| [[{year} {tournament} – Girls' Doubles|girls]] | | [[{year} {tournament} – Girls' Doubles|girls]] | ||
|- | |- | ||
| − | ! scope="row" style="text-align: right;" | Legends | + | ! scope="row" style="font-weight: normal; text-align: right;" | Legends |
| [[{year} {tournament} – Gentlemen's Invitation Doubles|men]] | | [[{year} {tournament} – Gentlemen's Invitation Doubles|men]] | ||
| [[{year} {tournament} – Ladies' Invitation Doubles|women]] | | [[{year} {tournament} – Ladies' Invitation Doubles|women]] | ||
| [[{year} {tournament} – Senior Gentlemen's Invitation Doubles|seniors]] | | [[{year} {tournament} – Senior Gentlemen's Invitation Doubles|seniors]] | ||
|- | |- | ||
| − | ! scope="row" style="text-align: right;" | WC Doubles | + | ! scope="row" style="font-weight: normal; text-align: right;" | WC Doubles |
| [[{year} {tournament} – Wheelchair Men's Doubles|men]] | | [[{year} {tournament} – Wheelchair Men's Doubles|men]] | ||
| [[{year} {tournament} – Wheelchair Women's Doubles|women]] | | [[{year} {tournament} – Wheelchair Women's Doubles|women]] | ||
]=]}, | ]=]}, | ||
["usopen"] = {[=[|- | ["usopen"] = {[=[|- | ||
| − | ! scope="row" style="text-align: right;" | Singles | + | ! scope="row" style="font-weight: normal; text-align: right;" | Singles |
| [[{year} {tournament} – Men's Singles|men]] | | [[{year} {tournament} – Men's Singles|men]] | ||
| [[{year} {tournament} – Women's Singles|women]] | | [[{year} {tournament} – Women's Singles|women]] | ||
| Line 130: | Line 130: | ||
| [[{year} {tournament} – Girls' Singles|girls]] | | [[{year} {tournament} – Girls' Singles|girls]] | ||
|- | |- | ||
| − | ! scope="row" style="text-align: right;" | Doubles | + | ! scope="row" style="font-weight: normal; text-align: right;" | Doubles |
| [[{year} {tournament} – Men's Doubles|men]] | | [[{year} {tournament} – Men's Doubles|men]] | ||
| [[{year} {tournament} – Women's Doubles|women]] | | [[{year} {tournament} – Women's Doubles|women]] | ||
| Line 137: | Line 137: | ||
| [[{year} {tournament} – Girls' Doubles|girls]] | | [[{year} {tournament} – Girls' Doubles|girls]] | ||
|- | |- | ||
| − | ! scope="row" style="text-align: right;" | Legends | + | ! scope="row" style="font-weight: normal; text-align: right;" | Legends |
| [[{year} {tournament} – Men's Champions Invitational|men]] | | [[{year} {tournament} – Men's Champions Invitational|men]] | ||
| [[{year} {tournament} – Women's Champions Invitational|women]] | | [[{year} {tournament} – Women's Champions Invitational|women]] | ||
| [[{year} {tournament} – Mixed Champions Invitational|mixed]] | | [[{year} {tournament} – Mixed Champions Invitational|mixed]] | ||
|- | |- | ||
| − | ! scope="row" style="text-align: right;" | WC Singles | + | ! scope="row" style="font-weight: normal; text-align: right;" | WC Singles |
| [[{year} {tournament} – Wheelchair Men's Singles|men]] | | [[{year} {tournament} – Wheelchair Men's Singles|men]] | ||
| [[{year} {tournament} – Wheelchair Women's Singles|women]] | | [[{year} {tournament} – Wheelchair Women's Singles|women]] | ||
| [[{year} {tournament} – Wheelchair Quad Singles|quad]] | | [[{year} {tournament} – Wheelchair Quad Singles|quad]] | ||
|- | |- | ||
| − | ! scope="row" style="text-align: right;" | WC Doubles | + | ! scope="row" style="font-weight: normal; text-align: right;" | WC Doubles |
| [[{year} {tournament} – Wheelchair Men's Doubles|men]] | | [[{year} {tournament} – Wheelchair Men's Doubles|men]] | ||
| [[{year} {tournament} – Wheelchair Women's Doubles|women]] | | [[{year} {tournament} – Wheelchair Women's Doubles|women]] | ||
| Line 153: | Line 153: | ||
]=]}, | ]=]}, | ||
["doublestwotourneys"] = {[=[|- | ["doublestwotourneys"] = {[=[|- | ||
| − | ! scope="row" style="text-align: right;" | Singles | + | ! scope="row" style="font-weight: normal; text-align: right;" | Singles |
| [[{prefix} {year} {tournament} – Singles|men]] | | [[{prefix} {year} {tournament} – Singles|men]] | ||
| [[{prefix} {year} {tournamentd} – Singles|women]] | | [[{prefix} {year} {tournamentd} – Singles|women]] | ||
|- | |- | ||
| − | ! scope="row" style="text-align: right;" | Doubles | + | ! scope="row" style="font-weight: normal; text-align: right;" | Doubles |
| [[{prefix} {year} {tournament} – Doubles|men]] | | [[{prefix} {year} {tournament} – Doubles|men]] | ||
| [[{prefix} {year} {tournamentd} – Doubles|women]]]=]}, | | [[{prefix} {year} {tournamentd} – Doubles|women]]]=]}, | ||
[""] = {[=[|- | [""] = {[=[|- | ||
| − | ! scope="row" style="text-align: right;" | Singles | + | ! scope="row" style="font-weight: normal; text-align: right;" | Singles |
| [[{prefix} {year} {tournament} – Men's Singles|men]] | | [[{prefix} {year} {tournament} – Men's Singles|men]] | ||
| [[{prefix} {year} {tournament} – Women's Singles|women]] | | [[{prefix} {year} {tournament} – Women's Singles|women]] | ||
|- | |- | ||
| − | ! scope="row" style="text-align: right;" | Doubles | + | ! scope="row" style="font-weight: normal; text-align: right;" | Doubles |
| [[{prefix} {year} {tournament} – Men's Doubles|men]] | | [[{prefix} {year} {tournament} – Men's Doubles|men]] | ||
| [[{prefix} {year} {tournament} – Women's Doubles|women]]]=]}} | | [[{prefix} {year} {tournament} – Women's Doubles|women]]]=]}} | ||
| Line 187: | Line 187: | ||
end | end | ||
| − | print('{| style="border-spacing: 0. | + | print('{| style="border-spacing: 0.6em 0; margin: auto; ' .. |
'text-align: center;"') | 'text-align: center;"') | ||
print(string.gsub(pullItem(args.type, default), "{(%a+)}", | print(string.gsub(pullItem(args.type, default), "{(%a+)}", | ||
Revision as of 01:10, 11 July 2015
| 40x40px | This module is rated as ready for general use. It has reached a mature form and is thought to be bug-free and ready for use wherever appropriate. It is ready to mention on help pages and other Wikipedia resources as an option for new users to learn. To reduce server load and bad output, it should be improved by sandbox testing rather than repeated trial-and-error editing. |
This module provides navigation between tennis tournament events; it is a component of {{Infobox tennis tournament event}}.
-- This module implements [[Template:Infobox tennis tournament event/events]].
-- [SublimeLinter luacheck-globals:mw]
local p = {}
local getBuffer, print, _ = require('Module:OutputBuffer')()
local STYLES = {
["singlesdoubles"] = {[=[|-
| [[{prefix} {year} {tournament} – Singles|Singles]]
| [[{prefix} {year} {tournamentd} – Doubles|Doubles]]]=]},
["1"] = "singlesdoubles",
["men"] = "singlesdoubles",
["mens"] = "singlesdoubles",
["women"] = "singlesdoubles",
["womens"] = "singlesdoubles",
["risingstarsinvitational"] = {[=[|-
| [[{prefix} {year} {tournament} – Singles|Singles]]
| [[{prefix} {year} {tournamentd} – Doubles|Doubles]]
|-
| colspan="2" | [[{prefix} {year} {tournament} – Rising Stars Invitational|Rising Stars]]]=]},
["boysgirlssingles"] = {[=[|-
! scope="row" style="font-weight: normal; text-align: right;" | Singles
| [[{prefix} {year} {tournament} – Men's Singles|men]]
| [[{prefix} {year} {tournament} – Women's Singles|women]]
| [[{prefix} {year} {tournament} – Boys' Singles|boys]]
| [[{prefix} {year} {tournament} – Girls' Singles|girls]]
|-
! scope="row" style="font-weight: normal; text-align: right;" | Doubles
| [[{prefix} {year} {tournament} – Men's Doubles|men]]
| [[{prefix} {year} {tournament} – Women's Doubles|women]]]=]},
["miamimasters"] = "boysgirlssingles",
["mixeddoubles"] = {[=[|-
! scope="row" style="font-weight: normal; text-align: right;" | Singles
| [[{prefix} {year} {tournament} – Men's Singles|men]]
| [[{prefix} {year} {tournament} – Women's Singles|women]]
|-
! scope="row" style="font-weight: normal; text-align: right;" | Doubles
| [[{prefix} {year} {tournament} – Men's Doubles|men]]
| [[{prefix} {year} {tournament} – Women's Doubles|women]]
| [[{prefix} {year} {tournament} – Mixed Doubles|mixed]]]=]},
["mixed"] = "mixeddoubles",
["australianopen"] = {[=[|-
! scope="row" style="font-weight: normal; text-align: right;" | Singles
| [[{year} {tournament} – Men's Singles|men]]
| [[{year} {tournament} – Women's Singles|women]]
|
| [[{year} {tournament} – Boys' Singles|boys]]
| [[{year} {tournament} – Girls' Singles|girls]]
|-
! scope="row" style="font-weight: normal; text-align: right;" | Doubles
| [[{year} {tournament} – Men's Doubles|men]]
| [[{year} {tournament} – Women's Doubles|women]]
| [[{year} {tournament} – Mixed Doubles|mixed]]
| [[{year} {tournament} – Boys' Doubles|boys]]
| [[{year} {tournament} – Girls' Doubles|girls]]
|-
! scope="row" style="font-weight: normal; text-align: right;" | Legends
| [[{year} {tournament} – Men Legends' Doubles|men]]
| [[{year} {tournament} – Women Legends' Doubles|women]]
| [[{year} {tournament} – Legends Mixed|mixed]]
|-
! scope="row" style="font-weight: normal; text-align: right;" | WC Singles
| [[{year} {tournament} – Wheelchair Men's Singles|men]]
| [[{year} {tournament} – Wheelchair Women's Singles|women]]
| [[{year} {tournament} – Wheelchair Quad Singles|quad]]
|-
! scope="row" style="font-weight: normal; text-align: right;" | WC Doubles
| [[{year} {tournament} – Wheelchair Men's Doubles|men]]
| [[{year} {tournament} – Wheelchair Women's Doubles|women]]
| [[{year} {tournament} – Wheelchair Quad Doubles|quad]]
]=]},
["frenchopen"] = {[=[|-
! scope="row" style="font-weight: normal; text-align: right;" | Singles
| [[{year} {tournament} – Men's Singles|men]]
| [[{year} {tournament} – Women's Singles|women]]
|
| [[{year} {tournament} – Boys' Singles|boys]]
| [[{year} {tournament} – Girls' Singles|girls]]
|-
! scope="row" style="font-weight: normal; text-align: right;" | Doubles
| [[{year} {tournament} – Men's Doubles|men]]
| [[{year} {tournament} – Women's Doubles|women]]
| [[{year} {tournament} – Mixed Doubles|mixed]]
| [[{year} {tournament} – Boys' Doubles|boys]]
| [[{year} {tournament} – Girls' Doubles|girls]]
|-
! scope="row" style="font-weight: normal; text-align: right;" | Legends
| [[{year} {tournament} – Legends Under 45 Doubles|−45]]
| [[{year} {tournament} – Legends Over 45 Doubles|45+]]
| [[{year} {tournament} – Women's Legends Doubles|women]]
|-
! scope="row" style="font-weight: normal; text-align: right;" | WC Singles
| [[{year} {tournament} – Wheelchair Men's Singles|men]]
| [[{year} {tournament} – Wheelchair Women's Singles|women]]
|-
! scope="row" style="font-weight: normal; text-align: right;" | WC Doubles
| [[{year} {tournament} – Wheelchair Men's Doubles|men]]
| [[{year} {tournament} – Wheelchair Women's Doubles|women]]
]=]},
["wimbledonchampionships"] = {[=[|-
! scope="row" style="font-weight: normal; text-align: right;" | Singles
| [[{year} {tournament} – Men's Singles|men]]
| [[{year} {tournament} – Women's Singles|women]]
|
| [[{year} {tournament} – Boys' Singles|boys]]
| [[{year} {tournament} – Girls' Singles|girls]]
|-
! scope="row" style="font-weight: normal; text-align: right;" | Doubles
| [[{year} {tournament} – Men's Doubles|men]]
| [[{year} {tournament} – Women's Doubles|women]]
| [[{year} {tournament} – Mixed Doubles|mixed]]
| [[{year} {tournament} – Boys' Doubles|boys]]
| [[{year} {tournament} – Girls' Doubles|girls]]
|-
! scope="row" style="font-weight: normal; text-align: right;" | Legends
| [[{year} {tournament} – Gentlemen's Invitation Doubles|men]]
| [[{year} {tournament} – Ladies' Invitation Doubles|women]]
| [[{year} {tournament} – Senior Gentlemen's Invitation Doubles|seniors]]
|-
! scope="row" style="font-weight: normal; text-align: right;" | WC Doubles
| [[{year} {tournament} – Wheelchair Men's Doubles|men]]
| [[{year} {tournament} – Wheelchair Women's Doubles|women]]
]=]},
["usopen"] = {[=[|-
! scope="row" style="font-weight: normal; text-align: right;" | Singles
| [[{year} {tournament} – Men's Singles|men]]
| [[{year} {tournament} – Women's Singles|women]]
|
| [[{year} {tournament} – Boys' Singles|boys]]
| [[{year} {tournament} – Girls' Singles|girls]]
|-
! scope="row" style="font-weight: normal; text-align: right;" | Doubles
| [[{year} {tournament} – Men's Doubles|men]]
| [[{year} {tournament} – Women's Doubles|women]]
| [[{year} {tournament} – Mixed Doubles|mixed]]
| [[{year} {tournament} – Boys' Doubles|boys]]
| [[{year} {tournament} – Girls' Doubles|girls]]
|-
! scope="row" style="font-weight: normal; text-align: right;" | Legends
| [[{year} {tournament} – Men's Champions Invitational|men]]
| [[{year} {tournament} – Women's Champions Invitational|women]]
| [[{year} {tournament} – Mixed Champions Invitational|mixed]]
|-
! scope="row" style="font-weight: normal; text-align: right;" | WC Singles
| [[{year} {tournament} – Wheelchair Men's Singles|men]]
| [[{year} {tournament} – Wheelchair Women's Singles|women]]
| [[{year} {tournament} – Wheelchair Quad Singles|quad]]
|-
! scope="row" style="font-weight: normal; text-align: right;" | WC Doubles
| [[{year} {tournament} – Wheelchair Men's Doubles|men]]
| [[{year} {tournament} – Wheelchair Women's Doubles|women]]
| [[{year} {tournament} – Wheelchair Quad Doubles|quad]]
]=]},
["doublestwotourneys"] = {[=[|-
! scope="row" style="font-weight: normal; text-align: right;" | Singles
| [[{prefix} {year} {tournament} – Singles|men]]
| [[{prefix} {year} {tournamentd} – Singles|women]]
|-
! scope="row" style="font-weight: normal; text-align: right;" | Doubles
| [[{prefix} {year} {tournament} – Doubles|men]]
| [[{prefix} {year} {tournamentd} – Doubles|women]]]=]},
[""] = {[=[|-
! scope="row" style="font-weight: normal; text-align: right;" | Singles
| [[{prefix} {year} {tournament} – Men's Singles|men]]
| [[{prefix} {year} {tournament} – Women's Singles|women]]
|-
! scope="row" style="font-weight: normal; text-align: right;" | Doubles
| [[{prefix} {year} {tournament} – Men's Doubles|men]]
| [[{prefix} {year} {tournament} – Women's Doubles|women]]]=]}}
local function pullItem(value, default)
value = value and string.lower(string.gsub(value, "%A", ""))
if type(STYLES[value]) == "string" then
value = STYLES[value]
end
if STYLES[value] then
return STYLES[value][1]
else
return STYLES[default][1]
end
end
function p._main(args)
local default = ""
if args[2] ~= args[3] then
default = "doublestwotourneys"
end
print('{| style="border-spacing: 0.6em 0; margin: auto; ' ..
'text-align: center;"')
print(string.gsub(pullItem(args.type, default), "{(%a+)}",
{prefix = args.prefix or "", year = args[1], tournament = args[2],
tournamentd = args[3] or args[2]}))
print("|}")
return getBuffer("\n")
end
function p.main(frame)
local args = require("Module:Arguments").getArgs(frame)
return p._main(args)
end
return p