ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

Difference between revisions of "Template:En"

From ModEnc
Jump to: navigation, search
(Situation if not in main namespace)
(Modify Category)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>
+
<includeonly>{{#switch:{{#titleparts:{{FULLPAGENAME}}|25|-1}}<!--Add language code below
* '''Language''': <!--
+
-->|zh-Hant|zh-Hans=
-->{{#ifeq:{{NAMESPACE}}|<!--If this page's namespace equal to NULL (that means it's namespace is main)
+
* '''Language''': [[{{#titleparts:{{FULLPAGENAME}}|-1}}|English]]<!--
-->|[[{{#titleparts:{{PAGENAME}}|25|2}}|English]]<!--/zh-Hans/PAGENAME to /PAGENAME (if in main namespace)
+
-->|#default=<!--Display nothing if this page isn't a non English page-->}}[[Category:Non English Page]]</includeonly><noinclude>
-->|[[{{#titleparts:{{FULLPAGENAME}}|-1}}|English]]<!--/PAGENAME/zh-Hans to /PAGENAME (if not in main namespace)
 
-->}}[[Category:Chinese Page]]</includeonly><noinclude>
 
 
{{Doc}}[[Category:Language Link]]</noinclude>
 
{{Doc}}[[Category:Language Link]]</noinclude>

Latest revision as of 06:28, 19 August 2021

Template-info.png Template Documentation  [View] [Edit] [History] [Help] [Refresh]

此模板将创建一个指向此页面对应的英语页面的链接。

  • 在创建模板{{Zh-Hans}}指向的简体汉语页面之后,应在该页面底部加入此模板。


This Template will create a internal link to the English page corresponding to this page.

  • You should add this template at the bottom of the simplified Chinese page, which the template {{Zh-Hans}} point to, after the page is created.