Jump to content

Template talk:R to English

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

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]