This wiki is a XML full dump clone of "Heroes Wiki", the main wiki about the Heroes saga that has been shut down permanently since June 1, 2020. The purpose of this wiki is to keep online an exhaustive and accurate database about the franchise.
Template talk:Infobox cast: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>Hardvice No edit summary |
imported>Hardvice No edit summary |
||
| Line 57: | Line 57: | ||
*** With the characterbox, we added a sort variable to the template and allowed it to apply the defaultsort (<nowiki>{{DEFAULTSORT:{{{sort|{{PAGENAME}}}}}}}</nowiki>. This meant that other templates which added cats (like the navbar) automatically picked up the defaultsort. If we did the same thing here, things like the caststub and nocastimage templates wouldn't have to use convoluted logic (or their own sort variable) to be sorted properly. It's no big deal (and Ryan's right--it's probably more work than it is worth), but it bears mentioning since we're doing it for characters but not actors.--[[User:Hardvice|Hardvice]] <small>[[User talk:Hardvice|(talk)]]</small> 01:15, 8 October 2007 (EDT) |
*** With the characterbox, we added a sort variable to the template and allowed it to apply the defaultsort (<nowiki>{{DEFAULTSORT:{{{sort|{{PAGENAME}}}}}}}</nowiki>. This meant that other templates which added cats (like the navbar) automatically picked up the defaultsort. If we did the same thing here, things like the caststub and nocastimage templates wouldn't have to use convoluted logic (or their own sort variable) to be sorted properly. It's no big deal (and Ryan's right--it's probably more work than it is worth), but it bears mentioning since we're doing it for characters but not actors.--[[User:Hardvice|Hardvice]] <small>[[User talk:Hardvice|(talk)]]</small> 01:15, 8 October 2007 (EDT) |
||
**** Hmm... interesting. So it wouldn't require going through a ton of articles, just one per template, right? (edit: oh, we're not using a sort variable on cast yet. Ok, I see.) ([[User:Admin|Admin]] 01:20, 8 October 2007 (EDT)) |
**** Hmm... interesting. So it wouldn't require going through a ton of articles, just one per template, right? (edit: oh, we're not using a sort variable on cast yet. Ok, I see.) ([[User:Admin|Admin]] 01:20, 8 October 2007 (EDT)) |
||
***** You're itching to use that bot, aren't you? If it helps, you probably could. 90% of the cast has two names; the homemade defaultsort looks for the first space in PAGENAME, and then creates substrings, flipping the order of the two parts. It works for most people. Unfortunately, you get things like "Kyson Lee, James" and "Allan Stewart, Mark". But if you did add the variable with a bot, we could just clean up the odd ones by hand.--[[User:Hardvice|Hardvice]] <small>[[User talk:Hardvice|(talk)]]</small> 01:30, 8 October 2007 (EDT) |
|||
** I don't think going through close to 200 articles and adding a sort variable would be worth it for the one, two, or three categories that are on the cast pages. I'm not opposed to it, I just don't think it's worth it, personally. -- {{User:Ryangibsonstewart/sig}} 01:08, 8 October 2007 (EDT) |
** I don't think going through close to 200 articles and adding a sort variable would be worth it for the one, two, or three categories that are on the cast pages. I'm not opposed to it, I just don't think it's worth it, personally. -- {{User:Ryangibsonstewart/sig}} 01:08, 8 October 2007 (EDT) |
||
*** I'd say that if we decide to use it then we could always leave the current categories as they are for now and just implement new categories using DEFAULTSORT. That way we only have to modify articles we're already adding a new category to. Granted doing it this way might make the upfront work easier, but may make adding new categories to articles trickier since we'd have to remember to add the DEFAULTSORT to each one the first time. ([[User:Admin|Admin]] 01:12, 8 October 2007 (EDT)) |
*** I'd say that if we decide to use it then we could always leave the current categories as they are for now and just implement new categories using DEFAULTSORT. That way we only have to modify articles we're already adding a new category to. Granted doing it this way might make the upfront work easier, but may make adding new categories to articles trickier since we'd have to remember to add the DEFAULTSORT to each one the first time. ([[User:Admin|Admin]] 01:12, 8 October 2007 (EDT)) |
||
Revision as of 05:30, 8 October 2007
Usage
Blank Infobox for easy copying and pasting.
{{Infobox cast|
| Name=
| Image=
| ImageCaption=
| DOB=
| birthplace=
| character=
| website=
| imdb_id=
}}
Noimage template
Fun Facttrivia: The IMDb id 0015382 belongs to Adewale Akinnuoye-Agbaje. :) Heroe!(talk) (contribs) Random Page! 15:17, 6 May 2007 (EDT) Default sort
|