User:George Orwell III/whitepaper



Basics
The following is a simplfied depiction of the HTML for a typical mainspace work found on en.WS. The proposed changes that follow refer to the line numbers on the extreme left (1 thru 39) as well as the info outlined in the Facts and/or Findings sub-sections.

Facts

lines 14 & 15 and 36 & 37
 * hidden description text reads as 'bodyContent' (note capital 'C' in 'bodyContent' )
 * element identifier reads as 'bodyContent' ( &lt;div id="bodyContent" ... )
 * no class assigned
 * in vector (action= view, read) wraps "everything" appearing on the pure white background ( from just below the vector menu tabs down to the bottom & including category bar(s) (not depicted)

lines 22 & 23 and 25 & 26
 * hidden description text reads as bodycontent (note lowercase 'c' in 'bodycontent' )
 * no element identifier present element identifier reads as 'mw-content-text' ( &lt;div id="mw-content-text" ... )
 * Patched into [//www.mediawiki.org/w/index.php?title=Special:Code/MediaWiki/113933&path= 1.19wmf] release - March 15, 2012, pm.
 * assigned class reads as 'mw-content-ltr' ( &lt;div class="mw-content-ltr" [lang. direction; mediawiki-content-left-to-right] )
 * in vector (action= view, read) wraps everything added manually by Users in the textarea box (line 24) when saved (action= edit, submit).

lines 19 to 21
 * hidden description text reads as 'subtitle'
 * element identifier reads as 'contentSub' ( &lt;div id="contentSub" note capital 'S' in 'contentSub' )
 * no class assigned
 * in vector (action= view, read) handles various items depending on the circumstances at hand for any given moment or action (examples: wraps mini-color coded proofreading status bar when applicable or nests the span showing the up-level linkage if we are on a sub-page).

lines 30 to 32
 * hidden description text reads as 'catlinks'
 * element identifier reads as 'catlinks' ( &lt;div id='catlinks' )
 * assigned class reads as 'catlinks' ( &lt;div class='catlinks' )
 * in vector (action= view, read) handles wrapping of the category bar and it's contents.

Findings

 http://www.mediawiki.org/wiki/Directionality_support#Wiki_content
 * ". . . Adding UI stuff within these classes should not be done. For example, the category links and FlaggedRevs review form are inside #bodyContent but outside .mw-content-ltr/rtl."

 

Proposed changes
 Cosmetic more than functional in nature. Currently, the hidden description text for lines 14 & 37 is almost the same as lines 22 & 26 save the capitalization of the letter "c". If it is not too much trouble and will not disrupt normal functionality, could we change the hidden description text for lines lines 22 & 26 to something else? My suggestion would be contentTextbody but anything along that theme will do. 

Based on the Findings above and on... https://wikisource.org/w/index.php?title=MediaWiki:PageNumbers.js&action=view shown in the box below...  ... the current dynamic layout scheme is intruding into div tags that it does not need to at some stage of rendering. Instead of prepending any of those 4 or 5 div elements being detected if present to #contentSub (line 20) and then wrapping everything from #contentSub</tt> to <tt>#catlinks</tt> (line 32) before final display, is it possible to still detect the existance of those 4 or 5 div elements and, if so, have them wrapped by the same 3 additional div container elements, then have all of them remain between the start and end div tags of <tt>#mw-content-text</tt> (lines 22 & 26) upon final rendering instead? </li>

If #2 is not possible or feasible, could we modify SkinTemplate.php to generate 2 additional place-holder div tags by default immediately before and after the start and end div tags of <tt>#mw-content-text</tt> (lines 22 & 26), denoted by "new" in the following, ... and then modify the .js cited in #2 to utilize these new elements instead of the ones currently being intruded upon? </li> </ol>

Thanks for any attention in these matters in advance -- George Orwell III (talk) 13:18, 20 July 2012 (UTC) <BR /> __NOINDEX__