Please help trimming the transliteration and make it all grey for Russian adjectives

Jump to navigation Jump to search

Please help trimming the transliteration and make it all grey for Russian adjectives

Hi,

I've added autotranslit to {{ru-adjective}}. The result is not quite satisfactory but I don't know where the problem is, in the calling templates or in this one.

  1. If you look at большой, not all transliteration becomes grey, only some.
  2. Most forms have a space before the final " )". Tried to use "{{padleft" (found somewhere) but it didn't work. Is there a function to trim white spaces in Mediawiki?

The second problem seems to be solved, only consistent colour is a problem

Anatoli (обсудить/вклад)12:39, 26 May 2013

I fixed the template but the real problem is {{ru-adjective5}}. It includes links in some of the parameters and those links are then carried over to the transliteration as well. Links are black and that overrides the default colour.

CodeCat12:56, 26 May 2013
Edited by author.
Last edit: 13:08, 26 May 2013

Thank you. Can this be solved by changing the link colour? If you show me an example, I'll fix others. There are not so many adjective templates.

Sorry, another question, must be basic but very important.

In {{ru-verb-1-pf}} what is wrong with my checking for missing parameters, e.g #4:

{{#if:{{{4}}}}||{{Cyrl|{{{4}}}}} <span style="color: #888">({{#invoke:ru-translit|tr|{{padleft:{{{4}}}}}}})</span>}}

I want to show nothing if parameter is missing and the form + transliteration brackets if it exists.

Anatoli (обсудить/вклад)13:04, 26 May 2013

Removing the links from the transliteration would be a better idea, because they shouldn't have entries.

By default, {{{4}}} stays {{{4}}} if the parameter is not provided. If you want it to be empty when not provided, use {{{4|}}}.

CodeCat13:07, 26 May 2013

I see, I'll add "delink", which I used in {{t-SOP}}, thanks.

Could you show a complete example with {{{4|}}}, please? I'm not sure where to position true and false parts.

Anatoli (обсудить/вклад)13:12, 26 May 2013

It works like this:

{{#if:(some text that may or may not be empty)|(text to use if not empty)|(text to use if empty)}}
CodeCat13:36, 26 May 2013
 
 
 
 

Anatoli, I saw your question in the "recent changes"...

Must the transcriptions really be grey? This makes them difficult to read. Black would be better and if you put them in brackets they should stand out enough.

MaEr (talk)13:11, 26 May 2013

I actually like the grey, as long as it's not too dark. It makes them stand out clearly from the cyrillic.

CodeCat13:12, 26 May 2013

Yes, that's the reason.

I made changes to old verb templates as well - {{ru-verb-1-pf}} and {{ru-verb-1-impf}} (it's going to be a while before they are all Lua'ised - too many verbs). They function OK but look a bit ugly, somehow too stretched.

Anatoli (обсудить/вклад)14:38, 26 May 2013