Difference between revisions of "Template:Translated From"

From Creative Commons
Jump to: navigation, search
(noinclude moved to bottom; page categorized)
Line 1: Line 1:
<noinclude>
+
<includeonly>
 +
<div style="background-color:#ddffdd;" {{#if:{{{rtl|}}}|dir="rtl"| }} >
 +
<table border="0"><tr valign="top"><td width="5%">
 +
[http://wiki.creativecommons.org/CcWiki:Translate http://wiki.creativecommons.org/images/b/b5/Languages.png]
 +
</td>
 +
<td><strong>[[Translated from::{{{source}}}]]</strong><br/>
 +
{{#arraymap:
 +
{{#ask: [[{{{source}}}]] [[Has translation::+]]
 +
| ?Has translation=
 +
| format=list
 +
}}|,|x|x|, }}
 +
</td></tr></table>
 +
{{#if:{{#explode:{{PAGENAME}}|:|1}}
 +
|[[Has language::{{#explode:{{PAGENAME}}|:|0}}| ]]
 +
|[[Has language::{{CONTENTLANGUAGE}}| ]]}}
 +
</div><br clear="all" />
 +
</includeonly><noinclude>
  
 
This is the <code>Translated From</code> template.  It can be used to link to translations of an article in the wiki back to the original work.  When translating an article, add the following to your translation:
 
This is the <code>Translated From</code> template.  It can be used to link to translations of an article in the wiki back to the original work.  When translating an article, add the following to your translation:
Line 18: Line 34:
 
   | rtl=true
 
   | rtl=true
 
}}
 
}}
 +
</pre>
  
See also: [[Template:Translations]].
+
==See also==
</pre>
+
*[[CcWiki:Translate]]
 +
*[[Template:Translations]]
  
 +
[[Category:Translation templates]]
 
</noinclude>
 
</noinclude>
 
<includeonly>
 
<div style="background-color:#ddffdd;" {{#if:{{{rtl|}}}|dir="rtl"| }} >
 
<table border="0"><tr valign="top"><td width="5%">
 
[http://wiki.creativecommons.org/CcWiki:Translate http://wiki.creativecommons.org/images/b/b5/Languages.png]
 
</td>
 
<td><strong>[[Translated from::{{{source}}}]]</strong><br/>
 
{{#arraymap:
 
{{#ask: [[{{{source}}}]] [[Has translation::+]]
 
| ?Has translation=
 
| format=list
 
}}|,|x|x|, }}
 
</td></tr></table>
 
{{#if:{{#explode:{{PAGENAME}}|:|1}}
 
|[[Has language::{{#explode:{{PAGENAME}}|:|0}}| ]]
 
|[[Has language::{{CONTENTLANGUAGE}}| ]]}}
 
</div><br clear="all" />
 
</includeonly>
 

Revision as of 21:15, 24 July 2010


This is the Translated From template. It can be used to link to translations of an article in the wiki back to the original work. When translating an article, add the following to your translation:

{{Translated From
  | source=Source Article Name
}}

Translations should be placed into the language namespace; for example, Spanish articles are placed in the Es: namespace.

For right to left languages, an optional rtl=true flag can be included.

{{Translated From
  | source=Source Article Name
  | rtl=true
}}

See also