Changes

Jump to: navigation, search

Talk:Main Page/Archive2

12,725 bytes added, 06:45, 16 March 2015
no edit summary
::Hah! Did you advertise us in some popular place? [[User:Surgo|Surgo]] ([[User talk:Surgo|talk]]) 22:15, 10 January 2014 (UTC)
 
 
== Please take NavBoxes out of articles. (Just in case, this is NOT an April's Fool) ==
 
A lot of people put their NavBox in every article they make, and I think they should stop doing that. A NavBox is a handy tool that makes it easy to keep track of all of your creations, but it is also a ton of links to other pages. While I think internet speed is a non-issue for most people in this time and age, it makes it harder to navigate the site.
 
I would like to draw your attention to the [[Special:WhatLinksHere|what links here]] tool. It's really useful as a referential tool and for checking the context of someone's homebrew. It yields every single article that has a link to the article you use it on. Basically, this tool will throw up the entire contents of your NavBox.
 
I propose people remove their NavBoxes from their articles and put them on their personal User page. It's one more click away, but it should make the wiki cleaner. And, if we're really lucky, it may even speed the wiki up a bit. --[[User:Sulacu|Sulacu]] ([[User talk:Sulacu|talk]]) 22:43, 1 April 2014 (UTC)
 
:I'd be happy to remove them, or migrate them to a secondary page (user or otherwise), or something. I've never really been keen on them, and they do make a mess of the "What Links Here" functionality. But they kind of got grandfathered in and (up until Eiji's broke stuff) haven't really been a thing worth worrying about. So we'll remove them if that's what the community wants, but it would probably need to be a pretty clear majority. Or someone else would have to break something with them and force our hands. - [[User:Tarkisflux|Tarkisflux]] <sup>[[User talk:Tarkisflux|Talk]]</sup> 05:09, 3 April 2014 (UTC)
 
:: Don't touch my navboxes please. Thanks. --[[User:Ghostwheel|Ghostwheel]] ([[User talk:Ghostwheel|talk]]) 12:34, 3 April 2014 (UTC)
 
::: If performance is really a big deal, we could always write up some JS to grab the navbox contents dynamically when it is opened. --[[User:Aarnott|Aarnott]] ([[User talk:Aarnott|talk]]) 13:57, 3 April 2014 (UTC)
 
::::@Ghostwheel - noted. Like most things here it's subject to community decision though. Just to be clear - you want it on every page, and would not be happy with a "click here for more of Ghostwheel's work" link at the bottom of every page instead?
 
::::@Aarnott - you can do JS that would grab the contents of another page and append it to the bottom of an existing page? Not sure that would increase performance (two page requests instead of one, no idea if it would regularly update the NavBox with the call), but it might fix teh What Links Here thing. - [[User:Tarkisflux|Tarkisflux]] <sup>[[User talk:Tarkisflux|Talk]]</sup> 15:35, 3 April 2014 (UTC)
 
::::: Correct. I already have that on my user page. I don't even put all my homebrew on my navbox. --[[User:Ghostwheel|Ghostwheel]] ([[User talk:Ghostwheel|talk]]) 15:44, 3 April 2014 (UTC)
 
::::::@Tarkis - What I mean is that you wouldn't load the contents of the nav box until the user actually clicks to expand it. It would fix "What links here" because the content would no longer actually be included on the page source. This can be done with AJAX (or some similar technique), similarly to how the rating dialog box we have can submit a rating. In this case, it would be retrieving content rather than posting, but its the same mechanisms basically. I'm not sure if the nav box would be rebuilt every time it is opened, but I don't think it would be any different to transcluding it like we do now. I don't know how smart the wiki software is with caching content, but my guess would be that it does cache the content. --[[User:Aarnott|Aarnott]] ([[User talk:Aarnott|talk]]) 17:19, 3 April 2014 (UTC)
 
::::::I ended up testing it out. Here's a code snippet that you can run in your browser console (in chrome that would be ctrl + shift + j):
//Inject JQuery
(function() {
var script = document.createElement("script");
script.src = "http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js";
script.onload = script.onreadystatechange = function(){ testNavboxCall(); };
document.body.appendChild( script );
})()
function testNavboxCall() {
console.log('Sending request');
$.get('http://dnd-wiki.org/wiki/NavBox/Ghostwheel',
function(data) {
console.log('Response received');
var $html = $(data);
var table = $html.find(".mw-collapsible");
console.log($(table[0]).html());
}
);
}
::::::This code uses JQuery to load the page GW's navbox is on and then outputs the navbox table to the browser console. So, what would happen is that the user could open the NavBox and have a request like the one above happen on demand. When a response happens, it will paste int he table contents into the navbox. We'd probably want to use a "spinner" icon for while it's loading. --[[User:Aarnott|Aarnott]] ([[User talk:Aarnott|talk]]) 20:08, 3 April 2014 (UTC)
 
:::::::I'm quite alright with using javascript to solve this issue, that's a really clever and elegant solution (good thinking!). Just needs a couple touchups (the spinner mentioned, and the wiki already provides its own copy of jquery so there's no need to fetch it from Google's servers). I think this is a good idea because in some cases the navboxen have actually caused MAJOR site slowdown (this was mostly Eiji's navbox actually). Give me the final code when it's done and I'll splice it in. I'll have to leave it to someone else to go about doing the removals. [[User:Surgo|Surgo]] ([[User talk:Surgo|talk]]) 00:35, 4 April 2014 (UTC)
 
::::::::Removals of existing NavBoxes are trivial, since I can just wipe the template when the replacement is working and worry about deleting the template call from pages afterwards.
 
::::::::Just to be clear though, the JS can access the Author property of the wiki page (or just read them directly), and builds a list of NavBox calls based on that? The example above is hardcoded to show that the page display is possible, I just want to make sure that the custom generation of the items to show is similarly easy. - [[User:Tarkisflux|Tarkisflux]] <sup>[[User talk:Tarkisflux|Talk]]</sup> 04:39, 4 April 2014 (UTC)
 
:::::::::You can see a basic working model here [[User:Aarnott/Lego_Bin_14]]. You will need to paste the code in the console again to get it functioning since it isn't part of the actual site JS yet. I designed it so that there will be minimal changes to the existing stuff. Basically, we add a Navboxes/User/Loader page which will contain the outside framework for the page. We add an optional table id value to the NavBox page and set it in the Navbox/User page. The loader will be built based on the Author property, just like the current NavBoxes are. When the user clicks Expand, it will load up the "real" navbox and replace the loader. --[[User:Aarnott|Aarnott]] ([[User talk:Aarnott|talk]]) 17:39, 4 April 2014 (UTC)
 
:::::::::I think it's ready to add now. I'm adding the changes I need to make to the various navboxes now because it shouldn't affect any existing stuff. I won't be changing [[Template:Navboxes]] until the JS code is on the site. --[[User:Aarnott|Aarnott]] ([[User talk:Aarnott|talk]]) 15:16, 7 April 2014 (UTC)
 
::::::::::JS code is on the site. If you wish you could even keep the old navboxes and use a new DynamicNavbox template and change everyone's page to use that. It's really up to you or Tarkis or whoever will be doing the switchover. [[User:Surgo|Surgo]] ([[User talk:Surgo|talk]]) 01:53, 20 April 2014 (UTC)
 
:::::::::::Thanks Surgo. I'm pretty sure Aarnott was piggybacking on the existing navboxes template, but not completely sure. I'll leave it for him to sort. - [[User:Tarkisflux|Tarkisflux]] <sup>[[User talk:Tarkisflux|Talk]]</sup> 04:57, 20 April 2014 (UTC)
 
::::::::::::For future reference I'm pretty sure any admin can edit [[Mediawiki:Common.js]]. [[User:Surgo|Surgo]] ([[User talk:Surgo|talk]]) 05:23, 20 April 2014 (UTC)
 
(Reset indent) I just realized I'm not able to expand the navboxes on my Userpage to access the content. I presume you've been messing with things forpreperation of whatever transition you've planned?-- [[User:Eiji-kun|Eiji-kun]] ([[User talk:Eiji-kun|talk]]) 06:33, 20 April 2014 (UTC)
 
:Aarnott added a property to the table to make it work with the ajax I guess, and when the table is expanded it overrides the default behavior and tries to run the ajax to load the other table instead. That's.... problematic because we actually want the NavBox template to work without needing a JS call to a different page. And I don't think we want the basic collapsed NavBox template to be on the article page either, just a place holder that grabs and inserts the full one when called. So I've pulled the new thing from the NavBox for now (so it works again), and am kicking this back to Aarnott for a bit. Not sure if we need a new template that displays that is replaced with the actual NavBox via ajax when called or what, but it's not something I really want to sort. - [[User:Tarkisflux|Tarkisflux]] <sup>[[User talk:Tarkisflux|Talk]]</sup> 19:54, 20 April 2014 (UTC)
 
::Sorry -- I've been away for a little while. But now it is live. It should just work with existing Navboxes created through using [[Template:Navboxes]]. I can't remember why the wiki broke with Eiji's mega NavBox, but if it was due to the content being included on every single page, it shouldn't be a problem anymore. "What links here" isn't returning different results, however, even though the new navbox is being used. I tried using the Refresh option on some page's dropdown, but that didn't seem to help. --[[User:Aarnott|Aarnott]] ([[User talk:Aarnott|talk]]) 16:59, 21 April 2014 (UTC)
 
::: For what it's worth, just tried navigating on the wiki (hadn't been on here in a few days), and it seems super-fast compared to before. Don't know if it was because of the script or some backend server changes, but me gusta. --[[User:Ghostwheel|Ghostwheel]] ([[User talk:Ghostwheel|talk]]) 17:22, 21 April 2014 (UTC)
 
::::I am extremely disappointed in the lack of "What Links Here" updates. And it's not related to the #show function in the template (I didn't think it was, but wanted to confirm just in case). Further testing shows that it is simply a carry over though, as you can edit/save pages and watch them fall off of the What Links list. So they '''''will''''' clear out over time. I may see if I can get a trivial bot replace going to speed the process. - [[User:Tarkisflux|Tarkisflux]] <sup>[[User talk:Tarkisflux|Talk]]</sup> 18:21, 21 April 2014 (UTC)
 
:::::It looks like MediaWiki actually uses a job queue to update "What links here": "Also note that if a page's links change due to a change in the template, the backlinks for that page are not updated immediately, but via the job queue." [http://meta.wikimedia.org/wiki/Help:What_links_here]. So it is just a matter of waiting, I think. --[[User:Aarnott|Aarnott]] ([[User talk:Aarnott|talk]]) 19:38, 21 April 2014 (UTC)
 
::::::Wiki speed boost is probably due as much to the fact that we just had our RAM doubled as the navbox change, but the navbox change is actually pretty solid too because it reduces the CPU load. Thanks for the hard work Aarnott -- this is a LOT better than before, for the same functionality! How often can you claim that? [[User:Surgo|Surgo]] ([[User talk:Surgo|talk]]) 05:32, 22 April 2014 (UTC)
 
: I just want to put in my two cents future reference and say, for the record I agressively oppose having my navboxes removed from my pages unless they were irrevokably, beyond a shadow of a doubt proven to be the cause for severe or crippling site lag. I deffinately dont want it to be removed for someone elses concept of "aesthetics" on my pages. Mine is much smaller than some others and shouldnt adversely impact loading times dramatically. [[User:The-Marksman|The-Marksman]] ([[User talk:The-Marksman|talk]]) 12:47, 29 January 2015 (UTC)
 
==Format of sub-headlines==
Hello! In some articles with lower-ranked headlines (those designated by "===") some are underlined some are not, and I cannot see any reason for this. Examples are [[Canon:List of Dragonlance characters]] and [[Canon:List of Dragonlance deities]]. Does anyone know more? Thanks! [[User:Daranios|Daranios]] ([[User talk:Daranios|talk]]) 14:17, 15 June 2014 (UTC)
 
:It's a browser rendering issue, not a wiki issue. It displays fine in Chrome, mostly fine in IE, and is all over the place in Firefox (I didn't test other browsers). I have no idea why it happens. - [[User:Tarkisflux|Tarkisflux]] <sup>[[User talk:Tarkisflux|Talk]]</sup> 16:18, 15 June 2014 (UTC)

Navigation menu