<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.secondlife.com/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AVisible_anchor%2Fdoc</id>
	<title>Template:Visible anchor/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.secondlife.com/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AVisible_anchor%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.secondlife.com/w/index.php?title=Template:Visible_anchor/doc&amp;action=history"/>
	<updated>2026-04-10T23:12:30Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://wiki.secondlife.com/w/index.php?title=Template:Visible_anchor/doc&amp;diff=1213448&amp;oldid=prev</id>
		<title>Gwyneth Llewelyn: Shamelessly copied from wikipedia.org and adapted for SL Wiki</title>
		<link rel="alternate" type="text/html" href="https://wiki.secondlife.com/w/index.php?title=Template:Visible_anchor/doc&amp;diff=1213448&amp;oldid=prev"/>
		<updated>2023-02-12T01:29:04Z</updated>

		<summary type="html">&lt;p&gt;Shamelessly copied from wikipedia.org and adapted for SL Wiki&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&amp;lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&amp;gt;&lt;br /&gt;
{{tsh|visanc|vanchor}}&lt;br /&gt;
{{Uses TemplateStyles|Template:Visible anchor/styles.css}}&lt;br /&gt;
&lt;br /&gt;
The template {{tnull|Visible anchor}} inserts one or more [[HTML element#Anchor|HTML anchors]] in a page. Those locations can then be linked to using &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[#link|...]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; syntax. Unlike {{tl|Anchor}}, the &amp;#039;&amp;#039;&amp;#039;first parameter&amp;#039;&amp;#039;&amp;#039; will be visible text on the page.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{visible anchor|anchor 1[|anchor 2][|text=display text]}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The template can be used with up to 10 anchor names. Anchor names are case sensitive, so &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Visible anchor|Anchor name 1}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Visible anchor|Anchor Name 1}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; are not equivalent. When making an anchor, in general capitalize the first letter of the anchor name, and follow the same capitalization guidelines as headers (see [[MOS:HEAD|Manual of Style: Headers]] for more information). An optional {{para|text}} parameter can be added in order to specify the text to display in the anchor. By default, the value of the first parameter is used. The redirect {{tl|vanchor}} can also be used.&lt;br /&gt;
&lt;br /&gt;
===Linking to anchors===&lt;br /&gt;
&lt;br /&gt;
Link to an anchor in the same article using just the anchor name, e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[#Anchor name]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. (In the Visual Editor, type &amp;lt;code&amp;gt;#Anchor name&amp;lt;/code&amp;gt; into the link field.)&lt;br /&gt;
&lt;br /&gt;
From a different article, link to an anchor by specifying the article name, followed by a &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, then the anchor name. e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Article name#Anchor name]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; will be visible in the link text. To prevent this, give the link a display title in the typical manner: After a pipe character (&amp;lt;code&amp;gt;|&amp;lt;/code&amp;gt;) in the wikitext (&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[#Anchor name|Anchor name]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;), or by editing the text of the link in the Visual Editor.&lt;br /&gt;
&lt;br /&gt;
===Destination highlighting===&lt;br /&gt;
When a link to an anchor is followed, the destination anchor&amp;#039;s visible text will typically be highlighted with a shaded background. (May vary based on the reader&amp;#039;s browser or selected wiki skin.) For example:&amp;lt;blockquote&amp;gt;&amp;#039;&amp;#039;{{vanchor|this|text=This text anchor}}&amp;#039;&amp;#039; will be highlighted after following  [[#this|this link which targets it]].&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;1&lt;br /&gt;
! Code	&lt;br /&gt;
! Result	&lt;br /&gt;
! Link&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{vanchor|Foo}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;	&lt;br /&gt;
| {{vanchor|Foo}}	&lt;br /&gt;
| [[#Foo]]&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{vanchor|Bar|Baz}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;	&lt;br /&gt;
| {{vanchor|Bar|Baz}}	&lt;br /&gt;
| [[#Bar]], [[#Baz]]&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{vanchor|Qux|text=This is the text that will be displayed.}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;	&lt;br /&gt;
| {{vanchor|Qux|text=This is the text that will be displayed.}}	&lt;br /&gt;
| [[#Qux]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Limitations ==&lt;br /&gt;
{|class=&amp;quot;wikitable floatright&amp;quot;&lt;br /&gt;
|---&lt;br /&gt;
! Character	&lt;br /&gt;
! [[Character entity reference|Code]]	&lt;br /&gt;
! Template	&lt;br /&gt;
! Meaning&lt;br /&gt;
|---&lt;br /&gt;
| &amp;amp;#22;	&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;amp;amp;quot;&amp;lt;/code&amp;gt; &amp;lt;br /&amp;gt;&amp;lt;code&amp;gt;&amp;amp;amp;#34;&amp;lt;/code&amp;gt;	&lt;br /&gt;
| {{N/a}}	&lt;br /&gt;
| (double)&amp;amp;nbsp;[[quotation mark]]&lt;br /&gt;
|---&lt;br /&gt;
| &amp;amp;#35;	&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;amp;amp;#35;&amp;lt;/code&amp;gt;	&lt;br /&gt;
| {{N/a}}	&lt;br /&gt;
| [[Number sign|hash]]&lt;br /&gt;
|---&lt;br /&gt;
| &amp;amp;#124;	&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;amp;amp;#124;&amp;lt;/code&amp;gt;	&lt;br /&gt;
| {{tl|!}}	&lt;br /&gt;
| [[Vertical bar|pipe]]&lt;br /&gt;
|---&lt;br /&gt;
| &amp;amp;#61;	&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;amp;amp;#61;&amp;lt;/code&amp;gt;	&lt;br /&gt;
| {{tl|{{=}}}}	&lt;br /&gt;
| [[Equals sign|equals]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
* {{strong|This template should not be used within section headings.}} Doing so will result in broken links in edit summaries, as well as possible duplicate anchors (see below).&lt;br /&gt;
* Anchor names should be unique on a page, and should not duplicate any heading titles. Duplicate anchors won&amp;#039;t work as expected since the #links go to the first anchor with that name. Duplicate anchors also result in invalid HTML; you can check for duplicate anchors by running the page through the [[W3C Markup Validation Service]].&lt;br /&gt;
* Anchor names that contain any character shown in the table on the right will not work as expected. However, any of these characters can be replaced with the &amp;quot;&amp;amp;amp;#&amp;quot; codes shown for them here. Or, the pipe symbol and equals sign can be worked around with {{tl|!}} and {{tl|{{=}}}}, respectively. Markup code such as {{tag|sup|o}} and {{tag|sub|o}} (superscript and subscript) cannot be used. Most other characters, including white space and punctuation, are not a problem.&lt;br /&gt;
* The template can create a maximum of 10 anchors. Specifying more than 10 anchors will result in an error message.&lt;br /&gt;
* If positional parameters (parameters without specifying 1=, 2=, etc.) are used, whitespace and newlines will be preserved. If you instead specify the name of the parameters (e.g. {{para|1}}) whitespace and newlines will be trimmed.&lt;br /&gt;
&lt;br /&gt;
== TemplateData ==&lt;br /&gt;
{{TemplateDataHeader}}&lt;br /&gt;
&amp;lt;!--&amp;lt;templatedata&amp;gt;--&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;1&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Anchor name, and text to display&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;This will become an anchor. The characters \&amp;quot;, #, | and = must be escaped; see the main template page for details. Do not try to use formatting; you can put formatting in the \&amp;quot;text\&amp;quot; parameter instead.&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;start-of-content&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;2&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Second anchor name&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;This will become an anchor. The characters \&amp;quot;, #, | and = must be escaped; see the main template page for details. Do not try to use formatting.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;3&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Third anchor name&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;This will become an anchor. The characters \&amp;quot;, #, | and = must be escaped; see the main template page for details. Do not try to use formatting.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;4&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Fourth anchor name&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;This will become an anchor. The characters \&amp;quot;, #, | and = must be escaped; see the main template page for details. Do not try to use formatting.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;5&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Fifth anchor name&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;This will become an anchor. The characters \&amp;quot;, #, | and = must be escaped; see the main template page for details. Do not try to use formatting.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;6&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Sixth anchor name&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;This will become an anchor. The characters \&amp;quot;, #, | and = must be escaped; see the main template page for details. Do not try to use formatting.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;7&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Seventh anchor name&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;This will become an anchor. The characters \&amp;quot;, #, | and = must be escaped; see the main template page for details. Do not try to use formatting.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;8&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Eighth anchor name&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;This will become an anchor. The characters \&amp;quot;, #, | and = must be escaped; see the main template page for details. Do not try to use formatting.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;9&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Ninth anchor name&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;This will become an anchor. The characters \&amp;quot;, #, | and = must be escaped; see the main template page for details. Do not try to use formatting.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;10&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Tenth anchor name&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;This will become an anchor. The characters \&amp;quot;, #, | and = must be escaped; see the main template page for details. Do not try to use formatting.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;text&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Display text&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Overrides the display of parameter 1, but is not an anchor name. May be formatted.&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;Properties of CO&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;content&amp;quot;,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		}&lt;br /&gt;
	},&lt;br /&gt;
	&amp;quot;description&amp;quot;: &amp;quot;The template {{Visible anchor}} inserts one or more HTML anchors in a page. Those locations can then be linked to using [[#link|...]] syntax. Unlike {{Anchor}}, the first parameter will be visible text on the page.&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;!--&amp;lt;/templatedata&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Aliases ==&lt;br /&gt;
* {{tl|visanc}}&lt;br /&gt;
* {{tl|vanchor}}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{tl|Anchor}}&lt;br /&gt;
* {{tl|Anchored list}}&lt;br /&gt;
* {{tl|Shortcut}}&lt;br /&gt;
* {{Wikipedia|Help:Link#Section linking (anchors)|Help:Link §&amp;amp;nbsp;Section linking (anchors)}} (Shortcut: {{Wikipedia|WP:ANCHOR}})&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- CATEGORIES HERE, THANKS --&amp;gt;&lt;br /&gt;
[[Category:Wikipedia formatting and function templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Gwyneth Llewelyn</name></author>
	</entry>
</feed>