Template talk:R to English

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
WikiProject iconRedirect Template‑class
WikiProject iconThis page is within the scope of WikiProject Redirect, a collaborative effort to improve the standard of redirects and their categorization on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
Note: This banner should be placed on the talk pages of project, template and category pages that exist and operate to maintain redirects.
This banner is not designed to be placed on the talk pages of most redirects and almost never on the talk pages of mainspace redirects. For more information see the template documentation.
TemplateThis template does not require a rating on Wikipedia's content assessment scale.
WikiProject iconEnglish Language Template‑class
WikiProject iconThis template is within the scope of WikiProject English Language, a collaborative effort to improve the coverage of articles related to the English language on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
TemplateThis template does not require a rating on Wikipedia's content assessment scale.

Thanks to User:SMcCandlish for creating this template (it was a redirect).

Unfortunately, there was a mismatching brace which meant parameter 1 wasn't getting passed to the "base" template, so the "from" language was always "undetermined". Also, the documented named parameter |from= was not implemented.

I think I have boldly fixed them with these edits. Now it seems to work:

e.g. by way of a regression test, {{R to English|from=el}}, {{R to English|la}} and {{R to English|printworthy=yes}} produce, when subst:

{{R from alternative language|1=el|2=en|3=|printworthy=no}}
{{R from alternative language|1=la|2=en|3=|printworthy=no}}
{{R from alternative language|1=|2=en|3=|printworthy=yes}}

(I haven't subst: this, so it serves as a bit of a regression test, but pollutes and removed the "Redirects from xxx language" categories.) I haven't tested parameter 3 or the named "printworthy" parameter, yet.) 92.249.211.146 (talk) 11:04, 6 January 2019 (UTC) edited 92.249.211.146 (talk) 04:28, 7 January 2019 (UTC)[reply]

Good catch. These can probably just be substituted and the categories removed.  — SMcCandlish ¢ 😼  16:42, 6 January 2019 (UTC)[reply]
Done. I've subst twice to show that it produces the correct {{R from alternative language}}, substing further would be redundant. It seems that |printworthy= is passed through as intended. 92.249.211.146 (talk) 04:41, 7 January 2019 (UTC)[reply]