Template:PageLang/doc

Function
Return language code with a prior slash (/), if current page (or target page) is linguistic subpage.

Syntax

 * Target Page (Optional)