Template:Translation: Difference between revisions
m 1 revision |
No edit summary |
||
| (5 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<div style="border-top:1px solid #888888; border-bottom:1px solid #888888; margin:0px;"> | <div style="border-top:1px solid #888888; border-bottom:1px solid #888888; margin:0px;"> | ||
<table width="100%" cellpadding="0" cellspacing="0" style="background-color:#d0e6f9; color:grey"> | |||
<tr> | |||
<td align="left"> <font size="1">{{:Template:Translation/translation of/lang-{{{lang}}}}} '''[[{{{source}}}|{{{source_display|{{{source}}}}}}]]'''</font></td> | |||
<td align="right"><font size="1">'''<span class="plainlinks">[{{fullurl:{{{source}}}|oldid={{{version}}}&redirect=no}} {{{version_display|{{:Template:Translation/original/lang-{{{lang}}}}}}}}]</span>'''</font> </td> | |||
</tr><tr> | |||
<td align="left"> {{:{{{source}}}/translations|translated={{{lang}}}}} <small class="plainlinks"> [{{fullurl:{{{source}}}/translations|action=edit}} +/-] </small></td> | |||
<td align="right"><font size="1">'''<span class="plainlinks">[{{fullurl:{{{source}}}|diff=current&oldid={{{version}}}}} {{{diff_display|{{:Template:Translation/changes/lang-{{{lang}}}}}}}}]</span>'''</font> </td> | |||
</tr> | |||
</table> | |||
</div><includeonly>{{#ifeq: {{{status|xx}}} | {{translation/wanted/lang-{{{lang}}}}} | {{Translation/no translation/lang-{{{lang}}} | source = {{{source}}} }} [[Category:{{#ifexist:Template:Translation/wanted/lang-{{{lang}}}|{{translation/wanted/lang-{{{lang}}}}}|Translations wanted/lang-{{{lang}}} }}]] {{ {{#if:{{NAMESPACE}}||:}}{{{source}}} }} | {{#ifeq:{{{status|}}} | {{translation/incomplete/lang-{{{lang}}}}} | {{#ifexist:Template:translation/translation-incomplete/lang-{{{lang}}}|{{translation/translation-incomplete/lang-{{{lang}}}}}|{{translation/translation-incomplete/lang-en}} }}[[Category:Ongoing translations/lang-{{{lang}}}]] | [[Category:Translations lang-{{{lang}}}]]}} }}</includeonly><noinclude> | |||
This template (in conjunction with [[Template:Translations]]—note the plural—and the <tt>source/translations</tt> page) are used to better keep track of the [[:Category:Translated Pages]] and the [[translating]] effort to lower the language barrier of the project.<font size="-1"> | |||
{| align="right" style="color:white;" | |||
|- | |- | ||
| | | style="background:#0093d0;" | raw || style="background:#76aac4;" | light || style="background:#3b9fca;" | mid | ||
| | |||
|- | |- | ||
| | | style="background:#76aac4;" | #76aac4 || style="background:#3b9fca;" | #3b9fca || style="background:#0093d0;" | #0093d0 | ||
| | |- style="color:black;" | ||
|- | | style="background:#3b9fca;" | #3b9fca || style="background:#0093d0;" | #0093d0 || style="background:#76aac4;" | #76aac4 | ||
| | |}</font> | ||
NOTE: The (blue) color scheme is based on the 'arrow' used for the ''Community'' in the [http://www.laptop.org laptop.org] site. A sample of colors used or thought about can be seen on the right, with further explorations found in the [[Sandbox#Translation & multilingual boxes|Sandbox]]. Comments about them are welcome. | |||
== Usage == | == Usage == | ||
| Line 16: | Line 26: | ||
<nowiki>{{</nowiki> Translation | <nowiki>{{</nowiki> Translation | ||
| lang = <-- 2/3 character language-code of the translation—ie: <tt>en, es, ...</tt> --> | | lang = <-- 2/3 character language-code of the translation—ie: <tt>en, es, ...</tt> --> | ||
| source = <-- Source page name—ie: " | | source = <-- Source page name—ie: "Welcome to the Sugar Labs wiki" (sans quotes) --> | ||
| version = <-- Version ID# of the edition being translated or last updated --> | | version = <-- Version ID# of the edition being translated or last updated --> | ||
| ''source_display'' = <-- OPTIONAL - display string to the source link above | | ''source_display'' = <-- OPTIONAL - display string to the source link above | ||
| Line 30: | Line 40: | ||
== Samples == | == Samples == | ||
<nowiki>{{</nowiki> Translation | lang = es | source = | <nowiki>{{</nowiki> Translation | lang = es | source = Welcome to the Sugar Labs wiki | version = 26654 <nowiki>}}</nowiki> | ||
{{ Translation | lang = es | source = | {{ Translation | lang = es | source = Welcome to the Sugar Labs wiki | version = 26654 }} | ||
<nowiki>{{</nowiki> Translation | lang = es | source = | <nowiki>{{</nowiki> Translation | lang = es | source = Welcome to the Sugar Labs wiki | version = 26654 | ||
| source_display = original | | source_display = original | ||
| version_display = versión traducida | | version_display = versión traducida | ||
| diff_display = últimos cambios <nowiki>}}</nowiki> | | diff_display = últimos cambios <nowiki>}}</nowiki> | ||
{{ Translation | lang = es | source = | {{ Translation | lang = es | source = Welcome to the Sugar Labs wiki | version = 26654 | ||
| source_display = original | version_display = versión traducida | diff_display = últimos cambios }} | | source_display = original | version_display = versión traducida | diff_display = últimos cambios }} | ||
[[Category: | [[Category:Language support]] | ||
[[Category:Languages (international)]] | |||
[[Category:Template]] | |||
</noinclude> | </noinclude> | ||