Difference between revisions of "User:Murph"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (Use cases: Simple generic test cases)
m (Strip failed subst from template we don't have)
Line 41: Line 41:
 
==== Simple short test with missing group ====
 
==== Simple short test with missing group ====
 
{{Navbox
 
{{Navbox
| name  = Murph{{subst:void|Don't change anything on this line. It will change itself when you save.}}
+
| name  = Murph
 
| state  = uncollapsed
 
| state  = uncollapsed
 
| title  = {{{title}}}
 
| title  = {{{title}}}
Line 59: Line 59:
  
 
{{Navbox
 
{{Navbox
| name = Murph{{subst:void|Don't change anything on this line. It will change itself when you save.}}
+
| name = Murph
 
| title = {{{title}}}
 
| title = {{{title}}}
 
| state  = uncollapsed
 
| state  = uncollapsed

Revision as of 15:37, 29 May 2015

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.
  • 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:Navbar

Support template for Template:Navbox