Difference between revisions of "User:Murph"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (Use cases: Add stock craft, test case not yet working fully)
m (Use cases: Simple generic test cases)
Line 39: Line 39:
 
-->
 
-->
  
==== {{Tl|Versions}} ====
+
==== Simple short test with missing group ====
 +
{{Navbox
 +
| name  = Murph{{subst:void|Don't change anything on this line. It will change itself when you save.}}
 +
| state  = uncollapsed
 +
| title  = {{{title}}}
 +
| above  = {{{above}}}
 +
| image  = {{{image}}}
 +
| group1 = {{{group1}}}
 +
| list1  = {{{list1}}}
 +
| group2 = {{{group2}}}
 +
| list2  = {{{list2}}}
 +
| list3  = {{{list3}}} ''without {{{group3}}}''
 +
| group4 = {{{group4}}}
 +
| list4  = {{{list4}}}
 +
| below  = {{{below}}}
 +
}}
 +
 
 +
==== Simple 20 group test ====
 +
 
 +
{{Navbox
 +
| name = Murph{{subst:void|Don't change anything on this line. It will change itself when you save.}}
 +
| title = {{{title}}}
 +
| state  = uncollapsed
 +
| title  = {{{title}}}
 +
| above  = {{{above}}}
 +
| image  = {{{image}}}
 +
| group1 = {{{group1}}}
 +
| list1  = {{{list1}}}
 +
| group2 = {{{group2}}}
 +
| list2  = {{{list2}}}
 +
| group3 = {{{group3}}}
 +
| list3  = {{{list3}}}
 +
| group4 = {{{group4}}}
 +
| list4  = {{{list4}}}
 +
| group5 = {{{group5}}}
 +
| list5  = {{{list5}}}
 +
| group6 = {{{group6}}}
 +
| list6  = {{{list6}}}
 +
| group7 = {{{group7}}}
 +
| list7  = {{{list7}}}
 +
| group8 = {{{group8}}}
 +
| list8  = {{{list8}}}
 +
| group9 = {{{group9}}}
 +
| list9  = {{{list9}}}
 +
| group10 = {{{group10}}}
 +
| list10  = {{{list10}}}
 +
| group11 = {{{group11}}}
 +
| list11  = {{{list11}}}
 +
| group12 = {{{group12}}}
 +
| list12  = {{{list12}}}
 +
| group13 = {{{group13}}}
 +
| list13  = {{{list13}}}
 +
| group14 = {{{group14}}}
 +
| list14  = {{{list14}}}
 +
| group15 = {{{group15}}}
 +
| list15  = {{{list15}}}
 +
| group16 = {{{group16}}}
 +
| list16  = {{{list16}}}
 +
| group17 = {{{group17}}}
 +
| list17  = {{{list17}}}
 +
| group18 = {{{group18}}}
 +
| list18  = {{{list18}}}
 +
| group19 = {{{group19}}}
 +
| list19  = {{{list19}}}
 +
| group20 = {{{group20}}}
 +
| list20  = {{{list20}}}
 +
| below  = {{{below}}}
 +
}}
 +
 
 +
==== [[Template:Versions]] ====
  
 
===== Current production version =====
 
===== Current production version =====
Line 68: Line 137:
 
}}
 
}}
  
==== {{Tl|Stock craft}} ====
+
==== [[Template:Stock craft]] ====
 
===== Current production version =====
 
===== Current production version =====
 
{{Stock craft}}
 
{{Stock craft}}

Revision as of 15:34, 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