Difference between revisions of "User:Murph"
m (→Goals) |
m (→Use cases) |
||
Line 14: | Line 14: | ||
=== Use cases === | === Use cases === | ||
+ | |||
+ | '''N.B. The CSS used by my test template is not currently on the site, it's being loaded locally for me only. The test boxes will not be correctly formatted for anyone else.''' | ||
<!-- Usage: | <!-- Usage: |
Revision as of 16:01, 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).
Contents
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
N.B. The CSS used by my test template is not currently on the site, it's being loaded locally for me only. The test boxes will not be correctly formatted for anyone else.
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
|
Support template for Template:Navbox