Template:anchor
Jump to navigation
Jump to search
- The following documentation is located at Template:anchor/documentation. [edit]
- Useful links: subpage list • links • redirects • transclusions • errors (parser/module) • sandbox
This template generates an html anchor (link target).
Parameters
|1=
(required)- 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.
|2=
,|3=
and so on (optional)- Any further IDs that you want to assign to the anchor.
Examples
Suppose you want to create an anchor for the abbreviation "Ezek." on the page Appendix:Abbreviations for English given names.
First choose one or more appropriate IDs, such as "Ezek-abbrev", "Ezek." and "Ezek", then replace Ezek. with
{{anchor|Ezek-abbrev|Ezek.|Ezek}}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.]]
or
[[Appendix:Abbreviations for English given names#Ezek.|Ezek.]]
or
[[Appendix:Abbreviations for English given names#Ezek|Ezek.]]