MDN may have intermittent access issues April 18 13:00 - April 19 01:00 UTC. See for all notifications.


Revision 329133 of Template:錨

  • Revision slug: Template:錨
  • Revision title: Template:錨
  • Revision id: 329133
  • Created:
  • Creator: ethertank
  • Is current revision? No
  • Comment

Revision Content

Revision Source

<div class="noinclude">
<h3 name=".E9.8C.A8">錨</h3>
<p>用以插入至某連結錨點(anchor)的連結,例如 <code><span class="nowiki">{{anch|top}}</span></code> 會產生 <span class="nowiki"><a href="#top">top</a></span>(<span class="script">template.Anch("top")</span>)。要注意的是用此方法無法以不同於錨點名稱的字串當連結文字,例如無法以此將名為 top 的錨點以 <code><span class="nowiki"><a href="#top">頂端</top></span></code> 的方式顯示,因為這個樣板主要是為了快速製作錨點連結而生。</p>
<pre class="eval"><code><span class="nowiki">{{anch|top}}</span></code>
<pre class="eval"><span class="script">template.Anch("top")</span></pre>
Revert to this revision