Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Line 29: Line 29:
 
==Status as of now==
 
==Status as of now==
 
With the css in [[User:Kaydeethree/common.css]] and [[User:Kaydeethree/darkvector.css]] (which is unmodified from [[MediaWiki:Darkvector.css]]) everything on {{t|Navbox/dev}} appears to work properly. If nobody has objections I'll roll everything live (that is {{t|Navbox/dev}}, {{t|Navbar/dev}}, and [[User:Kaydeethree/common.css]]) ~24 hours from this post. I'm not planning on modifying mw:common.js since our show/hide code seems to work fine. I could be convinced otherwise, but js isn't my strong-suit. --<span style="border-bottom: 1px dotted;cursor:help;" title="Wowpedia bureaucrat">[[User:Kaydeethree|k]]_[[User_talk:Kaydeethree|d]]<sup>[[Special:Contributions/Kaydeethree|3]]</sup></span> 23:59, 20 January 2013 (UTC)
 
With the css in [[User:Kaydeethree/common.css]] and [[User:Kaydeethree/darkvector.css]] (which is unmodified from [[MediaWiki:Darkvector.css]]) everything on {{t|Navbox/dev}} appears to work properly. If nobody has objections I'll roll everything live (that is {{t|Navbox/dev}}, {{t|Navbar/dev}}, and [[User:Kaydeethree/common.css]]) ~24 hours from this post. I'm not planning on modifying mw:common.js since our show/hide code seems to work fine. I could be convinced otherwise, but js isn't my strong-suit. --<span style="border-bottom: 1px dotted;cursor:help;" title="Wowpedia bureaucrat">[[User:Kaydeethree|k]]_[[User_talk:Kaydeethree|d]]<sup>[[Special:Contributions/Kaydeethree|3]]</sup></span> 23:59, 20 January 2013 (UTC)
โˆ’
:[[Template:Navbox/dev#With image, without groups]] looks broken. Others below that as well. --[[User:Sky2042|Sky]] ([[User talk:Sky2042|talk]]) 01:40, 21 January 2013 (UTC)
+
:[[Template:Navbox/dev#With image, without groups]] looks broken. Others below that as well. Yes, collapsed navboxes are not functioning properly, unless your css doesn't match the css I'm loading by default. --[[User:Sky2042|Sky]] ([[User talk:Sky2042|talk]]) 01:40, 21 January 2013 (UTC)

Revision as of 01:40, 21 January 2013

Forums: Village pump → Updating navbar-navbox templates

So, {{navbox}}, {{navbar}}, and the rest are ancient and I'd like to update them. Mainly to gain .hlist support so we can phase out the stupid {{-}}-family of templates templates used in all of our navigation footers and subzone lists.

I've got {{navbox/dev}} and {{navbar/dev}} synched from enwiki and they mostly work. We need to update sidewide css too (the navbar is still causing issues). I have already added .hlist to mw:common.css and modified navbar/dev to not even bother with talk pages as per our version of navbar, since they never seem to exist. You can check how the new templates look as compared to live by comparing this revision of Template:Navbox/dev/doc with the live version to see what's still acting up. The linked version of the doc uses {{navbox}} instead of {{navbox/dev}}.

Why the effort? Instead of doing [[Foo]]{{-}} [[Bar]]{{-}} [[Baz]], we'd do:

* [[Foo]]
* [[Bar]]
* [[Baz]]

instead. It gets us this (not linked for demonstration purposes):

  • Foo
  • Bar
  • Baz

(Seriously! Look at the source for this) This is actually standards-compliant and semantically meaningful and it should help reduce the wikicode mess on templates and articles like Instance maps. We still need to update mw:common.css for navbox/navbar and (if necessary) mw:common.js for the show/hide code.

But I'm not making sitewide changes without getting other admins on board, and especially not when I'm falling asleep. It's 2 am as I write this, so I'm going to send out an email to the list (sorry in advance if the email alert on your phone wakes you up!) and then crash for the night. --k_d3 07:17, 20 January 2013 (UTC)

This would certainly help a lot - personally I hate adding {{ยท}} to those templates. However are we sure that no navbox templates currently use that formatting? If they are and they want to keep it that way, is there a way around it? --g0urra[T҂C] 09:12, 20 January 2013 (UTC)
What do you mean, gourra? To what "they" are you precisely referring? --Sky (talk) 15:50, 20 January 2013 (UTC)
I meant to say that if people use navboxes that have bullet list formatting, how can we assure that the formatting stays that way for those navboxes? --g0urra[T҂C] 22:18, 20 January 2013 (UTC)
That's why I haven't pushed this live yet. I don't want to break any current uses that I can't proactively fix with my bot. --k_d3 23:27, 20 January 2013 (UTC)
Gourra: Hlist is rolled out by adding a class to the navbox, not by automatically adding it in navbox. One of the edge cases on Wikipedia when it was first rolled out was Navbox with columns, which meant hlist couldn't be rolled out default in navbox. Don't worry on that point. It also looks like kd3 will be careful. --Sky (talk) 01:36, 21 January 2013 (UTC)

Status as of now

With the css in User:Kaydeethree/common.css and User:Kaydeethree/darkvector.css (which is unmodified from MediaWiki:Darkvector.css) everything on {{Navbox/dev}} appears to work properly. If nobody has objections I'll roll everything live (that is {{Navbox/dev}}, {{Navbar/dev}}, and User:Kaydeethree/common.css) ~24 hours from this post. I'm not planning on modifying mw:common.js since our show/hide code seems to work fine. I could be convinced otherwise, but js isn't my strong-suit. --k_d3 23:59, 20 January 2013 (UTC)

Template:Navbox/dev#With image, without groups looks broken. Others below that as well. Yes, collapsed navboxes are not functioning properly, unless your css doesn't match the css I'm loading by default. --Sky (talk) 01:40, 21 January 2013 (UTC)