Template talk:Translation table

From Wikimedia Commons, the free media repository
Jump to: navigation, search
Info non-talk.svg Template:Translation table has been protected indefinitely because it is a highly-used or visible template. Use {{Edit request}} on this page to request an edit.

USAGE[edit]

Usage 

{{Translation table
  |lang1=text in lang1
  |lang2=text in lang2
  |lang3=text in lang3
  ...
}}

inline=something 
optional parameter. (line view...)
hidetitle=something 
optional parameter. (if exist hide title...)
width=size 
default=180px
Note 
Difference with {{Lan}} is that language codes are here default ordered.
Examples 
  • Simple

{{Translation table
  |en=This is an example !
  |fr=Ceci est un exemple !
  |ar=هذا مثال !
  |he=זוהי הגדמה !
}}

Internationalization
العربية: هذا مثال !
English: This is an example !
Français : Ceci est un exemple !
עברית: זוהי הדגמה !
  • With inline

{{Translation table|inline=o
  |fr=Ceci est un exemple !
  |en=This is an example !
  |ar=هذا مثال !
  |he=זוהי הדגמה !
}}

Internationalization
العربية: هذا مثال !
 ·
English: This is an example !
 ·
Français : Ceci est un exemple !
 ·
עברית: זוהי הדגמה !
 ·
  • With hidetitle

{{Translation table|hidetitle=o|inline=o|width=75%
  |fr=Ceci est un exemple !
  |en=This is an example !
  |da=Test done !
  |tr=Bu bir örnektir !
  |ar=هذا مثال !
  |he=זוהי הדגמה !
}}

Internationalization
العربية: هذا مثال !
 ·
Dansk: Test done !
 ·
English: This is an example !
 ·
Français : Ceci est un exemple !
 ·
עברית: זוהי הדגמה !
 ·
Türkçe: Bu bir örnektir !
 ·
  • Infobox style
Internationalization
العربية: هذا مثال !
Dansk: Test done !
English: This is an example !
Français : Ceci est un exemple !
עברית: זוהי הדגמה !
Türkçe: Bu bir örnektir !

{{Translation table|infobox=o
  |fr=Ceci est un exemple !
  |en=This is an example !
  |da=Test done !
  |tr=Bu bir örnektir !
  |ar=هذا مثال !
  |he=זוהי הדגמה !
}}

Problem with the template[edit]

The template seems to break interwiki links containing apostrophs, by escaping them with a "\". See the French link in Colchicum autumnale for instance. --Eusebius (talk) 13:49, 14 October 2008 (UTC)

Presently, it seems to work properly (see below) — Xavier, 01:22, 16 June 2009 (UTC)
Internationalization
Français : Colchique d'automne

width[edit]

please make it free-floating width, so we are not limited (eg.: Category:Travel trailers) --W!B: (talk) 05:43, 19 October 2008 (UTC)

Can you suggest how to do this? Can't the "width" parameter help? Then put {{editprotected}} at the top of this section. — Xavier, 01:22, 16 June 2009 (UTC)

Windows 2000[edit]

This template doens't seem to work under Windows 2000. -- Marcel Douwe Dekker (talk) 15:31, 2 December 2008 (UTC)

See also: On Wikipedia[edit]

{{editprotected}}

Please set the following into description W!B: (talk) 04:38, 1 August 2009 (UTC)

See also:

  • {{On Wikipedia}}, which is linking to multiple Wikipedia articles directly
BTW, can a sysop put the documentation in a separate Template:Translation table/doc page ? Thanks. — Xavier, 18:03, 3 August 2009 (UTC)
✓ Done Rocket000 (talk) 18:47, 3 August 2009 (UTC)

arz + pnb[edit]

{{editprotected}} Please, can a sysop add two entries for the {{arz}} (Egyptian Arabic) and {{pnb}} (Western Panjabi) languages? I guess the arz line should go just beneath the ar line. As for the pnb line, I don't know.

There is also a bug I have introduced in my previous edits: the {{wuu}} and {{gan}} entries (at the end of the source) shouldn't be outside the {{lan}} template.

If you are not comfortable with editing this template, you can just unprotect it and I will take care of this. Thanks! — Xavier, 00:42, 1 March 2010 (UTC)

not exactly related with the suggested changed, but any opinion about this possible change Esby (talk) 22:28, 11 March 2010 (UTC)
I see no problem with breaking the lines this way. This would make the template easier to edit as well as easier to identify changes made by others. I have edited your page in order to reflect the changes I suggest above, I hope you won't mind. (BTW, I wonder by which mediawiki magic this personal page of yours appears as a diff of this template...) — Xavier, 00:02, 12 March 2010 (UTC)
The magic is just the diff is not made by the title of the page but by the two id that are given. The ids are revision id, meaning they'll design the state of a given article at a given moment.
I'll perform the changes tomorrow evening. Esby (talk) 00:43, 12 March 2010 (UTC)
Thanks for the explanation about the diff IDs, I hadn't realized this was that simple. I have tested your test template on Water which displays about 150 translations (including arz) and everything looks ok. One slight thing though: due to right-to-left writing, arz translation is showing before ar despite the arz line is below the ar one. I'm not sure this is what is expected. Thank you in advance for applying the changes. — Xavier, 00:37, 13 March 2010 (UTC)

Replace be-x-old with be-tarask[edit]

Langtag be-x-old is used in compatibility reason only (except Wikipedia). Instead of it be-tarask is used. Please replace be-x-old with be-tarask or add this one as fallback feature (like {{{be-tarask|{{{be-x-old|}}}}}}). Thanks! Wizardist (talk) 18:17, 8 May 2010 (UTC)

sli[edit]

Please add the above language code. --Jonny84 (talk) 19:31, 4 January 2011 (UTC)

Paragraph option[edit]

{{editprotected}} Is there a way these translations could be put in a paragraph instead of a column format?

The translations would take up less space, especially when there are more than a few languages. For example, see this related template, {{On Wikipedia}}, in use here: Category:Maps.

Compare to here: Category:Economic history.

Also, could some skilled template coders have a look at my latest request at Template talk:On Wikipedia. Rocket000 does not seem to be editing currently. --Timeshifter (talk) 19:13, 22 January 2011 (UTC)

"inline=o", but it makes searching for a language difficult. --AVRS (talk) 22:37, 22 January 2011 (UTC)
Thanks. The documentation needs to be clearer. I might try to rewrite some of it once I understand some of the options better. It says "inline=something". What are the options for "something" and what do the options mean?
Also, how does one set the width to maximum: width=size --Timeshifter (talk) 06:40, 23 January 2011 (UTC)
"Something" is anything non-empty. For maximum width, use "100%". --AVRS (talk) 12:24, 23 January 2011 (UTC)
Thanks again. I clarified the doc page a little. Template:Translation table/doc. --Timeshifter (talk) 18:06, 23 January 2011 (UTC)

Borked[edit]

Somehow the layout on Category:Kings of Clubs is broken.

When I added it, the translations were all on one line. Now each language is on a separate line and a dot follows on a new line. Neither this template nor any others seem to have been edited since July though.

How can we fix this? --  Docu  at 11:32, 9 September 2012 (UTC)

Seems to be an edit on Template:Description. --  Docu  at 11:34, 9 September 2012 (UTC)

Display language of the user[edit]

Can this template be modified to only display the language of the user? --Robert.Allen (talk) 19:00, 7 September 2013 (UTC)

I agree that this would be a great improvement; in the template's current form, some instances expand to fill a large percentage of smaller displays with useless translations. Also, it would be very helpful to have a brief explanation of its purpose as the examples don't provide any clues. Lambtron (talk) 13:02, 2 April 2015 (UTC)
@Robert.Allen, Lambtron: I had exactly the same in mind when creating {{other language}} in 2014-10. Enjoy :) .    FDMS  4    21:11, 2 April 2015 (UTC)

100% is more than 100%[edit]

See Category:Photographs – the table is longer than the horizontal lines of the UI and {{photographs}}.    FDMS  4    21:25, 15 September 2014 (UTC)