Help talk:Layout
Add topicA default layout for a book
[edit]I tried asking it a couple of times in the Scriptorium, for example here, but couldn't get an answer, so i'm trying again: Is there a way to make one of the layouts the default?
The template {{GHGpages}} is used on all pages of Gesenius' Hebrew Grammar. Can i add some parameter to it that would make it always show the pages as Layout 2 by default?
Thanks. --Amir E. Aharoni (talk) 11:52, 3 May 2011 (UTC)
Dynamic layouts should be style-sheets....
[edit]Given that users can make their own layouts, shouldn't the dynamic layouts that exist currently be converted into their own stylesheets, and an approrpriate CSS selector provided so that other templates can be made aware of them. I have however been told contributors should be semantically representing a document, not it's exact formatting though so certain templates should be "layout agnostic." ShakespeareFan00 (talk) 11:29, 11 February 2020 (UTC)
Deprecated example ?
[edit]@Inductiveload:@Xover: The example here makes reference to container objects that are not seemingly used by the structure Proofread page generates? If so shouldn't this example be updated to better reflect how the underlying Gadget now actually works, as opposed to the situation it was using a decade ago? ShakespeareFan00 (talk) 19:45, 19 November 2020 (UTC)
- @ShakespeareFan00: Which "container objects" are these? --Xover (talk) 19:14, 20 November 2020 (UTC)
The container objects concerned being those identified as: -
'#text-wrap', '#text-container' : "width:36em; margin:0px auto;" , '#text' , '#dp-eu' , '.editsection' and '#headertemplate'
by comparison all the current layouts use :- '#pageContainer', '#regionContainer', '#columnContainer', '.mw-editsection':'' and '#headerContainer' ?
With the code in MediaWiki:PageNumbers.js not making reference to the former, I also examined the HTML generated in https://en.wikisource.org/wiki/Sandbox1 in Firefox's tools, and it also make no reference to the former names. 20:02, 20 November 2020 (UTC)
- Ah, yes; I see you've fixed it. As I think Inductiveload has mentioned elsewhere, this stuff is desperately in need of decruftifying, so please adjust your expectations accordingly. In particular (and this is somewhat of a root cause for the cruftiness), the #*Container elements are actually added by MediaWiki:PageNumbers.js rather than Proofread Page. That is, the page structure that both page numbers and dynamic layouts rely on are bolted on after the fact. And it's not really something MediaWiki or PRP were designed for. It can certainly work (and mostly has worked for half a decade), but it places a bigger responsibility on us to write robust code and maintain it, and that's been somewhat neglected since GOIII retired. I have high hopes that between myself and Inductiveload (who are both interested in improving the technical side of things) we'll manage to improve the situation, but I'm afraid it'll take some time until we get there (and it may never be perfect, just better). --Xover (talk) 12:43, 22 November 2020 (UTC)