- The following discussion is an archived discussion. Please do not modify it.
- Seth Cooper created {{lang}}, continuation of the discussion about the specific template at Template talk:Lang. --Sammm✦✧(talk) 03:01, 4 July 2021 (UTC)
Language templates
Sup, wondering if we can have something like Template:Lang-x on Wikipedia but simply have it put together more like Template:Lang on Wikipedia? (Those are two different templates and function differently; the former has the language explicitly listed before the content, the latter just guarantees the text is displayed in that language and isn't meant to be translated).
I looked at both templates and is just completely at a lost (don't think we can perform this #invoke:lang
thing), but lucky for us, it's not like we have a lot of languages to cover, so the manual way should theoretically suffice?
So something like:
- lang|bg = (Bulgarian: {{{1}}})
- lang|de = (German: {{{1}}})
- lang|fr = (French: {{{1}}})
- lang|ja = (Japanese: {{{1}}})
- lang|es = (Spanish: {{{1}}})
- lang|zh = (Chinese: {{{1}}})
For example, ideally, to get "Lyuben Zidarov (Bulgarian: Любен Зидаров)", instead of doing
'''Lyuben Zidarov''' ([[Bulgarian]]: Любен Зидаров)
I'd only need to do
'''Lyuben Zidarov''' {{lang|bg|Любен Зидаров}}
Or like for "oni (Japanese:
'''oni''' ([[Japanese]]: <ruby><rb>鬼</rb><rt>おに</rt></ruby>)
I'd only need to do
'''oni''' {{lang|ja|<ruby><rb>鬼</rb><rt>おに</rt></ruby>}}
I know it doesn't look like it'd save a lot of byte-size but at least it'd make sure the format is always applied. The CATs tied to the templates on Wikipedia seems interesting, something like "Articles containing [...] language text" or "Articles containing text in languages other than English" if we are unsure if all languages are worth separated subCATs.
I'm saying this because previously, a lot of the Japanese stuff was just wrong on so many levels, so perhaps the CAT can prompt native speakers to check if we are understanding non-English stuff correctly.
I didn't go just create it because I don't actually know if people will find this necessary , and I feel like there may be smarter ways to format it that I'm unaware of. Thoughts are appreciated. --Sammm✦✧(talk) 13:15, 11 June 2021 (UTC)
- Slight bump, so, not long after I posted the above, I realized the two languages I used as examples happened to be one of those that don't use italic, so I've updated some of the above.
- Like I said, the actual templates on Wikipedia are quite nice, such as the
lit
andtranslit
parameters, but when looking at the templates themselves, I really don't know how they were put together, and wondered if it really has to be one template per language and can't be done all in just one. The template documentation does kind of shed some light; the html markups look simple enough (e.g.: <span lang="ru">тундра</span> & <i lang="fr">toundra</i>; those do work here: тундра & toundra), but I don't quite know how to assemble them.
- That said, I don't think the ones on Wikipedia are perfect; for Japanese, IDK if the translit parameter isn't customized enough for lang-ja (the template documentation certainly didn't feel like it specifically cater to that language), since people are still using a combination of various templates to display the info that supposedly can all be taken care of in one. Template:Lang-zh on Wikipedia on the other hand, covers quite nicely. (For clarification, I'm mainly talking about the romanization of Japanese; like Chinese, while I don't actually think we need to include all of them (this is, after all, not Wikipedia? lol), since the systems do have their own names, even if going with just one, naming it would avoid confusion.)
- Oh, and, so my initial pitch included the "()" within the template (it isn't on Wikipedia), because I always thought, why not? That's just two less characters needing to be typed. How simple-minded of me lmao. I do not know if we will ever cover a subject requiring multi-language display, but Pyrenees on Wikipedia is one example for why not to include them. At the moment, the French name is confirmed, but idk if one day the Spanish one would also be canon. Don't know if the "()" should be taken out because "it might be nessasary someday". (Oh, but if there are already articles that fit the bill, do let me know lol. Not aware of it, but I'm constantly discovering stuff I don't know, so.)
- I know, I know! Why spend time typing all this for such a relatively trivial matter! I still stand by the reason: It'd be standardized and people won't have to fumble around how to format stuff. Really appreciate some input. Thanks! --Sammm✦✧(talk) 08:10, 26 June 2021 (UTC)
- I support introducing a new, standard way of adding language links. I don't know much about how to copy the Wikipedia template, so I think the manual way would be better. If I understand you well, you don't think it would fully work / be perfect for every language anyway? I like the concept of having CATs for articles containing text in other languages. I think it would be good to have subCats too by being specific about what language so it would be simpler for speakers to check the spelling.
- I would keep the "()" within the template. If ever needing to have multiple languages like the Wikipedia example you gave, then I guess we will find a way but it's unlikely that will ever have to be done. I can't think or find any pages that would be necessary for now, so I would cross that bridge when needed. - Kates39 (talk) 10:55, 3 July 2021 (UTC)
- I've gone ahead and created {{Lang}}. I kept the code simple enough. More languages can be added to the template as needed (i.e., I imagine after Fantastic Beasts 3 there might be a need for a "pt" entry, too). Automatic categories can be easily added to the code if we find there's a need for it.
- I also kept the "()" out of the template, for article formatting reasons (see, Viktor Krum). -- Seth Cooper owl post! 16:00, 3 July 2021 (UTC)
- The above discussion is preserved as an archive. Please do not modify it. Subsequent comments should be made on the appropriate discussion page, such as the current discussion page. No further edits should be made to this discussion.