Template:Language/prefix/doc

From Valve Developer Community
Jump to navigation Jump to search
Shortcut
pagelang

Returns language of the given page in lowercase based on prefix. Returns en on pages that don't start with valid language prefix.

  • {{pagelang}} on Ru/Info_target becomes ru
  • {{pagelang}} on Sk/Info_target becomes sk
  • {{pagelang}} on Dota_2_Workshop_Tools/Addon_Overview/Addon_Creation becomes en
  • {{pagelang}} on Ko/Dota_2_Workshop_Tools/Addon_Overview/Addon_Creation becomes ko

See Also