Announcement: Our server hosts will perform a 10 minute maintenance between 2013-05-22 11pm and 2013-05-23 6am (New York local time).


GOG.com Enhancement Project
ProjectForumTalk
33/666

Langbar template: ideas and extension requests

Fragment of a discussion from User talk:Andytizer
Jump to: navigation, search
Sponsored links
Edited by 2 users.
Last edit: 13:27, 16 April 2013

Right, done that. Problem #2 with the extension is that it doesn't seem to notice subpages in Category:, Template: etc. either. Unless I'm doing it wrong. I've asked the extension creator over at mediawiki.

For now though, workaround: the category translations appear as sub-categories on the page: see Category:Games for e.g.

Masked Turk Ap lg.svg (Talk | Edits)17:56, 1 May 2012

Let's wait for a response - it must be a switch to allow for these namespaces. If you don't hear anything back in a couple of days we can do a workaround.

Andytizer (talk)22:00, 1 May 2012

Right, I *think* I have a fix.

Delve into LocalSettings.php and append the following line to the end of the file:

$wgNamespacesWithSubpages = array_fill(0, 500, true); //enables subpages for all articles, so the extension works!
Masked Turk Ap lg.svg (Talk | Edits)18:42, 8 May 2012

I've added this in now, let me know if it works!

Andytizer (talk)18:45, 8 May 2012

See for yourself ^_^ - Just going about removing the pl from the list, through the ingenious use of regular expression commands. Shouldn't take long.

Masked Turk Ap lg.svg (Talk | Edits)18:58, 8 May 2012
 

Have a look for yourself :)

Masked Turk Ap lg.svg (Talk | Edits)19:14, 8 May 2012

Great, works well on the home screen. It doesn't appear to be working on the category page though? http://pcgamingwiki.com/wiki/Category:Game

Is there any way to have the full list of languages displayed whether it is Home or Home/Polski? Is there an alternative to a link for 'Return to the English language article'?

Andytizer (talk)22:31, 8 May 2012
  1. Category fixed. Forgot to add the : for categories, so it added them to the categories instead of displaying them as links :P
  2. Show list of langs in subpages: Sorted. Template will link other langs if available, otherwise will link back to route article. Took quite a bit of rearrangement :P
Masked Turk Ap lg.svg (Talk | Edits)23:30, 8 May 2012
 
 
 
 
 
 
ELECTRONIC ARTS, INC. (Origin Store)
Personal tools

Variants
Actions
Navigation
Wiki
Community
Toolbox