Thread:Arcaedia/@comment-24388235-20150507165511

I'm tweaking the mega-Navbox for DXHR computers, and one thing that could help improve the Navbox readability/maintenance in general is the template (copied to  here). It's handy for use in Navboxes to produce horizontal lists of links from the usual wiki list markup. It automatically generates middots ( · ) between the items, and stuff.

For example, instead of:

we would write:

The code is longer, but the added readability is that we put the links on separate lines rather than all on the same line. Also if we need to reorganize the links we don't have to deal with the middot separators.

For the template to work, it needs the code below added to the wiki CSS and JavaScript. It's quite a bit of stuff, but Wikia minifies all CSS and JavaScript served, so the actual added content size is smaller.

If you agree it's worth the effort, could you please update the wiki files as follows? --

Add to MediaWiki:Wikia.css AND MediaWiki:Common.css - code from here: https://gist.github.com/anonymous/559f13e0a68fd17f8264 (too long to post it here).

Add to MediaWiki:Common.js: /** * Helper script for the .hlist class in MediaWiki:Common.css and MediaWiki:Wikia.css * Add pseudo-selector class to last-child list items in IE8 * @source mediawiki.org/wiki/Snippets/Horizontal_lists * @revision 6 (2014-08-23) * @author User:Edokter */ ( function ( mw, $ ) {   var profile = $.client.profile;    if ( profile.name === 'msie' && profile.versionNumber === 8 ) {        mw.hook( 'wikipage.content' ).add( function ( $content ) { $content.find( '.hlist' ).find( 'dd:last-child, dt:last-child, li:last-child' ) .addClass( 'hlist-last-child' ); } );   } }( mediaWiki, jQuery ) );  