Difference between revisions of "Template:Pagelang"

From WPRDC Wiki
Jump to navigation Jump to search
>Shirayuki
m (style)
>Shirayuki
(This template should return empty string if the pagename does not end with "/en" for consistency)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#ifeq:{{#titleparts:{{{1|{{PAGENAME}}}}}||-1}}|{{#titleparts:{{{1|{{PAGENAME}}}}}|1}}
{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|{{{1|}}}}}|en
  |
|{{#ifeq:{{#titleparts:{{{1|{{PAGENAME}}}}}||-1}}|en
  |{{#ifeq:{{#titleparts:{{{1|{{PAGENAME}}}}}||-1}}|{{lc:{{PAGENAME:{{#titleparts:{{{1|{{PAGENAME}}}}}||-1}}}}}}
  |{{#invoke:Template translation|getLanguageSubpage|{{{1|}}}}}
    |{{#ifeq:{{#titleparts:{{{1|{{PAGENAME}}}}}||-1}}|{{urlencode:{{#titleparts:{{{1|{{PAGENAME}}}}}||-1}}}}
      |{{#ifeq:{{lc:{{#titleparts:{{{1|{{PAGENAME}}}}}||-1}}}}|{{ucfirst:{{lc:{{#titleparts:{{{1|{{PAGENAME}}}}}||-1}}}}}}
        |
        |{{#switch:{{#titleparts:{{{1|{{PAGENAME}}}}}||-1}}
          |doc|layout|sandbox|testcases|init|preload=
          |#default={{#titleparts:{{{1|{{PAGENAME}}}}}||-1}}
        }}
      }}
    }}
   }}
   }}
}}<noinclude>{{Documentation}}</noinclude>
|{{#invoke:Template translation|getLanguageSubpage|{{{1|}}}}}
}}<noinclude>
{{Documentation}}
</noinclude>

Latest revision as of 01:45, 10 November 2019

Lua error in Module:TNT at line 158: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Documentation.tab.