13,208
edits
(Archiving discussions ending in 2017 and 2018) |
(→Automated translation for the wikipedia template: Given markup sample should return the language code. Keep in mind that differing model names in some countries and transcribed titles will fail) |
||
Line 66: | Line 66: | ||
: [[User:Bugman|Bugman]] ([[User talk:Bugman|talk]]) 06:01, 24 May 2019 (EDT) | : [[User:Bugman|Bugman]] ([[User talk:Bugman|talk]]) 06:01, 24 May 2019 (EDT) | ||
:: <code><nowiki>{{lc: {{#titleparts: {{PAGENAME}} | 1}} }}</nowiki></code> should return the language code needed for the '''lang=''' parameter. | |||
:: Note that you will only be able to pull this of where the article title is ''exactly the same'' in another language. If a model for example have have another name in one country (like cars sometimes have) the link will fail. If the title transcribed the link will fail. Etc. | |||
:: —[[User:Johan G|Johan G]] ([[User_talk:Johan_G|Talk]] | [[Special:Contributions/Johan_G|contribs]]) 07:16, 24 May 2019 (EDT) |