Template:Redirects/i18n: Difference between revisions
Template page
More actions
green color is misleading an unaccessible; it also hides broken redirects that should still be red (conditionally instead of blue);fix floatting side |
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 |
||
| Line 1: | Line 1: | ||
<languages /> | <languages /> | ||
<onlyinclude><div class="shortcutbox-template plainlinks noprint plainlist" style="font-size:x-small;line-height:1.4;margin:2px .5em;{{#switch: {{#switch: {{{float|}}} | <onlyinclude><div class="shortcutbox-template plainlinks noprint plainlist" style="font-size:x-small;line-height:1.4;margin:2px .5em;{{#switch: {{#switch: {{{float|}}} | ||
|left = left |right = right |#default = {{Dir|{{ | |left = left |right = right |#default = {{Dir|{{PAGELANGUAGE}}|left|right}} | ||
}} | }} | ||
|left = float:left;margin-left:0; | |left = float:left;margin-left:0; | ||
| Line 7: | Line 7: | ||
}}border:1px solid #AAA;background:#FFF;padding:1px .5em;text-align:center"><!-- | }}border:1px solid #AAA;background:#FFF;padding:1px .5em;text-align:center"><!-- | ||
-->{{Lang | -->{{Lang | ||
|1= | |1={{#invoke:Caller title|lang|base=Template:Redirects/i18n}} | ||
|2=[{{fullurl:Special:WhatLinksHere/Template:{{PAGENAMEE}}|hidelinks=1&hidetrans=1&namespace=10}} <span style="text-decoration:underline;color:black"><translate><!--T:2--> | |2=[{{fullurl:Special:WhatLinksHere/Template:{{PAGENAMEE}}|hidelinks=1&hidetrans=1&namespace=10}} <span style="text-decoration:underline;color:black"><translate><!--T:2--> {{PLURAL:<tvar|1>{{#expr:0{{#if:{{{1|}}}|+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}}}}</>|Redirect|Redirects}}:</translate></span>] | ||
}}<!-- | }}<!-- | ||
--><ul><li>{{{{{pre|}}}[{{fullurl:Template:{{{1|{{PAGENAME}}}}}|redirect=no}} {{{1|{{PAGENAME}}}}}]}}</li><!-- | --><ul><li>{{{{{pre|}}}[{{fullurl:Template:{{{1|{{PAGENAME}}}}}|redirect=no}} {{{1|{{PAGENAME}}}}}]}}</li><!-- | ||