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
m (Move the introduction to the doc of this template)
(Situation if not in main namespace)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
* '''Language''': [[{{#titleparts:{{PAGENAME}}|25|2}}|English]][[Category:Chinese Page]]</includeonly><noinclude>
+
* '''Language''': <!--
{{Doc}}</noinclude>
+
-->{{#ifeq:{{NAMESPACE}}|<!--If this page's namespace equal to NULL (that means it's namespace is main)
 +
-->|[[{{#titleparts:{{PAGENAME}}|25|2}}|English]]<!--/zh-Hans/PAGENAME to /PAGENAME (if in main namespace)
 +
-->|[[{{#titleparts:{{FULLPAGENAME}}|-1}}|English]]<!--/PAGENAME/zh-Hans to /PAGENAME (if not in main namespace)
 +
-->}}[[Category:Chinese Page]]</includeonly><noinclude>
 +
{{Doc}}[[Category:Language Link]]</noinclude>

Revision as of 05:03, 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.