Rosetta Code:Village Pump/Foldable output: Difference between revisions

(Applied Template:vptopic)
 
(2 intermediate revisions by 2 users not shown)
Line 1:
{{Vptopic
|topic=Foldable output
|summary=Question on folding large data segments to avoid bloating page length
}}
The example out of any task that generates ASCII graphs or ASCII art output, such as [[Life in two dimensions]], leads to a loooong page. it would be good if you could implement some tag to surround text that would initially render that text as a single line stating that the real text is hidden, and that clicking on the line would expand to show the hidden text. --[[User:Paddy3118|Paddy3118]] 06:42, 25 October 2008 (UTC)
: That would require JavaScript. We've avoided using Javascript thus far, because it's a PITA do do right without adopting a framework of some sort. For it to happen...someone else would have to do it. I'm finding myself with less and less time of late. --[[User:Short Circuit|Short Circuit]] 03:35, 28 October 2008 (UTC)
Line 86 ⟶ 90:
</lang></div>
: I guess to get anything better, one would have to change the GeSHi MediaWiki extension, so it takes anything after the language name and adds it to the generated pre tag. Then you could use <tt><nowiki><lang python style="height:30ex;overflow:scroll"></nowiki></tt> --[[User:Ce|Ce]] 12:26, 31 January 2009 (UTC)
 
:Thanks. I used the div. --[[User:Paddy3118|Paddy3118]] 18:39, 31 January 2009 (UTC)