Template:User translator: Difference between revisions

From OLPC
Jump to navigation Jump to search
(inspired by wikimedia)
 
m (remove redundant Category:OBX templates)
 
(10 intermediate revisions by 2 users not shown)
Line 2: Line 2:
{| cellpadding="1" cellspacing="0" style="width:238px;background-color:#dcdcdc"
{| cellpadding="1" cellspacing="0" style="width:238px;background-color:#dcdcdc"
|-
|-
| style="width:45px;height:45px;background-color:#fff;text-align:center;font-size:14pt" | [[Image:Crystal 128 fonts.png|33px|none|Translation]]
| style="width:45px;height:45px;background-color:#fff;text-align:center;font-size:14pt" | [[Image:Translate icon1.svg|40px|none|Translation]]
| style="font-size:8pt;padding:4pt;line-height:1.25em" | This Translator translates from ({{{1}}})&rarr;({{{2}}})<br />'''[[:Category:Translators {{{1}}}-{{{2}}}|({{{1}}}) {{#language:{{{1}}}}}&rarr;{{#language:{{{2}}}}} ({{{2}}})]]'''.
| style="font-size:8pt;padding:4pt;line-height:1.25em" | [[:Category:Translators {{{1}}}-{{{2}}}|Translators]]: ([[:Category:User {{{1}}}|{{{1}}}]]) &rarr; ([[:Category:User {{{2}}}|{{{2}}}]])<br />'''[[:Category:Translations lang-{{{2}}}|{{#language:{{{1}}}}} &rarr; {{#language:{{{2}}}}}]]'''.
|}
|}
</div><includeonly>[[Category:Translators {{{1}}}-{{{2}}}|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Language user templates]]{{-}}
</div><includeonly>[[Category:Translators {{{1}}}-{{{2}}}|{{PAGENAME}}]][[Category:Translators|{{PAGENAME}}]]</includeonly><noinclude>{{-}}
<!-- OLD IMAGE USED: [[Image:Crystal 128 fonts.png|33px|none|Translation]] -->

This template will categorize you as a translator in a specific direction (lang-a to lang-b), allowing for non-symmetrical capabilities.
This template will categorize you as a translator in a specific direction (lang-a to lang-b), allowing for non-symmetrical capabilities.


Line 13: Line 13:
{| border=1 cellspacing=0
{| border=1 cellspacing=0
|-
|-
! Template output !! Stand alone code !! [[Template:Babel-X|Babel-X box]] code
! Template output
! Stand alone code
! {{tl|userboxmacro}} code
|-
|-
| {{User translator|en|es}}
| {{User translator|en|es}} || <tt><nowiki>{{User translator|en|es}}</nowiki></tt> || <tt><nowiki>|translator{{!}}en{{!}}es|</nowiki></tt>
| <tt><nowiki>{{User translator|en|es}}</nowiki></tt>
| <tt><nowiki>|translator{{!}}en{{!}}es|</nowiki></tt>
|-
|-
| {{User translator|es|en}}
| {{User translator|es|en}} || <tt><nowiki>{{User translator|es|en}}</nowiki></tt> || <tt><nowiki>|translator{{!}}es{{!}}en|</nowiki></tt>
| <tt><nowiki>{{User translator|es|en}}</nowiki></tt>
| <tt><nowiki>|translator{{!}}es{{!}}en|</nowiki></tt>
|}
|}
{{WikipediaTemplate|Transbabel}}
{{MetaWikimedia|name=Transbabel}}
[[Category:Language user templates|Translator]]
[[Category:Userbox templates|Translator]]
</noinclude>
</noinclude>

Latest revision as of 23:20, 17 November 2008

Translation
[[:Category:Translators {{{1}}}-{{{2}}}|Translators]]: ([[:Category:User {{{1}}}|{{{1}}}]]) → ([[:Category:User {{{2}}}|{{{2}}}]])
[[:Category:Translations lang-{{{2}}}|{{{1}}} → {{{2}}}]].


This template will categorize you as a translator in a specific direction (lang-a to lang-b), allowing for non-symmetrical capabilities.

Usage

Template output Stand alone code {{userboxmacro}} code
{{User translator|en|es}} |translator{{!}}en{{!}}es|
{{User translator|es|en}} |translator{{!}}es{{!}}en|

This template was extracted, copied, adapted or otherwise inspired by an existing one in the Meta-Wikimedia, which is licensed under the GNU Free Documentation License.