Difference between revisions of "User:Murph"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (Link the subpage)
m (Versions use case)
Line 11: Line 11:
 
* Work towards a "one true navbox" template which covers all of our major cases and covers them convincingly well.
 
* Work towards a "one true navbox" template which covers all of our major cases and covers them convincingly well.
 
* Comply with Wikipedia's license.
 
* Comply with Wikipedia's license.
 +
 +
=== Use cases ===
 +
 +
==== {{Tl|Versions}} ====
 +
 +
===== Current production version =====
 +
{{Versions}}
 +
 +
===== Test version =====
 +
{{/Template:Navbox
 +
|state=<noinclude>uncollapsed</noinclude><includeonly>{{{state|collapsed}}}</includeonly>
 +
|title= {{if lang link|Version history|en=''Kerbal Space Program versions''|ru=''версии KSP''|fr=''Versions de Kerbal Space Program''|ja=''Kerbal Space Program'' のバージョン|ko=''커발 스페이스 프로그램의 버전''}}
 +
|name=Versions
 +
|image=
 +
|above=
 +
|titlestyle = background:#DDD;
 +
|groupstyle = background: #EEE; font-weight: bold; width:50px; text-align: center;
 +
|liststyle  = background: #DDD;
 +
|belowstyle = background: #EEE; text-align: center;
 +
|group1    = {{lang|en=''Upcoming''|ru=''Предстоящие''|ja={{Nowrap|''更新予定''}}|fr=''À venir''|ko={{Nowrap|''예정''}}}}
 +
|list1      = {{if lang link|Planned features|ru=планируемые новшества|fr=Fonctionnalités prévues|ko=개발 예정인 항목}}
 +
|group2    = {{lang|en=''Official release''|fr=''Versions officielles''|ko=''정식''}}
 +
|list2      = {{if lang link|1.0.2}} {{!}} {{if lang link|1.0.1}} {{!}} {{if lang link|1.0}}
 +
|group3    = {{lang|en=''Beta''|fr=''Bêta''|ja=ベータ|ko=''베타''}}
 +
|list3      = {{if lang link|0.90.0}}
 +
|group4    = {{lang|en=''Alpha''|ja=アルファ|ko=''알파''}}
 +
|list4      = {{if lang link|0.25}} {{!}} {{if lang link|0.24.2}} {{!}} {{if lang link|0.24.1}} {{!}} {{if lang link|0.24}} {{!}} {{if lang link|0.23.5}} {{!}} {{if lang link|0.23}} {{pipe}} {{if lang link|0.22}} {{pipe}} {{if lang link|0.21.1}} {{pipe}} {{if lang link|0.21}} {{pipe}} {{if lang link|0.20.2}} {{pipe}} {{if lang link|0.20.1}} {{pipe}} {{if lang link|0.20}} {{pipe}} {{if lang link|0.19.1}} {{pipe}} {{if lang link|0.19}} {{pipe}} {{if lang link|0.18.4}} {{pipe}} {{if lang link|0.18.2}} {{pipe}} {{if lang link|0.18.1}} {{pipe}} {{if lang link|0.18}} {{pipe}} {{if lang link|0.17.1}} {{pipe}} {{if lang link|0.17}} {{pipe}} {{if lang link|0.16}} {{pipe}} {{if lang link|0.15.2}} {{pipe}} {{if lang link|0.15.1}} {{pipe}} {{if lang link|0.15}} {{pipe}} {{if lang link|0.14.4}} {{pipe}} {{if lang link|0.14.3}} {{pipe}} {{if lang link|0.14.2}} {{pipe}} {{if lang link|0.14.1}} {{pipe}} {{if lang link|0.14}} {{pipe}} {{if lang link|0.13.2}} {{pipe}} {{if lang link|0.13.1}} {{pipe}} {{if lang link|0.13}} {{pipe}} {{if lang link|0.12}} {{pipe}} {{if lang link|0.11.1}} {{pipe}} {{if lang link|0.11}} {{pipe}} {{if lang link|0.10.1}} {{pipe}} {{if lang link|0.10}} {{pipe}} {{if lang link|0.9}} {{pipe}} {{if lang link|0.8.5}} {{pipe}} {{if lang link|0.8.4}} {{pipe}} {{if lang link|0.8.3}} {{pipe}} {{if lang link|0.8.2}} {{pipe}} {{if lang link|0.8.1}} {{pipe}} {{if lang link|0.8}} {{pipe}} {{if lang link|0.7.3}} {{pipe}}
 +
{{if lang link|Version history|de=Versionsgeschichte|ru=История версий|fr=Historique des Versions|ja=バージョン履歴|ko=개발 연혁}}
 +
|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}})]]
 +
}}

Revision as of 12:31, 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