Template talk:NavFlex
From Homestar Runner Wiki
(→Help with fixing padding and alignment?: I also noticed this just now...) |
(→Help with fixing padding and alignment?: done!) |
||
Line 31: | Line 31: | ||
:This should make it easier to fiddle around with the outer table parameters to figure out how to fix this issue. --[[User:Stux|Stux]] 05:13, 19 June 2025 (UTC) | :This should make it easier to fiddle around with the outer table parameters to figure out how to fix this issue. --[[User:Stux|Stux]] 05:13, 19 June 2025 (UTC) | ||
:I also just noticed this!: the nav items on the right do not line up with the image thumbnails! They're also 1 or more pixels left of the image thumbnails' borders! --[[User:Stux|Stux]] 05:20, 19 June 2025 (UTC) | :I also just noticed this!: the nav items on the right do not line up with the image thumbnails! They're also 1 or more pixels left of the image thumbnails' borders! --[[User:Stux|Stux]] 05:20, 19 June 2025 (UTC) | ||
+ | :Well, that was {{pl|l=http://hrwiki.org/w/index.php?title=HRWiki:Sandbox&diff=837386&oldid=837382&rcid=800454 a lot easier}} than I thought! I've {{pl|l=http://hrwiki.org/w/index.php?title=Template:NavFlex&diff=837387&oldid=837374&rcid=800455 applied the fix}} to the template. --[[User:Stux|Stux]] 05:27, 19 June 2025 (UTC) |
Current revision as of 05:27, 19 June 2025
[edit] Needed?
Is this crap really necessary? Weren't all of our navigational templates okay without this NavFlex stuff? It's done more harm than good. On certain templates like {{prevnextnav}}, it added an extra box to the left side of it. What does this actually do? — MichaelXX2
18:26, 5 April 2009 (UTC)
- This makes one template for all of the navigation templates, rather than re-implimenting the code separately for each one. It's not breaking anything, and It's dot com said that he had been thinking of doing something like this for some time now, and the only thing he doesn't like is the name. There's no reason not to keep it. — Defender1031*Talk 18:28, 5 April 2009 (UTC)
- I wrote this less than 24 hours ago, so please have some degree of patience for a few (very minor) aesthetics issues. Feel free to revert templates that have been aesthetically affected, and once I have a chance to fix the code on the main template, we can re-implement them this way, again.
- It doesn't really make sense to throw it all away and delete it, though, as this can be fixed, and will make the wiki easier to maintain. This allows for wiki-consistency, as DeFender1031 said, by allowing style changes to be made in ONE place rather than 15 separate splintered templates. This is the way that most wiki projects operate, by using standard classes of templates. As an example, if you wanted to change all of the nav templates across the wiki to be Blue instead of Grey, you could make the change on this template, and it would affect all of them in the same way. Also, if you don't understand it ("What does this actually do?") perhaps you should discuss it prior to proposing deletion :-) LobStoR 19:45, 5 April 2009 (UTC)
- Ok, I updated the template to fix this aesthetics issue. It took me all of 5 minutes to solve, so thanks for pointing out the glitch :). Let me know here on the talk page if you identify any other problems, so that we can try to fix them. Cheers! LobStoR 19:54, 5 April 2009 (UTC)
[edit] Do we need an Uncategorized Template for Non-Toons?
I ask this because an anon is shoe-horning everything not categorized into "Uncategorized Toons" when they are not toons. — Ngamer01 19:46, 9 June 2011 (UTC)
- The category might be better suited as "uncategorized content" but it's not really a big deal... we tend to use the term "toon" loosely. The template there is fine. The view link is necessary, and it's better there than not. Further, there seems to be a fine line between toon and not. What makes Legal not a toon? Homestar pops up and says stuff... and Happy T is certainly a toon, even if there is not animation and they just say things, just like Limozeen vs. Sloshy and Hooked on Decemberween are toons. — Defender1031*Talk 21:58, 9 June 2011 (UTC)
- The command "watch" just doesn't sound right with a page like Legal. If we used the same command that's used in the link at the bottom (we'd have to add a parameter to {{uncattoonnav}}?), then I'd be fine with this. —Soiled Bargains (talk|ctrb) 22:23, 9 June 2011 (UTC)
[edit] Help with fixing padding and alignment?
I did some fiddling with this template today, but there are a few too many variables to keep straight (and I'm wary of borking something that's used on so many pages). Figured it'd be best to explain what I was trying to accomplish in hopes that someone a hair more knowledgeable can pitch in: there's an extra couple pixels of padding on the left and right that are making the text and boxes slightly but noticeably misaligned. For example:
- Teen Girl Squad Issue 1 — Compare the misalignment of the initial T's in the "Teen Girl Squad Issue #1" from NavFlex and "The very first one..." opening sentence. On the right, notice the right edge of the box with "Issue 2 →" is a couple pixels to left of the frame around the screencap of Cheerleader.
- Strong Sad's Severed Soolnds — Again, see that the "Toon Category" text is slightly indented compared to "Learn...", "Cast:", etc. The "Sammich →" boxes are also not right-aligned with the frame around the Soolnd drawing.
There seems to be not only the cellpadding but also the style="padding:" attributes affecting this. I was able to adjust it a bit but it also affected the vertical padding — which should remain. Again, I hit the limit of my MediaWiki/CSS skills here so hoping another intrepid editor can crack this. -- Bleu Ninja 00:55, 19 June 2025 (UTC)
- Wow, I don't know how you noticed that pixel issue but once you see it, it can't be unseen! :D
- I'm not yet sure what the correct solution should be but I've made the testing process easier:
- I've
{{subst:'d
(diff) the two templates after figuring again out how to get the parser function to work on the sandbox (it's been a while). - This should make it easier to fiddle around with the outer table parameters to figure out how to fix this issue. --Stux 05:13, 19 June 2025 (UTC)
- I also just noticed this!: the nav items on the right do not line up with the image thumbnails! They're also 1 or more pixels left of the image thumbnails' borders! --Stux 05:20, 19 June 2025 (UTC)
- Well, that was a lot easier than I thought! I've applied the fix to the template. --Stux 05:27, 19 June 2025 (UTC)