Difference between revisions of "Template:Translation Notice"

From TitanRO Wiki
Jump to navigation Jump to search
(Add usage)
Line 1: Line 1:
<includeonly><div style="text-align: center;">'''You can read this article in the following language(s):'''</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;"
{| class="wikitable" style="text-align: center; margin-left: auto; margin-right: auto;"
{{ #if: {{{pt|}}} |
{{ #if: {{{pt|}}} |
{{!}} '''[[{{PAGENAME}}/pt|Português]]''' }}
{{!}} '''[[{{PAGENAME}}/pt|Português]]''' }}
{{ #if: {{{es|}}} |
{{ #if: {{{es|}}} |
{{!}} '''[[{{PAGENAME}}/es|Español]]''' }}
{{!}} '''[[{{PAGENAME}}/es|Español]]''' }}
{{ #if: {{{de|}}} |
{{!}} '''[[{{PAGENAME}}/de|Deutsch]]''' }}
|}</includeonly><noinclude>
|}</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).
<pre>
{{Translation Notice
|pt=true
|es=true
}}
</pre>
== Example ==
{{Translation Notice
{{Translation Notice
|pt=true
|pt=true
|es=true
}}
}}


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

Revision as of 17:42, 23 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 Español