Terraria Wiki
Terraria Wiki
K (+{{übersetzung}})
K (Aktualisiert.)
Zeile 1: Zeile 1:
 
<includeonly><!--
 
<includeonly><!--
 
// auto detect if needed, only once per page.
-->{{#if:{{{1|}}}|<!-- manual set language
 
-->{{#dplvar:set|global:lang|{{{1|}}}}}<!--
+
-->{{#var:__global__lang|<!--
-->|<!--
+
-->{{#vardefineecho:__global__lang|<!--
  +
-->de<!--
// auto detect if needed, only once per page.
 
-->{{#if:{{#dplvar:global:lang}}||<!--
 
-->{{#dplvar:set|global:lang|de}}<!-- always be DE
 
 
-->}}<!--
 
-->}}<!--
// return lang
 
-->{{#dplvar:global:lang}}<!--
 
 
-->}}<!--
 
-->}}<!--
--></includeonly><noinclude>
+
--></includeonly><!--
  +
  +
--><noinclude>
 
{{übersetzung}}
 
{{übersetzung}}
Return language setting, auto detect by page url or manual set, used by other templates for l10n.
+
Return language setting, auto detect based on page URL or manually set, used by other templates for l10n.
   
 
== Usage ==
 
== Usage ==
 
Manual set language:
 
 
<code><nowiki>{{lang|<langcode>}}</nowiki></code>
 
 
<code><nowiki><langcode></nowiki></code> is 2-characters language code: en/es/it ... etc.
 
 
 
 
Get language code (auto detect or previously set):
 
Get language code (auto detect or previously set):
   
<code><nowiki>{{lang}}</nowiki></code>
+
<code><nowiki>{{lang}}</nowiki></code> → {{lang}}
   
  +
== See also ==
It will return 2-characters language code: en/es/it ... etc.
 
  +
* {{tl|lang/set}}
   
[[Category:Translation projects]]
 
 
</noinclude>
 
</noinclude>

Version vom 12. Mai 2020, 21:23 Uhr

Important.svg Diese Seite ist nicht oder unvollständig übersetzt.
Hilf mit, indem du den Text übersetzt und anschließend diesen Hinweis entfernst. Dies entfernt diese Seite auch aus der Liste von Seiten mit unzureichender Übersetzung.

Return language setting, auto detect based on page URL or manually set, used by other templates for l10n.

Usage

Get language code (auto detect or previously set):

{{lang}} → de

See also