টেমপ্লেট:Infobox basketball biography/style/নথি
এটি টেমপ্লেট:Infobox basketball biography/style-এর জন্য একটি নথির উপপাতা। এখানে ব্যবহার সংক্রান্ত তথ্য, বিষয়শ্রেণী এবং অন্যান্য সামগ্রী রয়েছে যা মূল টেমপ্লেট পাতার অংশ নয়। |
This subtemplate of {{Infobox basketball biography}} is used to generate the colored headers corresponding to the team colors for the individual's current professional team.
ব্যবহার[সম্পাদনা]
{{Infobox basketball biography/style|team}}
or
{{Infobox basketball biography/style|team|team_link}}
How it works[সম্পাদনা]
The template checks to see if the team is known by checking the return code from the following templates,
- {{NBA color}}
- {{Euroleague color}}
- {{NBL colour}}
- {{PBA color}}
These templates return a value of "unknown" in response to a "type" query, if the team is not known. Once a match is found, the template then calls either
- {{NBA color cell}}, or
- {{Euroleague color cell}}, or
- {{NBL colour cell}}, or
- {{PBA color cell}}
to get a style statement to specify the coloring. If a second team_link parameter is passed, this style statement is used to generate a colored link, otherwise the template simply returns the style statement.
Complexity[সম্পাদনা]
In principle, more leagues could be added, but there is a risk that this would increase the template's complexity, and either (a) reduce rendering speed, or (b) trigger the dreaded transclusion depth limit.