User:Murph

From Kerbal Space Program Wiki
Revision as of 17:44, 29 May 2015 by Murph (talk | contribs) (Use cases)
Jump to: navigation, search

I'm just using this page as my personal sandbox. Please do not edit this page or any of its subpages without my express permission (unless you are an official wiki admin, of course, and it's actually causing any problems).

/Template:Navbox

Things I'd like to improve

  • The current {{Navbox}} template is a horribly dense block of wiki script code. It carries a warning not to edit it due to the complexity, which is quite justified, but the complexity is made far worse by it being collapsed into a single block of impossible to maintain code (I rate it as impossible for anyone to reliably maintain, even seasoned MediaWiki experts).
  • We're using raw {{FlipBox}} templates as navboxes, with each instance containing its own style information and variances. This makes it harder to maintain a consistent visual result across the wiki, as well as duplicating maintenance effort and potential errors/variations.
  • Wikipedia provide w:Wikipedia:WikiProject Transwiki/Template:Navbox for other wikis to freely use under the CC BY-SA license. It looks like our existing Navbox may have been based on a version of this, in breach of the Wikipedia license (it is not attributed to them, there's no attribution provided at all).

Goals

  • Work towards a "one true navbox" template which covers all of our major cases and covers them convincingly well.
  • Replace existing navbox template with an uncollapsed version that will be maintainable (with care, it's still going to be complex).
  • Comply with Wikipedia's license.

Use cases


Simple short test with missing group

Simple 20 group test

Template:Versions

Current production version
Test version

Template:Stock craft

Current production version
Test version

Template:Parts

Current production version
Test version
Subgroups collapsed

/Template:Navbar

Support template for Template:Navbox