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.
User talk:Hardvice/Guest stars
Jump to navigation
Jump to search
Implementation
Duplication
If we standardize the image names, find a way to match the cell size, and sort out this duplicate problem, this could totally work. We should be able to use a string function to get the number of characters in a name, and if it's less than X, automatically add nonlinktext.--Hardvice (talk) 00:03, 30 November 2007 (EST)
- Right, and there's a few sort functions in Winter that we might be able to use. I left a comment on your talk page.--MiamiVolts (talk) 00:09, 30 November 2007 (EST)
- No need. I just didn't read their documentation very well. Sort is working, duplicates are fixed. All we need are standard image names and to set up the auto nonlinktext.--Hardvice (talk) 01:09, 30 November 2007 (EST)
- Most of the names are pretty standard. I think you tend to use lowercase and I use uppercase--can that be fixed using ucfirst or any of those other fun tricks? It looks like there's only three so far for this season that would need to be fixed: Héctor Luis Bustamante, Oscar Gutierrez, and Kiko Kiko. But that brings up two other issues: guest stars who don't have real-world portraits, and guest stars for whom articles do not yet exist. -- RyanGibsonStewart (talk) 01:20, 30 November 2007 (EST)
- Yeah, since it's generating the page, there's no good way to override it. We can add a separate copy of the image for those with no out-of-character images (for example, re-upload Image:Monty Petrelli.jpg as Image:Jackson Wurth.jpg), which would actually make things easier once we get an OOC image. Folks who don't exist yet aren't going to appear in the portals, but they will appear as soon as they're added, which is kind of nice. And on the off chance that we need to override somebody's name, we can read individual variables from templates called by an article, so we could add a "portalname" variable to template:infobox cast and use that to fill
text=--Hardvice (talk) 01:30, 30 November 2007 (EST)- Couldn't we just add image redirects for those?--MiamiVolts (talk) 01:34, 30 November 2007 (EST)
- In the case where the name is simply different (i.e. Rey Mysterio.jpg for Oscar Gutierrez), yes. In the case of nocastimage pages, it actually works much better if we upload a second copy because then, when we replace it with an out-of-character image, all pages update automatically.--Hardvice (talk) 01:41, 30 November 2007 (EST)
- Actually, image redirects redirect the image page, not the image itself.--Hardvice (talk) 01:44, 30 November 2007 (EST)
- Indeed. Just rediscovered that myself. But, except for nocastimage, the redirect will serve the purpose of not having to have the image in a category twice and re-adding the source information.--MiamiVolts (talk) 01:51, 30 November 2007 (EST)
- Couldn't we just add image redirects for those?--MiamiVolts (talk) 01:34, 30 November 2007 (EST)
- Yeah, since it's generating the page, there's no good way to override it. We can add a separate copy of the image for those with no out-of-character images (for example, re-upload Image:Monty Petrelli.jpg as Image:Jackson Wurth.jpg), which would actually make things easier once we get an OOC image. Folks who don't exist yet aren't going to appear in the portals, but they will appear as soon as they're added, which is kind of nice. And on the off chance that we need to override somebody's name, we can read individual variables from templates called by an article, so we could add a "portalname" variable to template:infobox cast and use that to fill
- Most of the names are pretty standard. I think you tend to use lowercase and I use uppercase--can that be fixed using ucfirst or any of those other fun tricks? It looks like there's only three so far for this season that would need to be fixed: Héctor Luis Bustamante, Oscar Gutierrez, and Kiko Kiko. But that brings up two other issues: guest stars who don't have real-world portraits, and guest stars for whom articles do not yet exist. -- RyanGibsonStewart (talk) 01:20, 30 November 2007 (EST)
- No need. I just didn't read their documentation very well. Sort is working, duplicates are fixed. All we need are standard image names and to set up the auto nonlinktext.--Hardvice (talk) 01:09, 30 November 2007 (EST)
Cell size, text breaks
- I copied the images for the two redirects. Not sure if we can fix the cell size or line breaks since that part is autogenerated. Perhaps if the autogenerator called a template, but I'm not sure that would be worth it.--MiamiVolts (talk) 02:07, 30 November 2007 (EST)