2,662 bytes added
, 05:15, 16 July 2021
{{Module rating|protected}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
{{sandbox other||{{ombox|text=To test changes, please do so at '''[[Module:{{PAGENAME}}/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:
<pre>
["COMMON NAME1/ABBRV"] = {"TEAM CODE", "School name", "Men's team", "Women's team", "Boys' team", "Girls' team", "COMMON NAME2"},</pre>
For teams with multiple former school names:
<pre>
["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",
},</pre>
Aliasing – backward compatibility is supported for teams' whose institution is elevated from college to university status. The {{code|OLD CODE}} references to the {{code|COMMON NAME1/ABBRV}} (or vice-versa) hence a team may have multiple codes:
<pre>["OLD CODE"] = "COMMON NAME1/ABBRV",</pre>
Trailing comma in each element is significant.
== Examples ==
For common structure, omit {{code|COMMON NAME}} if team abbreviation and common name are matched/equal.
<pre>["UST"] = {"UST", "University of Santo Tomas", "UST Growling Tigers", "UST Tigresses", "UST Tiger Cubs", "UST Junior Tigresses"},</pre>
Due to limitations of keyboard for special characters, {{code|COMMON NAME2}} may only be added:
<pre>["Mapua"] = {"MUN", "..", "..", "..", "..", "..", "Mapúa"},</pre>
For teams with multiple former school names:
<pre>
["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"
},</pre>
For aliases:
<pre>
["MIT"] = "Mapua",
["SBC"] = "San Beda",</pre>
== 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 ==
{{#ifeq:{{SUBPAGENAME}}|sandbox
|{{#invoke:PHL sports team/testtable|testtable|league=collegiate/sandbox}}
|{{#invoke:PHL sports team/testtable|testtable}}
}}
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<!-- Categories below this line, please; interwikis at Wikidata -->
}}</includeonly>