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).
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
{{{title}}} |
---|
|
{{{above}}} | | {{{group1}}} |
{{{list1}}} |
{{{image}}} |
---|
| {{{group2}}} |
{{{list2}}} |
---|
|
{{{list3}}} without {{{group3}}} | | {{{group4}}} |
{{{list4}}} |
---|
|
{{{below}}} |
|
Simple 20 group test
{{{title}}} |
---|
|
{{{above}}} | | {{{group1}}} |
{{{list1}}} |
{{{image}}} |
---|
| {{{group2}}} |
{{{list2}}} |
---|
| {{{group3}}} |
{{{list3}}} |
---|
| {{{group4}}} |
{{{list4}}} |
---|
| {{{group5}}} |
{{{list5}}} |
---|
| {{{group6}}} |
{{{list6}}} |
---|
| {{{group7}}} |
{{{list7}}} |
---|
| {{{group8}}} |
{{{list8}}} |
---|
| {{{group9}}} |
{{{list9}}} |
---|
| {{{group10}}} |
{{{list10}}} |
---|
| {{{group11}}} |
{{{list11}}} |
---|
| {{{group12}}} |
{{{list12}}} |
---|
| {{{group13}}} |
{{{list13}}} |
---|
| {{{group14}}} |
{{{list14}}} |
---|
| {{{group15}}} |
{{{list15}}} |
---|
| {{{group16}}} |
{{{list16}}} |
---|
| {{{group17}}} |
{{{list17}}} |
---|
| {{{group18}}} |
{{{list18}}} |
---|
| {{{group19}}} |
{{{list19}}} |
---|
| {{{group20}}} |
{{{list20}}} |
---|
|
{{{below}}} |
|
Current production version
|
---|
| Upcoming | |
---|
| Official release | |
---|
| Beta | |
---|
| Alpha | |
---|
| Alpha (Free versions) | |
---|
| Demo | |
---|
| |
|
Test version
|
---|
| Upcoming | |
---|
| Official release | |
---|
| Beta | |
---|
| Alpha | |
---|
| Demo | |
---|
|
Current production version
Test version
Current production version
|
---|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
---|
| Command modules | |
---|
| Fuel Tanks | |
---|
| Decouplers | |
---|
| Separators | |
---|
|
|
Test version
|
---|
|
Group 1 |
---|
| Subgroup 1 |
- Subgroup 1 part 1
- Subgroup 1 part 2
|
---|
| Subgroup 2 |
Subgroup 2 part 1
Subgroup 2 part 2 |
---|
| |
Group 2 |
---|
| Subgroup 1 |
- Subgroup 1 part 1
- Subgroup 1 part 2
|
---|
| Subgroup 2 |
Subgroup 2 part 1
Subgroup 2 part 2 |
---|
|
|
Support template for Template:Navbox