Template:Translation: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(recovering an old botched attempt... to replace Translated Page) |
||
Line 1: | Line 1: | ||
<div style="border-top:1px solid #888888; border-bottom:1px solid #888888; margin:0px;"> |
|||
<div style="background:#2DB380; color:white;"> This page is a translation of '''[[{{{original}}}]]'''. |
|||
{| width="100%" cellpadding="0" cellspacing="0" style="background-color:#0093d0; color:white" |
|||
<br>Also available in = {{#if:{{{es<includeonly>|</includeonly>}}} | [[{{{es}}}|español]] -}} {{ #if: {{{pt<includeonly>|</includeonly>}}} | [[{{{pt}}}|português]] -}} {{ #if: {{{zh<includeonly>|</includeonly>}}} | [[{{{zh}}}|中文 (Simplified Chinese)]] =}} Please use the [[{{NAMESPACE}} talk:{{PAGENAME}}|<font color="white"><b>talk page</b></font>]] for your comments.</div> |
|||
|- |
|||
|width=75% align=left | <font size="1">Translation of '''[[{{{source}}}|{{{source_display|{{{source}}}}}}]]'''</font> |
|||
|width=25% align=right | <font size="1">'''[{{fullurl:{{{source}}}|oldid={{{version}}}}} {{{version_display|original}}}]'''</font> |
|||
|- |
|||
!width=75% align=left | {{:{{{source}}}/translations}} |
|||
|width=25% align=right | <font size="1">'''[{{fullurl:{{{source}}}|diff=current&oldid={{{version}}}}} {{{diff_display|diff}}}]'''</font> |
|||
|- |
|||
|} |
|||
</div><noinclude><includeonly>[[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. |
|||
⚫ | |||
<noinclude> |
|||
⚫ | |||
<nowiki>{{Translation | original=One Laptop per Child |
|||
| es=Un portátil por niño |
|||
| pt=Um Laptop para cada Criança |
|||
| zh=One Laptop per Child zh }}</nowiki> |
|||
<nowiki>{{</nowiki> Translation |
|||
Generates: |
|||
| lang = <-- 2/3 character language-code of the translation—ie: <tt>en, es, ...</tt> --> |
|||
| source = <-- Source page name—ie: "The OLPC Wiki" (sans quotes) --> |
|||
| version = <-- Version ID# of the edition being translated or last updated --> |
|||
| ''source_display'' = <-- OPTIONAL - display string to the source link above |
|||
default = value of ''source'' --> |
|||
| ''version_display'' = <-- OPTIONAL - display string for the translated ''version'' link |
|||
default = "original" --> |
|||
| ''diff_display'' = <-- OPTIONAL - display string for the ''differences'' to current link |
|||
default = "diff" --> |
|||
<nowiki>}}</nowiki> |
|||
== Samples == |
|||
---- |
|||
{{Translation | original=One Laptop per Child |
|||
<nowiki>{{</nowiki> Translation | lang = es | source = The OLPC Wiki | version = 30534 <nowiki>}}</nowiki> |
|||
| es=Un portátil por niño |
|||
{{ Translation | lang = es | source = The OLPC Wiki | version = 30534 }} |
|||
| pt=Um Laptop para cada Criança |
|||
<nowiki>{{</nowiki> Translation | lang = es | source = The OLPC Wiki | version = 30534 |
|||
| zh=One Laptop per Child zh }} |
|||
| source_display = original | version_display = versión traducida | diff_display = últimos cambios <nowiki>}}</nowiki> |
|||
---- |
|||
{{ Translation | lang = es | source = The OLPC Wiki | version = 30534 |
|||
References: [http://en.wikipedia.org/wiki/Help:Magic_words Magic Words], [http://meta.wikimedia.org/wiki/ParserFunctions Parser Functions] & [http://meta.wikimedia.org/wiki/ParserFunctions#Installation its installation]. |
|||
| source_display = original | version_display = versión traducida | diff_display = últimos cambios }} |
|||
</noinclude> |
</noinclude> |
Revision as of 20:27, 3 April 2007
Translation of [[{{{source}}}|{{{source}}}]] | [{{fullurl:{{{source}}}|oldid={{{version}}}}} original] |
{{:{{{source}}}/translations}} | [{{fullurl:{{{source}}}|diff=current&oldid={{{version}}}}} diff] |
---|
This template (in conjunction with Template:Translations—note the plural—and the source/translations 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
{{ Translation | lang = <-- 2/3 character language-code of the translation—ie: en, es, ... --> | source = <-- Source page name—ie: "The OLPC Wiki" (sans quotes) --> | version = <-- Version ID# of the edition being translated or last updated --> | source_display = <-- OPTIONAL - display string to the source link above default = value of source --> | version_display = <-- OPTIONAL - display string for the translated version link default = "original" --> | diff_display = <-- OPTIONAL - display string for the differences to current link default = "diff" --> }}
Samples
{{ Translation | lang = es | source = The OLPC Wiki | version = 30534 }}
Translation of The OLPC Wiki | original |
english | عربي | پښتو | български | deutsch | español | français | kreyòl ayisyen | italiano | 日本語 | 한국어 | монгол | Bahasa Melayu | नेपाली | norsk | português | română | русский | kinyarwanda | türkçe | 中文 | 繁體中文 |
diff |
---|
{{ Translation | lang = es | source = The OLPC Wiki | version = 30534 | source_display = original | version_display = versión traducida | diff_display = últimos cambios }}
Translation of original | versión traducida |
english | عربي | پښتو | български | deutsch | español | français | kreyòl ayisyen | italiano | 日本語 | 한국어 | монгол | Bahasa Melayu | नेपाली | norsk | português | română | русский | kinyarwanda | türkçe | 中文 | 繁體中文 |
últimos cambios |
---|