Template talk:Ansreq

From Pathfinder Wiki

So here's something I ran into. The Answer box is titled in English. I really like the way this template is set up and would rather not translate templates if we can make them to work in different languages. What would be a good way to substitute the title "Answers" to the target language? I'll see if I can come up with something. --w126jep (talk) 11:16, 26 October 2020 (EDT)

I guess this one is solved, as the title "Answers" is not there anymore. I hope you like the new solution ;) --DesignerThan (talk) 13:15, 13 November 2020 (EST)
We need to make the answers default to expanded rather than collapsed. This is a complaint we hear often (people don't like to click things to find the content). It will become even less desirable to have it collapsed when we go live with the separate requirements-only pages since the primary purpose of these pages is to show the answer keys. --Jomegat (talk) 16:27, 13 November 2020 (EST)

Very nice work Jonathan! This is awesome. :D I think these templates are ready to deploy (though we're not ready to make that switch over just yet). --Jomegat (talk) 16:35, 13 November 2020 (EST)

Thanks Jomegat! I thought, I read that it should be closed by default but you already altered it. Thanks.
Yeah sure there are other things I want to work on xD. I was thinking about moving the Heading in Box out of it. So it is right infront of the table. The purpose of that would be, that if you edit the section, you have the whole answer to edit and the box and not a part of the next answer. Maybe you can tell me what you think about that? --DesignerThan (talk) 13:22, 14 November 2020 (EST)

Mobile Skin

Unfortunately, this doesn't look great on a mobile device. Is there some magic you can bring to bear for that? When I hold my phone in the portrait mode, the ansreq table has three pretty narrow columns, so the answer text shows one or two words between each line break. It does look a lot better in landscape mode.

Also, the collapse button doesn't work at all (and it's not just in this template where that's a problem - it's universal across the wiki). The mobile view does auto-collapse each section based on the == headers, so maybe we could just detect that we're using the mobile skin and not serve the Show/Hide link?

The Mobile skin also doesn't work with the table sort buttons, but that's not something related to this template - it's a different universal problem with the wiki (and we've gotten complaints). These are exactly the types of problems that lay bare my CSS limitations. The only reason I raise this at all is because maybe if you look into it, you can keep an eye out for the table sort feature too. I have no idea how that works.

This is all done with the MobileFrontend extension, and if I recall correctly, that selects a different skin. If you need me to make changes to LocalSettings.php to tweak the extension, let me know. --Jomegat (talk) 17:52, 13 November 2020 (EST)

--Jomegat (talk) 17:52, 13 November 2020 (EST)

Hm yeah, I will have a look, but I guess I will need some time for that. Maybe those issues could also be solved with the updated software? But I need to take a look at that. --DesignerThan (talk) 13:22, 14 November 2020 (EST)
I did some research and work and I think it works now. Also I moved some of the headings right infront of the header so you can have a look at that. I hope that works for you. If so, I think we could move the headings into this template? --DesignerThan (talk) 16:05, 14 November 2020 (EST)