Template:Pagelang: Difference between revisions

Content deleted Content added
Created page with "{{#ifeq: {{SUBPAGENAME}} | {{BASEPAGENAME}} | en | {{SUBPAGENAME}} }}<noinclude> Get the language code of the current page from its title. e.g. Ways to Give/sv result is..."
use new Lua method in Module:Main
 
(6 intermediate revisions by 3 users not shown)
Line 1:
{{#invoke:Main|page_language}}<noinclude>{{Documentation}}
{{#ifeq: {{SUBPAGENAME}} | {{BASEPAGENAME}} | en | {{SUBPAGENAME}} }}<noinclude>
[[Category:Utility templates]]</noinclude>
 
Get the language code of the current page from its title. e.g. [[Ways to Give/sv]] result is <tt>sv</tt>, [[Ways to Give]] result is <tt>en</tt>
</noinclude>