Difference between revisions of "Template:Translated From"

From Creative Commons
Jump to: navigation, search
(removing surplus line below the languages box)
(corrected extraction of language code: PAGENAME fails for "Case Studies/Es:Page", returning language "Case Studies/Es:"; use SUBPAGENAME instead)
Line 9: Line 9:
 
{{#show: {{{source|}}}|mainlabel=-|?Has translation | format=list}}|,|x|x|, }}
 
{{#show: {{{source|}}}|mainlabel=-|?Has translation | format=list}}|,|x|x|, }}
 
</td></tr></table>
 
</td></tr></table>
{{#if:{{#explode:{{PAGENAME}}|:|1}}
+
{{#if:{{#explode:{{SUBPAGENAME}}|:|1}}
|[[Has language::{{#explode:{{PAGENAME}}|:|0}}| ]]
+
|[[Has language::{{#explode:{{SUBPAGENAME}}|:|0}}| ]]
 
|[[Has language::{{CONTENTLANGUAGE}}| ]]}}
 
|[[Has language::{{CONTENTLANGUAGE}}| ]]}}
 
</div>
 
</div>

Revision as of 00:20, 18 April 2011


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
}}

When used outside the main namespace, precede the page name by Namespace:. When used in a file description page, further precede the namespace by a colon:

{{Translated From
  | source=:File:Source File Description Name
}}

See also