Difference between revisions of "Template talk:CustomToggleButton"

From Pathfinder Wiki
Line 4: Line 4:
  
 
::Any chance you could add another argument to the temple to specify whether it defaults to expanded or collapsed? --[[User:Jomegat|Jomegat]] ([[User talk:Jomegat|talk]]) 20:09, 8 November 2020 (EST)
 
::Any chance you could add another argument to the temple to specify whether it defaults to expanded or collapsed? --[[User:Jomegat|Jomegat]] ([[User talk:Jomegat|talk]]) 20:09, 8 November 2020 (EST)
 +
 +
::::That's a setting [https://www.mediawiki.org/wiki/Manual:Collapsible_elements#With_specified_collapsible_part of the Box itself]. Sadly it is not possible to change the text of this button depending of the state of the box. That I would need to program and I think that's not that easy. --[[User:DesignerThan|DesignerThan]] ([[User talk:DesignerThan|talk]]) 01:53, 9 November 2020 (EST)

Revision as of 06:53, 9 November 2020

For this template I would need the ParserFunction [#forargs]. With that it would be possible to create a button to show/hide all boxes with a given namen. I think that would be nice for the answer pages. --DesignerThan (talk) 19:41, 8 November 2020 (EST)

That will take some work, but it's doable. Right now we're still running MW 1.23, and the loops extension requires 1.35 or higher. But it is something we should do, and I don't keep up with the upgrades as well as I should. As part of doing an upgrade, I will do a backup, so I can put the backup file somewhere that you could download it. This might have to wait until the end of the month though when I have some time off from work. --Jomegat (talk) 20:06, 8 November 2020 (EST)
Any chance you could add another argument to the temple to specify whether it defaults to expanded or collapsed? --Jomegat (talk) 20:09, 8 November 2020 (EST)
That's a setting of the Box itself. Sadly it is not possible to change the text of this button depending of the state of the box. That I would need to program and I think that's not that easy. --DesignerThan (talk) 01:53, 9 November 2020 (EST)