1,861 bytes added
, 05:15, 16 July 2021
{{Module rating|beta}}
<!-- 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>
["TEAM CODE"] = {"Team full name", "Team short name"},</pre>
For teams whose article is [[WP:DAB|disambiguated]]:
<pre>
["TEAM CODE"] = {"Team full name", "Team short name", dab="Disambiguated title"},</pre>
For teams with multiple or historical names (where {{code|XXXX}} represents the 4-digit start year and {{code|YYYY}} represents the 4-digit end year):
<pre>
["TEAM CODE"] = {"Team full name", "Team short name",
["XXXXthruYYYY"] = "Name 1",
["XXXXthruYYYY"] = "Name 2",
["XXXXthruYYYY"] = "Name 3",
..
["XXXXthruYYYY"] = "Name n",
},</pre>
Aliasing – a team having more than one code is also supported:
<pre>["ALIAS CODE"] = "TEAM CODE",</pre>
Trailing comma in each element is significant.
== Advanced structure ==
{{code|Team full name}} must match to the team's article title. For case of [[WP:DAB|disambiguation]], for example:
<pre>ALA = {"Alaska Aces", "Alaska", dab = "PBA"},"</pre>
Sample demo: {{demo-inline|<nowiki>{{PBA team|ALA}}</nowiki>}}
Instead of linking to ambiguous article [[Alaska Aces]], the {{code|dab}} parameter will appropriately link it to [[Alaska Aces (PBA)]].
== Test table ==
{{#ifeq:{{SUBPAGENAME}}|sandbox
|{{#invoke:PHL sports team/testtable|main|league=PBA/sandbox|tname=PBA team}}
|{{#invoke:PHL sports team/testtable|main|league=PBA|tname=PBA team}}
}}
<includeonly>{{sandbox other | |
<!-- Categories below this line, please; interwikis at Wikidata -->
}}</includeonly>