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: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>Hardvice |
imported>Hardvice No edit summary |
||
| Line 16: | Line 16: | ||
**** Drat, forgot to count the spaces. Should probably adjust to 11 instead of twelve. Of course, since it's OK on my browser, his name is probably exactly long enough to ruin this trick.--[[User:Hardvice|Hardvice]] <small>[[User talk:Hardvice|(talk)]]</small> 02:27, 30 November 2007 (EST) |
**** Drat, forgot to count the spaces. Should probably adjust to 11 instead of twelve. Of course, since it's OK on my browser, his name is probably exactly long enough to ruin this trick.--[[User:Hardvice|Hardvice]] <small>[[User talk:Hardvice|(talk)]]</small> 02:27, 30 November 2007 (EST) |
||
***** Yeah, 11 makes Elya Baskin and co. not have any whitespace. There's another alternative. Hold on.--[[User:Hardvice|Hardvice]] <small>[[User talk:Hardvice|(talk)]]</small> 02:29, 30 November 2007 (EST) |
***** Yeah, 11 makes Elya Baskin and co. not have any whitespace. There's another alternative. Hold on.--[[User:Hardvice|Hardvice]] <small>[[User talk:Hardvice|(talk)]]</small> 02:29, 30 November 2007 (EST) |
||
****** There's option 2. Option 3 is to print the border but force the cell size.--[[User:Hardvice|Hardvice]] <small>[[User talk:Hardvice|(talk)]]</small> 02:33, 30 November 2007 (EST) |
|||
==Navbar== |
==Navbar== |
||
Revision as of 07:33, 30 November 2007
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)
- Cell size can be adjusted (some) by adjusting the number in the expr: on Template:PortalCharacter. Right now it's set to force an extra line if the name is less than 12 characters, which works on my browser, but if some cells are too small on yours, then we can tweak it.--Hardvice (talk) 02:10, 30 November 2007 (EST)
- Mark Colson is showing up as three lines in my browser (Mark on one line, Colson on the one below it, and an empty line below that). Is that on purpose (it's only 11 characters with the space)? The rest are fine. Not all split the last and first names into seperate lines, but that's okay cause the cell is large enough to fit them on the same line.--MiamiVolts (talk) 02:23, 30 November 2007 (EST)
- Cell size can be adjusted (some) by adjusting the number in the expr: on Template:PortalCharacter. Right now it's set to force an extra line if the name is less than 12 characters, which works on my browser, but if some cells are too small on yours, then we can tweak it.--Hardvice (talk) 02:10, 30 November 2007 (EST)
- It's possible to have the navbar be automatically generated too -- again, with the caveat that it will need to be manually updated when it comes time to add a new page. It might be possible to make the cell sizes match, but I doubt it -- in this case, it's probably easier to just valign top all the cells and remove the border, and let the text run as long as it wants. Getting the letters for the small versions might be tough, but can probably be done with string functions--find the last space in the name (may require Winter to loop for this), take the next letter.--Hardvice (talk) 02:27, 30 November 2007 (EST)