Template:Link2Anchor

From OpenStreetMap Wiki
Jump to navigation Jump to search

This template create a link to an anchor <a name="*" /> or <div id=*"/> in the page by including a [[#target|display]] code.

There is an anchor at the top of wikipages with id="top" so the {{Link2Anchor|top}} would link to this anchor.

The toc entries make anchors that can be linked.

You can also create links in table cells with mediawiki code such as : | id="Chicago"| Chicago, the city so a {{Link2Anchor|Chicago|Chicago, the city}} link will link the cell and display Chicago, the city.