Template talk:LangWithName
From Wikipedia, the free encyclopedia
Contents |
[edit] Usage
This template should not be used directly in individual articles. Instead, a template with the name lang-xx shold be created, where the xx is the ISO 639 language code. The contents of this template should take the form:
{{langWithName|xx|language-name|{{{1}}}}}
Where xx is again the ISO 639 code, and language-name is the name of the language.
In turn, when calling a lang-xx template, it should be called in the form:
{{lang-xx|your-text-here}}
[edit] See also
template:rtl-langWithName (uses template:rtl-lang) (Actually, this one fits better for the Arabic example.)
[edit] Example
The lang-ar template contains the following text:
{{langWithName|ar|Arabic|{{{1}}}}}
If it is called as follows:
{{lang-ar|لووووول}}
it yields:
Arabic: لووووول
[edit] This template is very harmful
This has to be some kind of record in meta-template harmfulness. I'm stunned that people would go to this much trouble, creating so many complicated templated just to avoid typing a few extra letters. In most cases the amount of characters saved is amazingly small and people actually use some of the sub-templates to replace existing links at times. Please don't create any more of these. Ever.
Peter Isotalo 20:19, 15 October 2005 (UTC)
- Please see related talk at template talk:lang-uk. These templates are useful and cause no harm, but are being unilaterally removed by this user. —Michael Z. 2005-10-16 22:27 Z
- I agree this is rather harmful, but I'm not going to edit-war about it :) dab (𒁳) 10:35, 24 July 2007 (UTC)
[edit] Similar template
ko:Template:Llang seems to achieve a similar effect by including ko:Template:언어 이름 (언어 이름 = “language name(s)”), but without the need of creating dozens of other templates. If you like its approach, perhaps something like that can replace this template and most lang-xx templates.—Wikipeditor 05:44, 2 February 2006 (UTC)
[edit] No italics
I've created a variant, {{LangWithNameNoItals}}, to be used for languages whose writing systems do not lend themselves to being written in italics (Hebrew, East Asian languages, etc.) —Angr 11:04, 17 January 2007 (UTC)
- this template now forces no italics either. Italics are rather inserted in the "lang-xx" templates transcluding this one. dab (𒁳) 10:34, 24 July 2007 (UTC)
[edit] iw
{{editprotected}} Add no:Mal:LangWithName (Why so many templates protected so only administrators at en:wp can edit them?) Nsaa 18:04, 29 August 2007 (UTC)
- Done. A lot of templates are protected here to prevent vandalism, since vandalism on templates can affect many pages. Many templates are being changed so the documentation and interwikis are on a subpage so they can be edited without administrator assistance, but this one hasn't been changed over yet. --- RockMFR 23:21, 29 August 2007 (UTC)