Template:Translation: Difference between revisions
pass translated language to {{{PAGENAME}}}/translations "template" |
Dfarning-bot (talk | contribs) m Robot: Changing Category:Translation |
||
| Line 5: | Line 5: | ||
| <!-- width=25% --> align=right | <font size="1">'''<span class="plainlinks">[{{fullurl:{{{source}}}|oldid={{{version}}}}} {{{version_display|{{:Template:Translation/original/lang-{{{lang}}}}}}}}]</span>'''</font> | | <!-- width=25% --> align=right | <font size="1">'''<span class="plainlinks">[{{fullurl:{{{source}}}|oldid={{{version}}}}} {{{version_display|{{:Template:Translation/original/lang-{{{lang}}}}}}}}]</span>'''</font> | ||
|- | |- | ||
| align=left | {{:{{{source}}}/translations | | align=left | {{:{{{source}}}/translations}} <small class="plainlinks"> [{{fullurl:{{{source}}}/translations|action=edit}} +/-] </small> | ||
| align=right | <font size="1">'''<span class="plainlinks">[{{fullurl:{{{source}}}|diff=current&oldid={{{version}}}}} {{{diff_display|{{:Template:Translation/changes/lang-{{{lang}}}}}}}}]</span>'''</font> | | align=right | <font size="1">'''<span class="plainlinks">[{{fullurl:{{{source}}}|diff=current&oldid={{{version}}}}} {{{diff_display|{{:Template:Translation/changes/lang-{{{lang}}}}}}}}]</span>'''</font> | ||
|- | |- | ||
|} | |} | ||
</div><includeonly>{{#ifeq: {{{status|xx}}} | {{translation/wanted/lang-{{{lang}}}}} | {{Translation/no translation/lang-{{{lang}}} | source = {{{source}}} }} | </div><includeonly>{{#ifeq: {{{status|xx}}} | {{translation/wanted/lang-{{{lang}}}}} | {{Translation/no translation/lang-{{{lang}}} | source = {{{source}}} }} {{ {{#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}} }}| }} }}</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 [[ | 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. | ||
== Usage == | == Usage == | ||
| Line 26: | Line 16: | ||
<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: "The | | source = <-- Source page name—ie: "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 40: | Line 30: | ||
== Samples == | == Samples == | ||
<nowiki>{{</nowiki> Translation | lang = es | source = | <nowiki>{{</nowiki> Translation | lang = es | source = Translating | version = 30534 <nowiki>}}</nowiki> | ||
{{ Translation | lang = es | source = | {{ Translation | lang = es | source = Translating | version = 30534 }} | ||
<nowiki>{{</nowiki> Translation | lang = es | source = | <nowiki>{{</nowiki> Translation | lang = es | source = Translating | version = 30534 | ||
| 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 = Translating | version = 30534 | ||
| 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:TranslationTeam]] | ||
</noinclude> | </noinclude> | ||