Module:PHL sports team/collegiate: Difference between revisions
en>Howard the Duck mNo edit summary |
m (1 revision imported) |
(No difference)
|
Latest revision as of 02:13, 18 January 2023
File:Information icon4.svg | To test changes, please do so at Module:PHL sports team/collegiate/sandbox first, and then implement them here. |
This is the data module used by Module:PHL sports team.
Data structure
Most lines will be of the following form:
["COMMON NAME1/ABBRV"] = {"TEAM CODE", "School name", "Men's team", "Women's team", "Boys' team", "Girls' team", "COMMON NAME2"},
For teams with multiple former school names:
["COMMON NAME1/ABBRV"] = {"TEAM CODE", "School name", "Men's team", "Women's team", "Boys' team", "Girls' team", "COMMON NAME2" ["SCHOOL ABBRV1"] = "Former school name 1", ["SCHOOL ABBRV2"] = "Former school name 2", ["SCHOOL ABBRV3"] = "Former school name 3", },
Aliasing – backward compatibility is supported for teams' whose institution is elevated from college to university status. The <syntaxhighlight lang="text" class="" id="" style="" inline="1">OLD CODE</syntaxhighlight> references to the <syntaxhighlight lang="text" class="" id="" style="" inline="1">COMMON NAME1/ABBRV</syntaxhighlight> (or vice-versa) hence a team may have multiple codes:
["OLD CODE"] = "COMMON NAME1/ABBRV",
Trailing comma in each element is significant.
Examples
For common structure, omit <syntaxhighlight lang="text" class="" id="" style="" inline="1">COMMON NAME</syntaxhighlight> if team abbreviation and common name are matched/equal.
["UST"] = {"UST", "University of Santo Tomas", "UST Growling Tigers", "UST Tigresses", "UST Tiger Cubs", "UST Junior Tigresses"},
Due to limitations of keyboard for special characters, <syntaxhighlight lang="text" class="" id="" style="" inline="1">COMMON NAME2</syntaxhighlight> may only be added:
["Mapua"] = {"MUN", "..", "..", "..", "..", "..", "Mapúa"},
For teams with multiple former school names:
["Mapua"] = {"MUN", "Mapúa University", "..", "..", "..", "..", "Mapúa", ["MHSS"] = "Malayan High School of Science", ["MIT"] = "Mapúa Institute of Technology" }, ["San Beda"] = {"SBU", "San Beda University", "..", "..", "..", "..", ["SBC"] = "San Beda College", ["SBC-R"] = "San Beda College–Rizal", ["SBU-R"] = "San Beda University–Rizal" },
For aliases:
["MIT"] = "Mapua", ["SBC"] = "San Beda",
Warning
Be very careful when updating this module, as it is used in a large number of articles. Please test any changes in Module:PHL sports team/collegiate/sandbox first.
Test table
return { -- UAAP -- ["Adamson"] = {"ADU", "Adamson University", "Adamson Soaring Falcons","Adamson Lady Falcons","Adamson Baby Falcons","Adamson Lady Baby Falcons"}, ["Ateneo"] = {"ADM", "Ateneo de Manila University", "Ateneo Blue Eagles", "Ateneo Lady Eagles", "Ateneo Blue Eaglets", "Ateneo Lady Eaglets", ["ADM"] = "Ateneo de Manila" }, ["La Salle"] = {"DLS", "De La Salle University", "De La Salle Green Archers", "De La Salle Lady Archers", "DLSZ Junior Archers", "DLSZ Junior Lady Archers", ["DLSC"] = "De La Salle College", ["DLSZ"] = "De La Salle Zobel", ["LSGH"] = "La Salle Green Hills" }, ["FEU"] = {"FEU", "Far Eastern University", "FEU Tamaraws", "FEU Lady Tamaraws", "FEU–D Baby Tamaraws", "FEU–D Lady Baby Tamaraws", ["IOA"] = "Institute of Accounts", ["FEU-FERN"] = "Far Eastern University–FERN College", ["FEU-D"] = "Far Eastern University–Diliman" }, ["NU"] = {"NUI", "National University", "NU Bulldogs", "NU Lady Bulldogs", "NSNU Bullpups", "NSNU Lady Bullpups", ["NSNU"] = "Nazareth School of National University" }, ["UE"] = {"UEA", "University of the East", "UE Red Warriors", "UE Lady Warriors", "UE Junior Warriors", "UE Junior Lady Warriors"}, ["UP"] = {"UPD", "University of the Philippines Diliman", "UP Fighting Maroons", "UP Lady Maroons", "UPIS Junior Maroons", "UPIS Junior Lady Maroons", ["UPM"] = "University of the Philippines Manila", ["UPIS"] = "UP Integrated School" }, ["UST"] = {"UST", "University of Santo Tomas", "UST Growling Tigers", "UST Tigresses", "UST Tiger Cubs", "UST Junior Tigresses"}, -- NCAA -- ["Arellano"] = {"AUN", "Arellano University", "Arellano Chiefs", "Arellano Lady Chiefs", "Arellano Braves", "Arellano Lady Braves"}, ["CSB"] = {"CSB", "De La Salle–College of Saint Benilde", "Benilde Blazers", "Benilde Lady Blazers", "La Salle Greenies", "La Salle Lady Greenies", "Benilde", ["LSGH"] = "La Salle Green Hills" }, ["EAC"] = {"EAC", "Emilio Aguinaldo College", "EAC Generals", "EAC Lady Generals", "EAC–ICA Brigadiers", "EAC–ICA Lady Brigadiers", ["EAC-ICA"] = "EAC–Immaculate Conception Academy" }, ["JRU"] = {"JRU", "José Rizal University", "JRU Heavy Bombers", "JRU Lady Bombers", "JRU Light Bombers", "JRU Light Lady Bombers", ["JRC"] = "José Rizal College" }, ["Letran"] = {"CSJ", "Colegio de San Juan de Letran", "Letran Knights", "Letran Lady Knights", "Letran Squires", "Letran Lady Squires"}, ["Lyceum"] = {"LPU", "Lyceum of the Philippines University", "Lyceum Pirates", "Lyceum Lady Pirates", "Lyceum Junior Pirates", "Lyceum Junior Lady Pirates"}, ["Mapua"] = {"MUN", "Mapúa University", "Mapúa Cardinals", "Mapúa Lady Cardinals", "Malayan Red Robins", "Malayan Lady Red Robins", "Mapúa", ["MHSS"] = "Malayan High School of Science", ["MIT"] = "Mapúa Institute of Technology" }, ["San Beda"] = {"SBU", "San Beda University", "San Beda Red Lions", "San Beda Red Lionesses", "San Beda Red Cubs", "San Beda Red Lioness Cubs", ["SBC"] = "San Beda College", ["SBC-R"] = "San Beda College–Rizal", ["SBU-R"] = "San Beda University–Rizal" }, ["SSC-R"] = {"SSC", "San Sebastian College–Recoletos", "San Sebastian Stags", "San Sebastian Lady Stags", "San Sebastian Staglets", "San Sebastian Lady Staglets", "San Sebastian"}, ["UPHD"] = {"UPH", "University of Perpetual Help System DALTA", "Perpetual Altas", "Perpetual Lady Altas", "Perpetual Junior Altas", "Perpetual Junior Lady Altas", "Perpetual", ["PHCR"] = "Perpetual Help College of Rizal", ["UPHR"] = "University of Perpetual Help Rizal" }, -- Aliases, e.g. former names of colleges elevated to university status, or teams with multiple former names -- ["ADMU"] = "Ateneo", ["AU"] = "Arellano", ["CSJL"] = "Letran", ["DLSU"] = "La Salle", ["DLSZ"] = "La Salle", ["MIT"] = "Mapua", ["MU"] = "Mapua", ["SBC"] = "San Beda", ["USJR"] = "USJ-R", -- Miscellaneous -- ["AUF"] = {"AUF", "Angeles University Foundation", "AUF Great Danes", "AUF Lady Danes", "AUF Baby Danes"}, ["CEU"] = {"CEU", "Centro Escolar University", "CEU Scorpions", "CEU Lady Scorpions", "CEU Baby Scorpions"}, ["Don Bosco"] = {"DBC", "Don Bosco Technical College", "Don Bosco Grey Wolves", nil, "Don Bosco Baby Grey Wolves"}, ["PCU"] = {"PCU", "Philippine Christian University", "PCU Dolphins", "PCU Lady Dolphins", "PCU Baby Dolphins"}, ["SWU"] = {"SWU", "Southwestern University", "SWU Cobras", "SWU Lady Cobras"}, ["TIP"] = {"TIP", "Technological Institute of the Philippines", "TIP Engineers", "TIP Lady Engineers"}, ["USLS"] = {"USL", "University of St. La Salle", "USLS Stingers", "USLS Lady Stingers"}, ["USJ-R"] = {"USJ", "University of San Jose–Recoletos", "USJ–R Jaguars", "USJ–R Lady Jaguars"} }