Difference between revisions of "MediaWiki talk:Sidebar"
From Kerbal Space Program Wiki
m (→External Links) |
(→Translating non-default links) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 13: | Line 13: | ||
under [http://kerbalspaceprogram.com Main Site] link in the left-side menu. | under [http://kerbalspaceprogram.com Main Site] link in the left-side menu. | ||
-- [[User:Ronillon|Ronillon]] ([[User talk:Ronillon|talk]]) 10:36, 23 April 2013 (CDT) | -- [[User:Ronillon|Ronillon]] ([[User talk:Ronillon|talk]]) 10:36, 23 April 2013 (CDT) | ||
+ | |||
+ | == Translating non-default links == | ||
+ | |||
+ | The default links (Main Page, Recent Changes, etc.) are getting translated automatically depending on the interface language specified in the user preferences. Would it be possible to use something like {{tl|lang}} to translate the non-standard links? (I could provide german translations if necessary) --[[User:Dgelessus|dgelessus]] <sup>([[User talk:Dgelessus|talk]], [[Special:Contributions/Dgelessus|contribs]])</sup> 12:36, 29 May 2013 (CDT) | ||
+ | :Ah I never changed my interface language. Now as you may noticed instead of ''Celestial Bodies'' now ''Himmelskörper'' (if set to German) appears. I'm not sure if normal users can edit/change those, but it worked by creating [[MediaWiki:Celestial Bodies/de]]. — [[User:XZise|xZise]] <small>[[[User talk:XZise|talk]]]</small> 15:39, 29 May 2013 (CDT) | ||
+ | ::Awesome, seems to work! But non-sysops apparently can't edit the MediaWiki namespace. Makes sense. --[[User:Dgelessus|dgelessus]] <sup>([[User talk:Dgelessus|talk]], [[Special:Contributions/Dgelessus|contribs]])</sup> 16:18, 29 May 2013 (CDT) | ||
+ | :::But wouldn't it be better, when also the links are translated? Although it might be not working if the page for the particular language you set don't exists. — [[User:XZise|xZise]] <small>[[[User talk:XZise|talk]]]</small> 16:34, 29 May 2013 (CDT) | ||
+ | ::::In that case it would make more sense to have it depend on the language of the current page rather than the interface language (if that is possible), because otherwise you would always get the translated page even if you wanted to edit another language. --[[User:Dgelessus|dgelessus]] <sup>([[User talk:Dgelessus|talk]], [[Special:Contributions/Dgelessus|contribs]])</sup> 17:03, 29 May 2013 (CDT) |
Latest revision as of 22:03, 29 May 2013
Languages
For anyone else who was confused as to how we managed to get the Languages stuff on the sidebar working, I found this nifty little tidbit from Valve's official TF2 wiki:
- Copy Template:mw-langlink to your wiki (requires ParserExtensions and friends)
- For each language you want to add:
- Make MediaWiki:langlink-xx with content: {{mw-langlink|xx}} (If English: {{mw-langlink|en=true}})
- Add
** langlink-xx|Language Name
to your sidebar, underneath Languages.
-- N3X15 (talk) 07:37, 23 September 2012 (UTC)
External Links
How about adding: Spaceport, Forum and maybe Store, News too under Main Site link in the left-side menu. -- Ronillon (talk) 10:36, 23 April 2013 (CDT)
Translating non-default links
The default links (Main Page, Recent Changes, etc.) are getting translated automatically depending on the interface language specified in the user preferences. Would it be possible to use something like {{lang}} to translate the non-standard links? (I could provide german translations if necessary) --dgelessus (talk, contribs) 12:36, 29 May 2013 (CDT)
- Ah I never changed my interface language. Now as you may noticed instead of Celestial Bodies now Himmelskörper (if set to German) appears. I'm not sure if normal users can edit/change those, but it worked by creating MediaWiki:Celestial Bodies/de. — xZise [talk] 15:39, 29 May 2013 (CDT)
- Awesome, seems to work! But non-sysops apparently can't edit the MediaWiki namespace. Makes sense. --dgelessus (talk, contribs) 16:18, 29 May 2013 (CDT)
- But wouldn't it be better, when also the links are translated? Although it might be not working if the page for the particular language you set don't exists. — xZise [talk] 16:34, 29 May 2013 (CDT)
- In that case it would make more sense to have it depend on the language of the current page rather than the interface language (if that is possible), because otherwise you would always get the translated page even if you wanted to edit another language. --dgelessus (talk, contribs) 17:03, 29 May 2013 (CDT)
- But wouldn't it be better, when also the links are translated? Although it might be not working if the page for the particular language you set don't exists. — xZise [talk] 16:34, 29 May 2013 (CDT)
- Awesome, seems to work! But non-sysops apparently can't edit the MediaWiki namespace. Makes sense. --dgelessus (talk, contribs) 16:18, 29 May 2013 (CDT)