Template talk:Linktext

Link to corresponding language section in Wiktionary
Can someone modify the Wiktionary links to become 新 or 新 rather than just 新 when the language codes  or   are specified? There are significant differences between Chinese and Japanese entries on Wiktionary. KevinUp (talk) 15:44, 31 May 2019 (UTC)

Template-protected edit request on 25 February 2022
Per the almost-three-year-old comment on the Template talk:Linktext page, please update the template to include the indicated language in the target link.

Current template output for :


 * Functionally almost equivalent to
 * Functionally almost equivalent to
 * Functionally almost equivalent to

Desired template output for :


 * 命
 * Functionally equivalent to
 * Functionally equivalent to

Rationale
currently only links to the top of a Wiktionary page.

Some pages have entries in multiple languages, sometimes very long entries.

If an editor supplies a language code to the template, the editor presumably expects the link to take the reader not just to that Wiktionary page, but more specifically to the entry on that page for the indicated language code.

Wikicode changes
For every instance of:



Replace with:



... and so on and so forth for each of the 20 possible input parameters.

My template coding skills are a bit rusty, so please double-check the bit about the  in particular. ‑‑ Eiríkr Útlendi │Tala við mig 00:14, 26 February 2022 (UTC)
 * ❌ (yet) Please make all your requested changed in the sandbox, test them, then reactivate when ready. — xaosflux  Talk 01:01, 26 February 2022 (UTC)
 * @Xaosflux, whomever else, please see what appears to be working code at Template:Linktext/sandbox, and some simple tests at Template talk:Linktext/Sandbox.
 * For future improvements, we could add a test to see if pref is a lang code, and change the target language for #language to match that.
 * ‑‑ Eiríkr Útlendi │Tala við mig 19:46, 1 March 2022 (UTC)
 * ✅ Also note that I moved the tests to Template:Linktext/testcases, which is the standard place for them. * Pppery * it has begun... 01:15, 20 March 2022 (UTC)

Parenthesis bug report
I encountered a problem splitting compound words, then adding parentheses.

for some reasons renders as

whereas I wanted it to render as

though I will use the latter workaround for now, so nothing urgent for me.--Kiyoweap (talk) 23:45, 9 January 2023 (UTC)