Template talk:LoadPage

Help
I have taken this template to German MC wiki, but without success. See here: de:Vorlage:LoadPage Can someone help me? Could someone edit the template maybe? ILeon 12:03, 26 March 2013 (UTC)


 * You probably need to update the site CSS and JS files. In particular, the '.load-page' part of MediaWiki:Common.css and the 'page loader' part of MediaWiki:Common.js. -- Orthotope 19:22, 26 March 2013 (UTC)


 * I'm not an admin, so I can not do that. But I have asked an admin. But thanks! ILeon 20:33, 26 March 2013 (UTC)


 * An admin has updated the .js. But the buttons loadContent are not displayed. ILeon 20:59, 26 March 2013 (UTC)


 * If both files have been updated and it still doesn't work, ask Ultradude to take a look at it, since he's the one who wrote this in the first place. -- Orthotope 06:24, 27 March 2013 (UTC)


 * The buttons are there for me, it was probably a cache issue. Although you're still missing a bit of our common.js (the top parts), so clicking it does nothing. –ultradude25 ᐸ Talk Contribs 07:25, 28 March 2013 (UTC)


 * The Load Content will be displayed. The contoent is not loaded. ChickenSig.png ILeon ᐸ Talk Contribs  Diamond Pickaxe.png de.minecraftWiki Admin  17:48, 14 April 2013 (UTC)


 * Yes, that's what I just said... –ultradude25 ᐸ Talk Contribs 18:02, 14 April 2013 (UTC)


 * I have now copied the complete English common.js to the German MCWiki. Unfortunately without success. ChickenSig.png ILeon ᐸ Talk Contribs  Diamond Pickaxe.png de.minecraftWiki Admin  18:03, 14 April 2013 (UTC)


 * Works for me if I bypass cache. –ultradude25 ᐸ Talk Contribs 18:04, 14 April 2013 (UTC)

It does not work for me. :/ ILeon ᐸ Talk Contribs  Diamond Pickaxe.png de.minecraftWiki Admin  18:08, 14 April 2013 (UTC)


 * Then you didn't bypass cache. Debug mode is the best way to do that. Add debug=true to the url. –ultradude25 ᐸ Talk Contribs 18:42, 14 April 2013 (UTC)


 * Yep. This works for me. http://de.minecraftwiki.net/wiki/Vorlage:LoadPage?debug=true --eagle3000 (D ~ B) 18:48, 14 April 2013 (UTC)

Category for loaded pages?
While it's easy enough to find pages that use the LoadPage template, it seems to be a little more difficult finding pages that are being loaded, other than walking through each page that uses the template. I was thinking of adding a category to the new schematic load pages to make finding them easier, but it would probably make sense to just use one category for all loaded pages and use the appropriate redstone category to differentiate them.

Category:Loaded pages? Category:Loaded?

&mdash;Munin295 &middot;  &middot; 19:44, 22 April 2013 (UTC)


 * Category:Ajax loaded pages –ultradude25 ᐸ Talk Contribs 23:56, 22 April 2013 (UTC)


 * done. &mdash;Munin295 &middot; Book_and_Quill.png Stone Pickaxe.png &middot; 02:18, 23 April 2013 (UTC)

Transclusion tags
Do the translation tags like noinclude, includeonly and onlyinclude work when using LoadPage? Or does it just literally load the entire page regardless of any transclusion tags? –- (T) Numbermaniac (C) 08:52, 1 June 2013 (UTC)


 * It loads the page as if you were just viewing it, not transcluding. However, from looking at the way the license selector on the upload page works, this is easily fixable. –ultradude25 ᐸ Talk Contribs 09:49, 1 June 2013 (UTC)


 * I didn't really get that, but you're the expert! :D –- (T) Numbermaniac (C) 11:52, 1 June 2013 (UTC)

Why?
What is the purpose of this template? In my opinion it just makes the page slower, less responsive and less portable. If I want to see the content I would first need to activate javascript, then click on the "show" button and wait 10 seconds for that part to load.

Ok if you want to use it on huge files that would make the page load slower if it is included initially, but that is not how it is used. And the content is not dynamically generated either, so I really do not get it.

And please don't tell me it's just for getting the show/hide buttons! That could be done with 2 lines of CSS, which would make it load instantly and work without javascript.

--Anka213 (talk) 14:17, 18 July 2014 (UTC)


 * Answered by Matt at Template talk:Gameplay. 「 ディノ 奴 千？！ 」? · ☎ Dinoguy1000 20:26, 18 July 2014 (UTC)


 * There could certainly be a benefit for these pages to provide a direct link to viewing the individual articles, so someone wouldn't depend on javascript for loading the content. Certainly 'Expand' 'Open' (meaning non-ajax) then 'Edit' would be nice. The current work-around is to click 'Edit', then the article name, to get back to viewing just the base article itself, instead of its transclusion on the loading page.
 * But it's also very useful to have the article content external to the pages that are loading them. The loading pages can be very large. The result is that for anyone on older machines or slower connections, their machine can be crippled by waiting for the full page to load. Having an index page load individual entries on demand, a user doesn't need to reload an entire page to get a new entry. This is visible on pages such as Village/Structure/Blueprints. The large number of entries results in client side machines slowing to a crawl for minutes if the entire page is loaded. By having the collapsed entities not include the actual content until it's requested, the user experience is massively improved. see: Blueprints#cpu usage Limestonebuilder (talk) 20:43, 30 May 2023 (UTC)
 * But it's also very useful to have the article content external to the pages that are loading them. The loading pages can be very large. The result is that for anyone on older machines or slower connections, their machine can be crippled by waiting for the full page to load. Having an index page load individual entries on demand, a user doesn't need to reload an entire page to get a new entry. This is visible on pages such as Village/Structure/Blueprints. The large number of entries results in client side machines slowing to a crawl for minutes if the entire page is loaded. By having the collapsed entities not include the actual content until it's requested, the user experience is massively improved. see: Blueprints#cpu usage Limestonebuilder (talk) 20:43, 30 May 2023 (UTC)

"[edit]" in toc
Example here. --GreenStone (talk) 12:35, 15 September 2014 (UTC)

Can't find load-page in Common.css
Like the first poster here, I'm trying to port the LoadBox and similar templates to another wiki, in this case mystcraft.gamepedia.com. The advice above says to port over "the .load-page part of Common.css", which I was already looking for... but I can't find any matching style there. (I do see some promising code in Common.js). Have these styles been moved somewhere else or something? --MentalMouse42 (talk) 00:21, 12 August 2015 (UTC)


 * The only styling required is the generic noscript class. –Majr ᐸ Talk Contribs 00:49, 12 August 2015 (UTC)
 * OK, I'll try that, but where are the classes referenced in the template coming from? Thanks! --MentalMouse42 (talk) 03:12, 12 August 2015 (UTC)


 * The styling Orthotope was referencing is something that was removed between 2013 and now. The class referenced by this template is now all for the javascript usage, meaning you need the second part of Orthotope's sentence above: "the 'page loader' part of MediaWiki:Common.js". – KnightMiner  t/c 21:02, 12 August 2015 (UTC)

Mobile fix
On mobile the show and edit buttons appear vertically ("[s&lt;br&gt;h&lt;br&gt;ow"). Can this be fixed? – Nixinova Nixinova sig image 1.png Nixinova sig image 2.png 08:01, 19 January 2019 (UTC)