Open main menu
Home
Random
Donate
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:PHL sports team/PBA/doc
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{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 --> [[Category:Sports modules]] }}</includeonly>
Summary:
Please note that all contributions to Stockhub may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Stockhub:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Code
(
edit
)
Template:Demo-inline
(
edit
)
Template:Module rating
(
edit
)
Template:PBA team
(
edit
)
Template:Sandbox other
(
edit
)
Module:PHL sports team/PBA
(
edit
)
Module:PHL sports team/testtable
(
edit
)
Module:String
(
edit
)
Module:Yesno
(
edit
)