Template talk:Title language

Latest comment: 5 months ago by Jochem van Hees in topic Titles that contain parentheses
WikiProject iconLanguages Template‑class
WikiProject iconThis template is within the scope of WikiProject Languages, a collaborative effort to improve the coverage of languages 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.

Transliterations and this template edit

How does this template handle transliterations, if at all? I have a lot of articles on my watchlist that have transliterated foreign-language titles that, within the article text, make use of {{transliteration}}. Can I use {{title language}} for romanisations at all? Or does it mess up in the same way that using {{lang}} for romanised text would?--Ineffablebookkeeper (talk) ({{ping}} me!) 13:43, 27 April 2022 (UTC)Reply

Currently it just uses {{lang}}, I didn't really think about transliterations. I guess we could simply create Template:Title transliteration for that purpose? ―Jochem van Hees (talk) 00:18, 28 April 2022 (UTC)Reply
You can use it for transliterations by using the language code (for example: ja) followed by the code for the Latin script -Latn: ja-Latn. That’s what {{transl}} does anyway.
For more information, see Template:Lang/doc#Transliteration or this article from the W3C. Thibaut (talk) 07:59, 28 April 2022 (UTC)Reply

Titles that contain parentheses edit

This needs the {{Italic title}}'s "Titles which contain parentheses are italicised before the first opening parenthesis: Foo (bar) → Foo (bar)". 2001:14BA:9CE5:8400:48E8:7B12:9A48:F344 (talk) 07:59, 23 November 2023 (UTC)Reply

Yeah good point. I tried to implement that using parser functions but it's proving difficult. The other template uses Module:Italic title to achieve this, but I'm not very familiar with Lua. @Mr. Stradivarius: I see you worked on that module before, could you maybe help if you have time? ―Jochem van Hees (talk) 22:12, 23 November 2023 (UTC)Reply