Difference between revisions of "Template:Anchor"

From NSV13
Jump to navigationJump to search
imported>Jordie0608
(Created page with "{{#if:{{{1|}}}|<span id="{{{1|}}}"></span>}}<noinclude> == How to use == <pre> <nowiki>{{anchor|Firesuit}}</nowiki> </pre> The anchor template works for making internal links ...")
m (1 revision imported: This is probably a mistake)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{#if:{{{1|}}}|<span id="{{{1|}}}"></span>}}<noinclude>
+
{{{{{|safesubst:}}}#invoke:anchor|main}}<noinclude>
== How to use ==
+
{{Documentation}}
<pre>
+
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
<nowiki>{{anchor|Firesuit}}</nowiki>
 
</pre>
 
The anchor template works for making internal links to specific parts of pages. For example, linking to [[Engineering_items#Firesuit]] (Assuming you already have the anchor on the engineering items page to direct the link) will load the page focused on the firesuit. This is useful when you don't have a <nowiki>===header===</nowiki> 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.
 
 
 
[[category:templates]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 17:40, 16 July 2020

Template documentation[create]