Template:Redirects/i18n: Difference between revisions
Template page
More actions
nothing here should depend on interface language (floating side should depend on page content, colon should be based on actual translation, which is potentially different from the user language as this template is translated into only a handful of languages), automatically fill in template language based on the subpage title |
use {{TRANSLATIONLANGUAGE}}, use BCP-47 language code in HTML, make directionality explicit |
||
| (9 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
<languages /> | <languages/> | ||
<onlyinclude><div class="shortcutbox-template | <onlyinclude><div class="shortcutbox-template {{#switch:{{{float|}}}|left|right=shortcutbox-template-float{{{float}}}}} plainlinks noprint plainlist" lang="{{#bcp47:{{TRANSLATIONLANGUAGE}}}}" dir="{{#dir:{{TRANSLATIONLANGUAGE}}}}"><!-- | ||
--><templatestyles src="Redirects/styles.css" /><!-- | |||
--><div class="shortcutbox-template-header">[{{fullurl:Special:WhatLinksHere/Template:{{PAGENAMEE}}|hidelinks=1&hidetrans=1&namespace=10}} <translate><!--T:2--> {{PLURAL:<tvar name="1">{{#expr:1{{#if:{{{2|}}}|+1}}{{#if:{{{3|}}}|+1}}{{#if:{{{4|}}}|+1}}{{#if:{{{5|}}}|+1}}{{#if:{{{6|}}}|+1}}{{#if:{{{7|}}}|+1}}{{#if:{{{8|}}}|+1}}{{#if:{{{9|}}}|+1}}{{#if:{{{10|}}}|+1}}}}</tvar>|Redirect|Redirects}}:</translate>]</div><!-- | |||
--><ul lang="" dir="auto"><li>{{{{{pre|}}}[{{fullurl:Template:{{{1|{{PAGENAME}}}}}|redirect=no}} {{{1|{{PAGENAME}}}}}]}}</li><!-- | |||
}} | |||
--> | |||
--><ul><li>{{{{{pre|}}}[{{fullurl:Template:{{{1|{{PAGENAME}}}}}|redirect=no}} {{{1|{{PAGENAME}}}}}]}}</li><!-- | |||
-->{{#if:{{{2|}}}|<li>{{{{{pre2|}}}[{{fullurl:Template:{{{2|}}}|redirect=no}} {{{2|}}}]}}</li>}}<!-- | -->{{#if:{{{2|}}}|<li>{{{{{pre2|}}}[{{fullurl:Template:{{{2|}}}|redirect=no}} {{{2|}}}]}}</li>}}<!-- | ||
-->{{#if:{{{3|}}}|<li>{{{{{pre3|}}}[{{fullurl:Template:{{{3|}}}|redirect=no}} {{{3|}}}]}}</li>}}<!-- | -->{{#if:{{{3|}}}|<li>{{{{{pre3|}}}[{{fullurl:Template:{{{3|}}}|redirect=no}} {{{3|}}}]}}</li>}}<!-- | ||
Latest revision as of 19:03, 10 November 2025
NOTE: Please do not use this template directly! This is just for translation. Use {{Redirects}} instead.