Template:Langprefix: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{high-use}}
{{doc}}
{{doc}}


<includeonly>
<includeonly>


<onlyinclude>{{#ifeq:{{language}}|en||{{ROOTPAGENAME}}/}}</onlyinclude>
<onlyinclude>{{#ifeq:{{language}}|en||{{language}}/}}</onlyinclude>


</includeonly>
</includeonly>


[[Category:Language-related templates]]
[[Category:Language-related templates]]

Latest revision as of 13:18, 5 April 2025

Warning icon.png
This template is used on many pages and changes may be widely noticed.
Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage.
Consider discussing changes on the talk page before implementing them.
English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
View
Page history

Returns language prefix of the current page if it's valid language.

  • {{langprefix}} on Ru/Info_target becomes Ru/
  • {{langprefix}} on Sk/Info_target becomes Sk/
  • {{langprefix}} on Dota_2_Workshop_Tools/Addon_Overview/Addon_Creation becomes nothing just empty string
  • {{langprefix}} on Ko/Dota_2_Workshop_Tools/Addon_Overview/Addon_Creation becomes Ko/

See Also