Template:Anchor/doc:修订间差异

(merge from offical wiki)
 
(文本替换 - 替换“{{template doc page viewed directly}}</noinclude>”为“{{template doc page viewed directly}}</noinclude>[[en:{{FULLPAGENAME}}]]”)
 
第1行: 第1行:
<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude>
<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude>[[en:{{FULLPAGENAME}}]]
    <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
    <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
The {{template|anchor}} template can be used to manually create an anchor on a page out of any given text. For example, using <code><nowiki>{{anchor|AAR}}</nowiki></code> on the [[jargon]] page will allow other pages to link to <code><nowiki>[[jargon#AAR|AAR]]</nowiki></code>; the link will immediately jump to the definition of "AAR".
The {{template|anchor}} template can be used to manually create an anchor on a page out of any given text. For example, using <code><nowiki>{{anchor|AAR}}</nowiki></code> on the [[jargon]] page will allow other pages to link to <code><nowiki>[[jargon#AAR|AAR]]</nowiki></code>; the link will immediately jump to the definition of "AAR".

2022年3月8日 (二) 21:05的最新版本

这是 Template:Anchor模板文档
当直接浏览时,使用变量可能会失效,请不要使用硬编码来代替页面名或地址。

The {{anchor}} template can be used to manually create an anchor on a page out of any given text. For example, using {{anchor|AAR}} on the jargon page will allow other pages to link to [[jargon#AAR|AAR]]; the link will immediately jump to the definition of "AAR".