6,566
edits
(Automated translation for the wikipedia template) |
|||
Line 229: | Line 229: | ||
—[[User:Johan G|Johan G]] ([[User_talk:Johan_G|Talk]] | [[Special:Contributions/Johan_G|contribs]]) 08:56, 23 May 2019 (EDT) | —[[User:Johan G|Johan G]] ([[User_talk:Johan_G|Talk]] | [[Special:Contributions/Johan_G|contribs]]) 08:56, 23 May 2019 (EDT) | ||
== Automated translation for the wikipedia template == | |||
Just for the record, I attempted to modify {{tl|wikipedia}} to automatically determine the page language and point to the non-english Wikipedia page without the {{param|lang}} parameter. I have recently added the {{param|wikipedia}} parameter to {{tl|infobox aircraft}} and was hoping to use the language auto-detection to have the wikipedia infobox link point to the correct translation at Wikipedia. I could not use <code>{{obr}}PAGELANGUAGE{{cbr}}</code> as this required MediaWiki >= 1.29 (see [https://www.mediawiki.org/wiki/Help:Magic_words#Technical_metadata]). So I unsuccessfully attempted to use the same logic as the {{tl|LangSwitch}} parameter. I reverted all changes as there appears to be no way to correctly detect the page language (other than wait for the next MediaWiki upgrade to expose <code>{{obr}}PAGELANGUAGE{{cbr}}</code>). | |||
[[User:Bugman|Bugman]] ([[User talk:Bugman|talk]]) 05:51, 24 May 2019 (EDT) |