Template:Anchor

From HaloStation Wiki
Jump to navigation Jump to search

How to use

{{anchor|MA5B Assault Rifle}}


The anchor template works for making internal links to specific parts of pages. For example, linking to User:TopHatPenguin#MA5B Assault Rifle (Assuming you already have the anchor on the chem guide page to direct the link) will load the section of the page focused on the MA5B Assault Rifle. 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 the 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.

Example being if there is a header called ===MA5B Assault Rifle=== the anchor will link to there first.

I'll change the example here once I have a decent equipment page rolling.