Difference between revisions of "Template:Translation Notice"

From TitanRO Wiki
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div style="text-align: center;">'''You can read this article in the following languages:'''</div>
<includeonly><div style="text-align: center;">'''Read this article in the following language(s):'''</div>
{| class="wikitable" style="text-align: center; margin-left: auto; margin-right: auto; margin-top:5px;"
{{#if: {{{pt|}}} |
{{!}} '''[[{{PAGENAME}}/pt|Português]]'''}}
{{#if: {{{es|}}} |
{{!}} '''[[{{PAGENAME}}/es|Español]]'''}}
|}</includeonly><noinclude>
== Description ==
Use this template on any page that has corresponding translation sub-pages. The sub-pages will use the language code for that language (ex: Portuguese = pt, German = de, Spanish = es).
 
== Usage ==
Add parameters using the language code. For example, if the page has a Portuguese translation, add a |pt=true parameter. If a page has a Spanish and Portuguese translation add both paramaters |pt=true |es=true.
 
Currently the languages supported are Portuguese (pt), Spanish (es), and German (de).


{| class="wikitable" style="text-align: center; margin-left: auto; margin-right: auto;"
<pre>
{{ #if: {{{pt|}}} |
{{!}} [[{{PAGENAME}}/pt|Portuguese]] }}
{{ #if: {{{es|}}} |
{{!}} [[{{PAGENAME}}/es|Español]] }}
|}</includeonly><noinclude>
{{Translation Notice
{{Translation Notice
|pt=true
|pt=true
|es=true
|es=true
}}
</pre>
== Example ==
{{Translation Notice
|pt=true
}}
}}


[[Category:Templates|Translation Notice]]
[[Category:Templates|Translation Notice]]
</noinclude>
</noinclude>

Latest revision as of 17:45, 26 May 2018

Description

Use this template on any page that has corresponding translation sub-pages. The sub-pages will use the language code for that language (ex: Portuguese = pt, German = de, Spanish = es).

Usage

Add parameters using the language code. For example, if the page has a Portuguese translation, add a |pt=true parameter. If a page has a Spanish and Portuguese translation add both paramaters |pt=true |es=true.

Currently the languages supported are Portuguese (pt), Spanish (es), and German (de).

{{Translation Notice
|pt=true
|es=true
}}

Example

Read this article in the following language(s):
Português