Module:PHL sports team/PBA/doc: Difference between revisions

Content deleted Content added
+dab usage
Line 12:
For teams whose article is [[WP:DAB|disambiguated]]:
<pre>
["TEAM CODE"] = {"Team full name", "Team short name", adab="Disambig articleDisambiguated title"},</pre>
 
For teams with multiple names:
Line 31:
== 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", adab = "Alaska Aces (PBA)"},"</pre>
Then,Sample demo: {{demo-inline|<nowiki>{{PBA team|ALA|season=2019}}</nowiki>}}, now links to [[2019 Alaska Aces season]]
 
Instead of linking to ambiguous article [[Alaska Aces]], the {{code|dab}} parameter will appropriately link it to [[Alaska Aces (PBA)]].
Above will result to a red link, only if entry requires link to season article:
* e.g. <code><nowiki>{{PBA team|ALA|season=2019}}</nowiki></code> → [[2019 Alaska Aces (PBA) season|Alaska Aces]], which links to [[2019 Alaska Aces (PBA) season]]
 
To resolve this issue, add {{code|s}} element to override the season team article title baseline:
<pre>ALA = {"Alaska Aces", "Alaska", a = "Alaska Aces (PBA)", s = "Alaska Aces" },</pre>
Then, {{demo-inline|<nowiki>{{PBA team|ALA|season=2019}}</nowiki>}}, now links to [[2019 Alaska Aces season]]
 
<includeonly>{{sandbox other | |