Difference between revisions of "User:Murph"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (correct a link)
m (Use cases: Add stock craft, test case not yet working fully)
Line 13: Line 13:
  
 
=== Use cases ===
 
=== Use cases ===
 +
 +
<!-- Usage:
 +
 +
{{Navbox
 +
| name      = {{subst:PAGENAME}}{{subst:void|Don't change anything on this line. It will change itself when you save.}}
 +
| title      =
 +
| listclass  = hlist
 +
| state      = {{{state|}}}
 +
 +
| above      =
 +
| image      =
 +
 +
| group1    =
 +
| list1      =
 +
 +
| group2    =
 +
| list2      =
 +
...
 +
| group20    =
 +
| list20    =
 +
 +
| below      =
 +
}}
 +
 +
-->
  
 
==== {{Tl|Versions}} ====
 
==== {{Tl|Versions}} ====
Line 41: Line 66:
 
|group5    = {{lang|en=''Demo''|fr=''Démo''|ja=デモ|ko={{Nowrap|''체험판''}}}}
 
|group5    = {{lang|en=''Demo''|fr=''Démo''|ja=デモ|ko={{Nowrap|''체험판''}}}}
 
|list5      = {{if lang link|0.18.3}} {{pipe}} [[0.13.3|0.13.3 ({{Dict|old}})]]
 
|list5      = {{if lang link|0.18.3}} {{pipe}} [[0.13.3|0.13.3 ({{Dict|old}})]]
 +
}}
 +
 +
==== {{Tl|Stock craft}} ====
 +
===== Current production version =====
 +
{{Stock craft}}
 +
 +
===== Test version =====
 +
{{/Template:Navbox
 +
| name = Stock craft
 +
| title = [[Stock craft]]
 +
| listclass = hlist
 +
| state = {{{state|}}}
 +
 +
| group1= {{if lang link|Rocket|en=Rockets|hu=Rakéták|ru=Ракеты}}
 +
| list1 =
 +
* {{if lang link|Ion-Powered Space Probe}}
 +
* {{if lang link|Kerbal 2}}
 +
* {{if lang link|Kerbal X}}
 +
* {{if lang link|Learstar A1}}
 +
* {{if lang link|Orbiter 1A}}
 +
* {{if lang link|Rover + Skycrane}}
 +
* {{if lang link|Space Station Core}}
 +
* {{if lang link|Super-Heavy Lander}}
 +
* {{if lang link|Two-Stage Lander}}
 +
* {{if lang link|Z-MAP Satellite Launch Kit}}
 +
 +
| group2 = {{if lang link|Plane|en=Planes|hu=Repülőgépek|ru=Самолёты}}
 +
| list2 =
 +
* {{if lang link|Aeris 3A}}
 +
* {{if lang link|Aeris 4A}}
 +
* {{if lang link|Albatross 3}}
 +
* {{if lang link|Ravenspear Mk1}}
 +
* {{if lang link|Ravenspear Mk3}}
 +
* {{if lang link|Ravenspear Mk4}}
 +
* {{if lang link|Rocket-power VTOL}}
 +
* {{if lang link|Stearwing A300}}
 +
* {{if lang link|Stearwing D45}}
 
}}
 
}}
  
 
== [[/Template:Navbar]] ==
 
== [[/Template:Navbar]] ==
 
Support template for Template:Navbox
 
Support template for Template:Navbox

Revision as of 13:00, 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

{{Versions}}

Current production version
Test version

{{Stock craft}}

Current production version
Test version

/Template:Navbar

Support template for Template:Navbox