Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Anchor: Difference between revisions

Template page
No edit summary
mNo edit summary
 
Line 6: Line 6:




The anchor template works for making internal links to specific parts of pages. For example, linking to [[Chem_Guide#Dylovene]] (Assuming you already have the anchor on the chem guide page to direct the link) will load the page focused on Dylovene. This is useful when you don't have a ===header=== for the item in the page.
The anchor template works for making internal links to specific parts of pages. For example, linking to [[Chemistry#Dylovene]] (Assuming you already have the anchor on the Chemistry page to direct the link) will load the page focused on Dylovene. This is useful when you don't have a ===header=== for the item in the page.


Important note though; If the page already has a header with the same name as an anchor, a link to anchored item will go to whichever is first. so if the anchor is higher than the header, it will go to the anchor and vice versa. Alternatively, you can just make the anchor have a slightly different name to fix this.
Important note though; If the page already has a header with the same name as an anchor, a link to anchored item will go to whichever is first. so if the anchor is higher than the header, it will go to the anchor and vice versa. Alternatively, you can just make the anchor have a slightly different name to fix this.
</noinclude>
</noinclude>

Latest revision as of 17:38, 2 March 2021

How to use

{{anchor|Dylovene}}


The anchor template works for making internal links to specific parts of pages. For example, linking to Chemistry#Dylovene (Assuming you already have the anchor on the Chemistry page to direct the link) will load the page focused on Dylovene. This is useful when you don't have a ===header=== for the item in the page.

Important note though; If the page already has a header with the same name as an anchor, a link to anchored item will go to whichever is first. so if the anchor is higher than the header, it will go to the anchor and vice versa. Alternatively, you can just make the anchor have a slightly different name to fix this.