Template:Anchor

維基詞典,自由的多語言詞典
跳到导航 跳到搜索




This template generates an html anchor (link target).

Parameters[编辑]

|1=
The ID that you want to assign to the anchor. This can be almost anything and can include spaces, but double quote signs (") should be avoided. However, you should probably keep it short and concise, as it will have to be typed verbatim by anyone who wants to create a link to this anchor.

Examples[编辑]

Suppose you want to create an anchor for the abbreviation "Ezek." on the page Appendix:Abbreviations for English given names.

First choose an appropriate ID, such as "Ezek-abbrev", then replace Ezek. with

{{anchor|Ezek-abbrev}}Ezek.

This does not change the way the page looks.

Now, when you want to link to this line on the appendix page from within Wiktionary, you can use

[[Appendix:Abbreviations for English given names#Ezek-abbrev|Ezek.]]

See also[编辑]