Semi Protection

UESPWiki:Archive/CP Hide / Minimize Function

The UESPWiki – Your source for The Elder Scrolls since 1995
Jump to: navigation, search
This is an archive of past UESPWiki:Community Portal discussions. Do not edit the contents of this page, except for maintenance such as updating links.

Hide / Minimize Function

There should be a function that hides everything shown until you click the SHOW button and the thing expands. In a Table of Contents, it says "Contents: Show", and when you click Show, it will say "Contents: Hide" and the contents are shown. This would be to make it so you would not have to scroll constantly through seemingly uninteresting information. A lot of information could on a page, and a lot of info would be interesting to a lot of people, but those people who are not interested by it could just click HIDE and a long list of every quest would minimize down to "Quests" without any info. Maybe add it right next to a section of a page.

Example:
If there was a "Bows" = section , and under it were two == sections, Light Bows and Heavy Bows, and you minimize the Bows = section, it would minimize both of the == sections. If you only minimize Light Bows, then only that would be minimized.--Minimang 22:38, 3 October 2009 (UTC)

Actually, we have a template for that: Template:Showhide ;). –Eshetalk 00:04, 4 October 2009 (UTC)
That does not work. It simply is really freaking broken. I mean it DOES NOT WORK. *sorry, I'm really frustrated because Ive been trying to use that for 20 minutes now and it doesnt work. If I put the entire block of text (see the following) in, it makes the template / list of apparel i am trying to hide invisible even if I click show. Here see my example and please tell me what I am doing wrong :(
--Minimang 00:51, 4 October 2009 (UTC)
The template does work, but I'm not sure if it's table-friendly. The first example I can think of for seeing the template in action is my sandbox (here). I didn't write the template myself, so I'm not sure how to tweak things to make it work with tables. In fact I'm not sure it can be done at all. Anybody know if/how that works? –Eshetalk 02:58, 4 October 2009 (UTC)
It looks to me like GK, Elliot and Lukish have been kicking around the idea of adding ShowHide to the location tables here to try and clean things up, but I have no idea if they've managed to pull it off, or even if that's what they're trying to do in the first place. Dlarsh(Talk,Contribs,E-mail) 03:17, 4 October 2009 (UTC)
The template works within tables well enough (I have an example on my talk page, actually)...it's tables inside the template that I'm not sure about. I feel like it should work, but I haven't managed to get it right yet.
Also, I'm pretty sure they're trying to enable show/hide in the Place Summary for pages like Oblivion:Castle Chorrol, which have a really long list of location codes that messes with the rest of the page's formatting. Wish 'em luck, cuz it'll be a great improvement! –Eshetalk 03:23, 4 October 2009 (UTC)
It's simple:
The problem is putting table parts within the showhide. –Elliot talk 03:29, 4 October 2009 (UTC)