Kentsmith9 (talk | contribs) (Created doc page for template) |
Kentsmith9 (talk | contribs) (Reformatted) |
||
Line 1: | Line 1: | ||
{{doc subpage}} | {{doc subpage}} | ||
This template creates a point on a page that can be linked from other pages. | |||
== Use == | |||
Place the following example code on a page in the spot to which you need to link: | |||
<pre> | |||
{{Anchor|Name for the link on the page}} | |||
</pre> | |||
Then from another page you can enter the code: | Then from another page you can enter the code: | ||
<pre> | |||
<nowiki>[[</nowiki>PageNameWithNewAnchor#Name for the link on the page<nowiki>]]</nowiki> | |||
</pre> | |||
or if it is on the current page you can alternately use: | or if it is on the current page you can alternately use: | ||
<pre> | |||
<nowiki>[[</nowiki>#Name for the link on the page<nowiki>]]</nowiki> | |||
</pre> | |||
Note that both entries can also use the pipe (|) to display alternate text to the user instead of the actual link name. | Note that both entries can also use the pipe character (|) to display alternate text to the user instead of the actual link name. | ||
== Page display == | |||
{{TemplateNotDisplayed}} | {{TemplateNotDisplayed}} |
Revision as of 06:16, 23 February 2014
This is a documentation subpage for . It contains usage information, categories and other content that is not part of the original template page. |
This template creates a point on a page that can be linked from other pages.
Use
Place the following example code on a page in the spot to which you need to link:
{{Anchor|Name for the link on the page}}
Then from another page you can enter the code:
[[PageNameWithNewAnchor#Name for the link on the page]]
or if it is on the current page you can alternately use:
[[#Name for the link on the page]]
Note that both entries can also use the pipe character (|) to display alternate text to the user instead of the actual link name.
Page display
This template does not generate visible text in the Wiki page.