Template:Translation of
Revision as of 17:01, 19 April 2011 by Hamilton Abreu (talk | contribs) (Created page with "{{#if:{{{1|}}} | {{#if: {{#ask: [[Has language::{{#ask:[[:{{{2|{{PAGENAME}}}}}]]|?Has language#=}}]] [[Translated from::{{{1}}}]] }} | {{...")
{{#if:
| {{#if: {{#ask: [[Has language::{{#ask:Translation of|?Has language#=}}]] [[Translated from::{{{1}}}]] }} | {{#ask: [[Has language::{{#ask:Translation of|?Has language#=}}]] [[Translated from::{{{1}}}]] }} | {{{1}}} }}
}} Template Translation of returns the translation of page X in the same language as the language of page Y, if it exists. If no such translation exists, it returns page X itself.
Use
{{Translation of|X|Y}}
Examples
{{Translation of|Main Page|Pt:Tradução}}
{{#if: Main Page
| {{#if: {{#ask:Pt:Tradução|?Has language=}} | {{#if: {{#ask: Translated from::Main Page [[Has language::{{#show: Pt:Tradução | ?Has language = | link=none}}]] }} | {{#ask: Translated from::Main Page [[Has language::{{#show: Pt:Tradução | ?Has language = | link=none}}]] | link=none }} | Main Page }} | Main Page }}
}}