Difference between revisions of "Template talk:Mw-langlink"
(→Update request to deal with Item quality/Possible weapon qualities/de etc.) |
(→Apparent bug with bolded links: new section) |
||
Line 16: | Line 16: | ||
I've proposed an update on my [[User:Darkid/Sandbox|Sandbox]] with an update. It checks to see if the subpagename is one of the languages, in which case it switches it out for another language tag. Otherwise, it simply appends the language tag on the end. [[User:Darkid|<span style="color:red">Darkid</span>]] ([[User talk:Darkid|<span style="color:blue">Talk</span>]] | [[Special:Contributions/Darkid|<span style="color:grey">Contribs</span>]]) 10:00, 16 September 2014 (PDT) | I've proposed an update on my [[User:Darkid/Sandbox|Sandbox]] with an update. It checks to see if the subpagename is one of the languages, in which case it switches it out for another language tag. Otherwise, it simply appends the language tag on the end. [[User:Darkid|<span style="color:red">Darkid</span>]] ([[User talk:Darkid|<span style="color:blue">Talk</span>]] | [[Special:Contributions/Darkid|<span style="color:grey">Contribs</span>]]) 10:00, 16 September 2014 (PDT) | ||
:{{c|Done}} (by Moussekateer) — [[User:WindPower|<span style="font-weight:bold;">Wind</span>]] 22:40, 17 September 2014 (PDT) | :{{c|Done}} (by Moussekateer) — [[User:WindPower|<span style="font-weight:bold;">Wind</span>]] 22:40, 17 September 2014 (PDT) | ||
+ | |||
+ | == Apparent bug with bolded links == | ||
+ | |||
+ | So it appears that the bold links are not displaying correctly (anymore?). In other words, on [[Spy/fr]], one would expect to see '''Français''' not Français. I'm unable to see why this is happening--the code on [[User:Darkid/Sandbox2|my sandbox]] is replicating the sidebar I think exactly, but I can't reproduce the error. [[User:Darkid|<span style="color:red">Darkid</span>]] ([[User talk:Darkid|<span style="color:blue">Talk</span>]] | [[Special:Contributions/Darkid|<span style="color:grey">Contribs</span>]]) 07:24, 22 January 2015 (PST) |
Latest revision as of 15:24, 22 January 2015
Languages in sidebar
I've done some testing and found a way to display the language links in {{Languages}}
directly in the sidebar. If all goes well this should directly replace that template. There are a few things that are needed for this to work.
- MediaWiki interface pages need to be created for all supported languages (in the form of
MediaWiki:Langlink-xx
). This is necessary since MediaWiki:Sidebar won't understand templates or redirects, etc. - Each
MediaWiki:Langlink-xx
page should have the text{{mw-langlink|xx}}
. Since these interface pages can understand templates,{{mw-langlink}}
will outputBASEPAGENAME/xx
if the page exists, and simply "-
" if it doesn't, which will hide the item altogether. - MediaWiki:Sidebar should be updated to include the code on User:Seb26/langlink-display.
- Known issues
- Does not appear to work in any namespace apart from the Article space. Therefore unless this is fixed, non-article pages should continue to use
{{languages}}
.
seb26 [talk] 23:07, 3 September 2010 (UTC)
Update request to deal with Item quality/Possible weapon qualities/de etc.
I've proposed an update on my Sandbox with an update. It checks to see if the subpagename is one of the languages, in which case it switches it out for another language tag. Otherwise, it simply appends the language tag on the end. Darkid (Talk | Contribs) 10:00, 16 September 2014 (PDT)
- Done (by Moussekateer) — Wind 22:40, 17 September 2014 (PDT)
Apparent bug with bolded links
So it appears that the bold links are not displaying correctly (anymore?). In other words, on Spy/fr, one would expect to see Français not Français. I'm unable to see why this is happening--the code on my sandbox is replicating the sidebar I think exactly, but I can't reproduce the error. Darkid (Talk | Contribs) 07:24, 22 January 2015 (PST)