Template talk:Player2

From Wikipedia, the free encyclopedia

[edit] Use of {{College}}

I've made a change to distinguish between the existing parameters "college", "school" and "from." It's now a hierarchy.

  1. college: uses the {{College}} template
  2. school: caller can pass links
  3. from: caller can pass links

I now realize that school and from are as redundant as college and school were before, but I think from could in the future be a useful "hometown" designation. Rolando 16:16, 2 August 2007 (UTC)

The whole point in creating the college lookup template was to avoid dealing with humongously piped links when users update the team rosters, and to actually keep these links consistent. Also, if we want all the links to point directly to a sub-article about each school's sports program we can do that directly from the college template, and the template can be adjusted to work for football or any other sport also. This is why it is important for the template to do its own linking. Please do not "pass links" to the template because as far as I know there is no parser function for un-linking parameter text. --fullcourt 04:52, 4 August 2007 (UTC)
I understand what you're getting at on the links but can you point to an example where this approach been used elsewhere, esp. on a template with literally hundreds of options? I think it's a maintenance nightmare.
See [this page] for a ParserFunction that will get parts out of a link.
Some documentation of how this template (and the College template) works would be great. What is the difference between height_ft vs. ft, height_in vs in, college vs. school?
In any case, different college sports teams have different pages; not just sports programs (see, e.g., Purdue Boilermakers vs. Purdue Boilermakers basketball). That is going to limit the usefulness of the college template for other sports, at least as it is designed now. Rolando 12:15, 4 August 2007 (UTC)
Yes, on a larger scale actually. See Category:Country data templates and the related flag-icon shortcuts. The only fundamental difference is that this is self-contained rather than spread out over numerous small pages. The average article is a bigger maintenance nightmare than this.
The titleparts function is pretty much designed for getting the same functionality as SUBPAGENAME but it can be used on a different page than the page title being supplied to it, and the level of depth can also be specified. I'm not sure how useful it would be on this project but it would be a major boon for a project that had subpages titled like {{#titleparts:Bible/KJV/Romans/12/19|N}} (where N is the number of the slash at which the title should be truncated) or something like that. But just like all other parser functions, it can't properly handle a title with brackets around it. I've tested this function but have not yet found a use for it.
I already wrote a collective documentation for all of the templates I've created here.
If I had a complete list of each team's mascot and the present names of all the sub-articles and the future names for those which haven't been created yet, everything would be easier. This would be a good place to use redirects for the ones that don't exist yet, following this sort of pattern.
1. Purdue University ← 2. Purdue Boilermakers ← 3. Purdue Boilermakers basketball ← 4. Purdue Boilermakers men's basketball
← 4. Purdue Boilermakers women's basketball
← 3. Purdue Boilermakers golf ← 4. Purdue Boilermakers men's golf
← 4. Purdue Boilermakers women's golf
← 3. Purdue Boilermakers football
← 3. etc. etc.
Then when the pages are created the links will already be in place, and there will be no actual maintenance between now and then except for a few schools here and there, which aren't necessarily new, but are only producing successful alumni for the first time in a long while or possibly ever. ::--fullcourt 14:32, 4 August 2007 (UTC)
Wow, the country templates are nutty. Thanks for including the documentation in this template above. It seems like you can probably remove the superfluous parameters (e.g., height_ft, height_in, college), right? It'll make the syntax quite a bit simpler, I think. Rolando 16:00, 6 August 2007 (UTC)