Template talk:trans-top

Definition from Wiktionary, a free dictionary

Jump to: navigation, search

Contents

[edit] Documentation

Use this template to display a “Translations” section. It should not be used for anything else. E.g. on word:

====Translations====
{{trans-top|unit of language}}
*Dutch: {{t|nl|woord|n}}
*French: {{t|fr|mot|m}}
*German: {{t|de|Wort|n}}
*Greek: {{t+|el|sc=Grek|λέξη|f|tr=léxi}}, {{t|el|sc=Grek|κουβέντα|f|tr=kouvénta}}, {{t+|el|sc=Grek|λόγος|m|tr=lógos}}
{{trans-mid}}
*Italian: {{t|it|parola|f}}, {{t|it|vocabolo|m}}, {{t|it|termine|m}}
*Japanese: {{t|ja|sc=Jpan|言葉|tr=kotoba}}, {{t|ja|sc=Jpan|単語|tr=tango}}
*Latin: {{t|la|vocabulum|n}}, {{t|la|verbum|n}}
*Russian: {{t|ru|sc=Cyrl|слово|tr=slóvo|n}}
*Spanish: {{t|es|palabra|f}}
{{trans-bottom}}

{{trans-top|something promised}}
*French: {{t|fr|parole|f}}
*German: {{t|de|Ehrenwort|n}}
*Greek: {{t+|el|sc=Grek|λόγος|m|tr=lógos}}
*Italian: {{t|it|parola|f}}
{{trans-mid}}
*Portuguese: {{t|pt|palavra}}
*Russian: {{t|ru|sc=Cyrl|слово|tr=slóvo|n}}
{{trans-bottom}}

Translations

[edit] See also

  • (for Related terms, “-onyms”, etc.) {{rel-top}}

[edit] Discussion

[edit] Change

Why has "Translations to be checked" been added to this template. It causes the translation sections of many entries (such as dictionary) to appear incorrectly. —Stephen 14:58, 2 January 2007 (UTC)

I'm sorry, I saw this and didn't pay enough attention. Fixed. Robert Ullmann 21:27, 2 January 2007 (UTC)
In this format, a gloss is required, though, right? I think dictionary is was what needs to be fixed (and any others missing the gloss, using this template.) Perhaps the addition of an invisible "gloss-missing" cleanup category would be a better default? --Connel MacKenzie 21:44, 2 January 2007 (UTC)
That's not what the problematic edit was about; it was adding "Translations to be checked" as the section header if something was invalid (or something?). Using this (or top) without a gloss is fine in the simple cases where there is only one definition.
People are way too excited about this template, because they don't know how to do collapsible sections (which takes CSS). It was jus a demo, AND IS NOT READY TO BE USED ANYWHERE OTHER THAN AS A DEMO UNTIL THE CORRECT CSS WORK IS DONE!!! Robert Ullmann 21:52, 2 January 2007 (UTC)
I apologize for jumping the gun. However, I understood it to require the parameter, nevertheless, so that translation sections that haven't been checked (for incorrect subdivisions) would not be present. Sorry for stepping on your toe. --Connel MacKenzie 21:57, 2 January 2007 (UTC)
You aren't stepping on my toe :-). But this template was and is a demo, a hack to show what could be done. It is not ready to be used, it needs serious CSS work (classes, preferences, etc. etc. etc.) and maybe should be subbed into top eventually. It certainly is not some general collapsible section template! (but people are so eager!) sigh Robert Ullmann 22:30, 2 January 2007 (UTC)
Have you not seen WT:VOTE#Change style standard to use new trans-top style templates yet? I assumed you hadn't voted for some reason or another. But the demand for these is pretty high - leaving it in limbo seems to be causing confusion for too many people who are at a loss (perhaps learning their way around here.)
Has anyone added this to WT:CUSTOM yet? Should I just try to figure out the CSS on my own, then plop it into WT:PREFS? --Connel MacKenzie 05:15, 3 January 2007 (UTC)
I'm not sure if it was poor documentation, or what. The current behavior is to count the number of navigation boxes on a rendered page. If one or less, the contents are exposed. In WT:PREFS I already have a "disable hiding" thing, which will expose the contents if more than zero appear. Obviously, something is amiss, as the nav boxes are hidden on pages such as WT:VOTE all the time. I'm tempted to overhaul that logic to make it dependent only on the user preference, and never on the number of nav frames appearing. This should really move to WT:GP now. --Connel MacKenzie 07:25, 3 January 2007 (UTC)
Kinda still trying to figure out what to do; not helped by the fact that the net here has been so unreliable (I was going to extend my last comment above, but the net promptly went away. ;-) Robert Ullmann 11:38, 3 January 2007 (UTC)
I now have the "Leave translation boxes ("Nav boxes") expanded on initial page load." checked, but they remain collapsed. __meco 18:13, 31 March 2007 (UTC)
Don't blame my change, fix dictionary et al.! Or maybe I should say thanks for bringing it to attention, since "fix dictionary et al." is a bit unreasonable. The original intent was just to provide a way of listing TTBC under the same collapsible box. I didn't mean to mess up your translation workload.
I'm going to make a minor change to at least note which pages are incorrectly formatted. This will use a different category than the TTBC you rely on. After that there shouldn't be any need for a generic header, since that would be an incorrect use! I would hope that applying TTBC as the default at that point isn't as controversial. DAVilla 02:18, 14 January 2007 (UTC)

[edit] Default parameter text isn't very useful

The default parameter text, "Translations", doesn't make much sense, since it is an exact duplicate of the "Translations" section heading. I think it'd make more sense to put one of the wikivariables in there, probably the one for the current pagename (i.e. the term being defined.) — SMcCandlish [talk] [contrib] 00:41, 13 January 2007 (UTC)

The default parameter text should be an error! PAGENAME is not a valid gloss! DAVilla 02:06, 14 January 2007 (UTC)

[edit] What about floats

The template does not allow floats next to it, see parrot (or its history). Is there a reasonable solution for this?

The nav CSS stuff it uses defines a full width box, and when expanded it uses full width, so it has to appear below float-right boxes.

I’d like to note that maybe we should strike the screaming above, or is the template still not ready to be used? That would be strange, it is being substituted by bots now. H. (talk) 11:17, 11 April 2007 (UTC)

It just needs actual documentation above the discussion ;-) Robert Ullmann 15:06, 11 April 2007 (UTC)

[edit] Three templaces at the same time

I suggest the user can click to include {{trans-top|}} <br>{{trans-mid}}<br> {{trans-bottom}} at the same time in the same page, with a single click. This gives more productivity.

Use {{trans-all}} --212.166.227.56 09:46, 16 June 2007 (UTC)

[edit] Change the Show/Hide link?

Can we move the Hide/Show link to the left side or make the entire bar clickable? On larger screens like mine, the link is far away from the rest of the content and when I move the mouse far over to click it, it often doesn't reveal much, making it seem like a waste to even be hidden in the first place. --DBN 01:37, 24 April 2008 (UTC)

[edit] Show/Hide all

Is it possible to make an alt-click show or hide all of the translation boxes in a section, or in an entry? This would be analogous to the way the alt key works for minimize and close window controls on the Mac. Michael Z. 2009-01-11 16:31 z

I think it would be possible, but fiddly, and, if the alt-click was not on the first translation box, it would cause everything visible to shift downwards horribly. Better to use the WT:PREF to not hide them, or if we had another "Expand All" button beside translations. Conrad.Irwin 17:11, 13 April 2009 (UTC)

[edit] Categories

Please add this one to Category:Translation templates. Thanks in advance
--Jerome Potts 17:53, 6 September 2009 (UTC)

[edit] Scroll bar

I notice that some entries have the jump template placed inside this template as in:

This causes a scroll bar to appear on the right in Google Chrome browsers, which really looks terrible. Is there any way to fix this? --Yair rand 17:59, 6 September 2009 (UTC)

The scroll bar also appears when superscript is placed inside the template. --Yair rand 02:12, 13 September 2009 (UTC)