Langbar template: ideas and extension requests
Great, thanks. I was wondering where it had gone tbh :P
These extensions have worked like a charm in my template: User:Masked_Turk/Sandbox/Langbar
{{Langbar}}
It'll seek out direct subpages and display them in list-form. I just need feedback on design and styling now that the functionality is all there.
Very nice :). I'd like to implement this straight away. It looks amazing :). Other solutions I have investigated have been much more complicated, involving interwikis or bots to maintain the subpage links, etc. so this is really a godsend.
In terms of style, I have disabled the background hover because I don't think it quite looks right. I also think a character seperator like '·' works better than | which takes too much vertical space.
I have tried to implement the {{Langbar|main}} on the Home page. I have also implemented the Polski page: Home/Polski, but it's not showing up on the main page. Can you take a look please?
Unfortunately it seems that Extension:Subpage_Fun does not recognise the main article's sub-pages, which means we'll probably have to use a different method for the main article's English page: sorry about that.
I've altered the stylings to your description as best I can, can you check it's as you imagined?
Another thought is about category translation - what's the best way to handle this? I'm assuming it'll function in the same way as pages, so I can create Game/Polski and put the Langbar in the category page. Then this will display the game pages written in Polish.
You just reminded me about categories, so I've added Category:Articles with translations and [[:{{{language name}}} translations]] to the relevant parts of the template.
Regarding category pages... hmm, the template looks for subpages of the article it's in, so if you put {{Langbar|main}} in Category:Games, the template will show the link to the Polish version of the category page. I could amend the template to categorise Polish (etc.) translations in Category:Games/Polski, which would achieve what I think you're after?
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.
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.
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!
See for yourself ^_^ - Just going about removing the pl from the list, through the ingenious use of regular expression commands. Shouldn't take long.
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'?
- Category fixed. Forgot to add the : for categories, so it added them to the categories instead of displaying them as links :P
- 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