Template:TranslationQuality

From SmashWiki, the Super Smash Bros. wiki
Revision as of 13:39, September 3, 2013 by Toomai (talk | contribs) (New Page: <span style="background:rgba({{#ifeq:{{{1|}}}|?|255,0,0,0.5|{{#expr:trunc(-1020*{{{3|0.5}}}+765)}},{{#expr:trunc(510*{{{3|0.5}}})}},0,{{#ifexpr:{{{3|0.5}}}>0.75|{{#expr:-2*{{{3|0.5}}}+2...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Usage

For SW:1226. Highlights a block of textbased on its believed translation quality. To avoid nesting, incorporates rollover by itself.

{{TranslationQuality|translated text|original text|quality}}

"quality" should be a number between 0.0 and 1.0, where 1.0 is "perfect" and 0.0 is "gibberish".

If the translated text is set to "?", then the untranslated text will be displayed in "gibberish" colour.

For simplicity, assumes that values outside the 255-0 range (such as -95 or 382) will be clamped to 255 or 0. If someone says this results in problems with a particular browser, note such on the talk page.