Difference between revisions of "Template:Otherlang2/doc"

From Valve Developer Community
Jump to: navigation, search
m
m (Replaced content with "<noinclude>{{Delete|Useless.}}</noinclude>")
(Tag: Replaced)
 
Line 1: Line 1:
{{Documentation subpage}}
+
<noinclude>{{Delete|Useless.}}</noinclude>
<!-- Please place categories where indicated at the bottom of this page.) -->
 
{{Note|This template is deprecated. Use {{tl|lang}} instead.}}
 
 
 
''See also: [[:Template:Lang]]''
 
 
 
This template adds available translations for the page to the top through the use of flags.
 
 
 
To prevent issues, this template must be placed '''at the very beginning of a page'''.
 
 
 
{{tip|When contributing a new translation to a document that already has other translations, please carry over the existing translations to the otherlang2 template of your contributed page. This way all multilingual pages are linked.}}
 
 
 
{{note|Using ''<nowiki>noborder=true</nowiki>'' is recommended when translating [[SFM]] pages, though it is optional in any other case. It removes the border surrounding the flag icons used in the default otherlang2 template. This can be useful in some pages in which the template doesn't appear correctly.}}
 
== Syntax ==
 
<pre>
 
{{otherlang2
 
| noborder=true (OPTIONAL)
 
| title=localized page display title
 
| lang=page:lang
 
| lang2=page:lang2
 
| etc...
 
}}
 
</pre>
 
 
 
{{warning|Do not include the language of the current page. This will only confuse readers.}}
 
 
 
=== Example ===
 
On a page called [[:Category:Programming:es]]:
 
<pre>
 
{{otherlang2
 
| title=Categoría:Programación
 
| de=Category:Programming:de
 
| en=Category:Programming
 
| jp=Category:Programming:jp
 
| pl=Category:Programming:pl
 
| ru=Category:Programming:ru
 
| zh-cn=Category:Programming:zh-cn
 
}}
 
</pre>
 
 
 
Note that:
 
* The language "<code>es</code>" is not included, as it is the language of the page that template is being used on.
 
* <code>title</code> is assigned the translated name of the page, and will appear as the display title (heading) for the page. This can replace the existing <nowiki>{{wrongtitle}} and {{DISPLAYTITLE}}</nowiki> templates currently in common use.
 
* The English page has no suffix.
 
 
 
== Available Languages ==
 
{| class="standard-table"
 
! Language
 
! Syntax
 
! Result
 
|- id="en"
 
|English
 
|en=Page_name
 
|[[File:En.png]]
 
|- id="zh-cn"
 
|Chinese (PRC)
 
|zh-cn=Page_name:zh-cn
 
|[[File:Zh-cn.png]]
 
|- id="zh-tw"
 
|Chinese (Taiwan)
 
|zh-tw=Page_name:zh-tw
 
|[[File:Tw.png]]
 
|- id="cs"
 
|Czech
 
|cs=Page_name:cs
 
|[[File:Cs.png]]
 
|- id="nl"
 
|Dutch
 
|nl=Page_name:nl
 
|[[File:nl.png]]
 
|- id="fr"
 
|French
 
|fr=Page_name:fr
 
|[[File:Fr.png]]
 
|- id="ka"
 
|Georgian
 
|ka=Page_name:ka
 
|[[File:Ka.png]]
 
|- id="de"
 
|German
 
|de=Page_name:de
 
|[[File:De.png]]
 
|- id="he"
 
|Hebrew
 
|he=Page_name:he
 
|[[File:He.png]]
 
|- id="hu"
 
|Hungarian
 
|hu=Page_name:hu
 
|[[File:Hu.png]]
 
|- id="it"
 
|Italian
 
|it=Page_name:it
 
|[[File:It.png]]
 
|- id="jp"
 
|Japanese
 
|jp=Page_name:jp
 
|[[File:Jp.png]]
 
|- id="ko"
 
|Korean
 
|ko=Page_name:ko
 
|[[File:Ko.png]]
 
|- id="no"
 
|Norwegian
 
|no=Page_name:no
 
|[[File:No.png]]
 
|- id="pl"
 
|Polish
 
|pl=Page_name:pl
 
|[[File:Pl.png]]
 
|- id="pt"
 
|Portuguese
 
|pt=Page_name:pt
 
|[[File:Pt.png]]
 
|- id="pt-br"
 
|Portuguese (Brazilian)
 
|pt-br=Page_name:pt-br
 
|[[File:Pt-br.png]]
 
|- id="ru"
 
|Russian
 
|ru=Page_name:ru
 
|[[File:Ru.png]]
 
|- id="ru"
 
|Ukranian
 
|ua=Page_name:ua
 
|[[File:ua.png]]
 
|- id="es"
 
|Spanish
 
|es=Page_name:es
 
|[[File:Es.png]]
 
|- id="cat"
 
|Catalan/Valencian
 
|cat=Page_name:cat
 
|[[File:cat.png]]
 
|- id="sv"
 
|Swedish
 
|sv=Page_name:sv
 
|[[File:Sv.png]]
 
|- id="tr"
 
|Turkish
 
|tr=Page_name:tr
 
|[[File:Tr.png]]
 
|- id="ro"
 
|Romanian
 
|ro=Page_name:ro
 
|[[File:Ro.png]]
 
|- id="gr"
 
|Greek
 
|gr=Page_name:gr
 
|[[File:El.png]]
 
|}
 
<includeonly>{{sandbox other||
 
<!-- Categories below this line, please -->
 
 
 
}}</includeonly>
 

Latest revision as of 08:54, 13 February 2023

Warning icon.png
This template has been marked as a candidate for speedy deletion for the following reason:
Useless.
If you object to this decision, then please discuss why hereIf this page doesn't meet the criteria for speedy deletion, then please remove this notice, but do not remove it from pages that you have created yourself
Administrators - Remember to check if anything links here and the page history (last edit) before deleting.