<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.endmyopia.org/index.php?action=history&amp;feed=atom&amp;title=Template%3ACitation_Style_documentation%2Fanchors</id>
	<title>Template:Citation Style documentation/anchors - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.endmyopia.org/index.php?action=history&amp;feed=atom&amp;title=Template%3ACitation_Style_documentation%2Fanchors"/>
	<link rel="alternate" type="text/html" href="https://wiki.endmyopia.org/index.php?title=Template:Citation_Style_documentation/anchors&amp;action=history"/>
	<updated>2026-04-27T05:36:01Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.endmyopia.org/index.php?title=Template:Citation_Style_documentation/anchors&amp;diff=7734&amp;oldid=prev</id>
		<title>Viceroy Sam: remove redlink</title>
		<link rel="alternate" type="text/html" href="https://wiki.endmyopia.org/index.php?title=Template:Citation_Style_documentation/anchors&amp;diff=7734&amp;oldid=prev"/>
		<updated>2020-06-09T10:01:58Z</updated>

		<summary type="html">&lt;p&gt;remove redlink&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:01, 9 June 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l33&quot;&gt;Line 33:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 33:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* The only characters that may be used unencoded are letters A–Z, a–z, and digits 0–9.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* The only characters that may be used unencoded are letters A–Z, a–z, and digits 0–9.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Inclusion of any other characters will result in them being dot encoded.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Inclusion of any other characters will result in them being dot encoded.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;::It is recommended that names be kept simple and restricted to the standard &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[&lt;/del&gt;English alphabet&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]] &lt;/del&gt;and numerals.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;::It is recommended that names be kept simple and restricted to the standard English alphabet and numerals.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Dates===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Dates===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key jakeendmy_mw1720-mwnr_:diff::1.12:old-3409:rev-7734 --&gt;
&lt;/table&gt;</summary>
		<author><name>Viceroy Sam</name></author>
	</entry>
	<entry>
		<id>https://wiki.endmyopia.org/index.php?title=Template:Citation_Style_documentation/anchors&amp;diff=3409&amp;oldid=prev</id>
		<title>NottNott: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.endmyopia.org/index.php?title=Template:Citation_Style_documentation/anchors&amp;diff=3409&amp;oldid=prev"/>
		<updated>2020-05-24T18:21:36Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:21, 24 May 2020&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key jakeendmy_mw1720-mwnr_:diff::1.12:old-3408:rev-3409 --&gt;
&lt;/table&gt;</summary>
		<author><name>NottNott</name></author>
	</entry>
	<entry>
		<id>https://wiki.endmyopia.org/index.php?title=Template:Citation_Style_documentation/anchors&amp;diff=3408&amp;oldid=prev</id>
		<title>en&gt;John of Reading: /* Anchored citations */Typo fixing, replaced: used used → used using AWB</title>
		<link rel="alternate" type="text/html" href="https://wiki.endmyopia.org/index.php?title=Template:Citation_Style_documentation/anchors&amp;diff=3408&amp;oldid=prev"/>
		<updated>2014-12-20T18:55:28Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Anchored citations: &lt;/span&gt;Typo fixing, replaced: used used → used using &lt;a href=&quot;/wiki/Endmyopia:AWB&quot; title=&quot;Endmyopia:AWB&quot;&gt;AWB&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Anchored citations==&lt;br /&gt;
This citation template can be used in {{sfnote}} or {{paren}}. It does this by creating an [[HTML element#Anchor|HTML anchor]] containing an ID that can be linked to from within the body of the article. This is done by use of the '''ref''' parameter.&lt;br /&gt;
&lt;br /&gt;
By default, this template does not generate an ID. For most purposes, {{para|ref|harv}} is used to created an ID from the term {{em|CITEREF}}, plus last names of the first four authors, or the last names of the first four editors, plus the year or date. Examples:&lt;br /&gt;
&lt;br /&gt;
{{markup|t2=ID&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;{{cite book |last=Harwood |first=William B |title=Raise Heaven and Earth |year=1993 |ref=harv}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|CITEREFHarwood1993&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;{{cite book |last1=Brett |first1=Daniel |last2=Hardman |first2=George |last3=Ratycz |first3=Rostyslaw |title=Pershing: ST-120 Stabilizing Platform Familiarization |year=1964 |ref=harv}}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|CITEREFBrettHardmanRatycz1964&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Some editors may choose to place multiple authors into one parameter. Punctuation is encoded thus the output is not as expected. Example:&lt;br /&gt;
{{markup|t2=ID&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;{{cite book |authors=Daniel; Hardman, George; Ratycz, Rostyslaw |title=Pershing: ST-120 Stabilizing Platform Familiarization |year=1964 |ref=harv}}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|CITEREFDaniel.3B_Hardman.2C_George.3B_Ratycz.2C_Rostyslaw1964&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
It is highly recommended that the '''last1''' through '''last9''' or '''editor1-last''' through '''editor1-last4''' parameters be used when anchors are desired.&lt;br /&gt;
&lt;br /&gt;
Where there may not be an author or date, then {{para|ref|&amp;lt;var&amp;gt;ID&amp;lt;/var&amp;gt;}} is used to generate a user defined ID.&lt;br /&gt;
&lt;br /&gt;
{{markup|t2=ID&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;{{cite journal |title=Pershing Rockets for Europe |journal=Interavia |year=1961 |ref=CITEREFInteravia1961}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|CITEREFInteravia1961&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
It is highly recommended that the ID begin with CITEREF, as this will allow error checking tools to function. A custom ID must follow these rules:&lt;br /&gt;
&lt;br /&gt;
* Names may not start with a number.&lt;br /&gt;
* The only characters that may be used unencoded are letters A–Z, a–z, and digits 0–9.&lt;br /&gt;
* Inclusion of any other characters will result in them being dot encoded.&lt;br /&gt;
::It is recommended that names be kept simple and restricted to the standard [[English alphabet]] and numerals.&lt;br /&gt;
&lt;br /&gt;
===Dates===&lt;br /&gt;
This templates supports '''date''', '''year''' and '''month'''. It is important to use these parameters properly to prevent a malformed ID.&lt;br /&gt;
* Month, day, year: Use '''date'''&lt;br /&gt;
* Year only: Use '''year'''&lt;br /&gt;
* Year and month: Use '''year''' and '''month'''&lt;br /&gt;
&lt;br /&gt;
If a year only is used in '''date''', then it may be interpreted as a time, and the ID will not be as expected.&lt;br /&gt;
&lt;br /&gt;
{{markup&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
. The special parameter {{para|ref|harv}} generates an ID suitable for [[Harvard referencing]] templates such as {{tl|harv}} as specified in the next section; this is the default for the {{tl|citation}} template. If an empty {{para|ref}} is given, no anchor is generated; this is the default for the Cite templates such as {{tl|cite book}} and {{tl|cite news}}. You can also specify the ID directly, using the {{para|ref|&amp;lt;var&amp;gt;ID&amp;lt;/var&amp;gt;}} parameter. For example, suppose an article's ''References'' section contains the markup:&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Citation |author=Sigmund Freud |title=Civilization and Its Discontents |year=1930 |ref=CivDis}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
which generates the citation:&lt;br /&gt;
* {{Citation |author=Sigmund Freud |title=Civilization and Its Discontents |year=1930 |ref=CivDis}}&lt;br /&gt;
Then, the markup &amp;quot;&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;([[#CivDis|Freud 1930]])&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;quot; generates a parenthetical reference &amp;quot;([[#CivDis|Freud 1930]])&amp;quot; containing a wikilink to the citation (try clicking on the wikilink).&lt;br /&gt;
&lt;br /&gt;
===Anchors for Harvard referencing templates===&lt;br /&gt;
IDs compatible with Harvard referencing templates such as {{tl|harv}} are computed from the last names of the authors and the year of the cited source. For example, the markup &amp;quot;&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{harv|Wright|Evans|1851|p=ix}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;quot; generates the Harvard reference &amp;quot;{{harv|Wright|Evans|1851|p=ix}}&amp;quot;, which wikilinks to the citation whose markup and appearance are shown below:&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Citation |last1=Wright |first1=Thomas |last2=Evans |first2=R. H. |title=Historical and Descriptive Account of the Caricatures of James Gillray |location=London |publisher=Henry G. Bohn |year=1851 |oclc=59510372}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
* {{Citation |last1=Wright |first1=Thomas |last2=Evans |first2=R. H. |title=Historical and Descriptive Account of the Caricatures of James Gillray |location=London |publisher=Henry G. Bohn |year=1851 |oclc=59510372}}&lt;br /&gt;
In this example the {{tl|citation}} template defines, and the {{tl|harv}} template uses, the HTML ID &amp;quot;&amp;lt;code&amp;gt;CITEREFWrightEvans1851&amp;lt;/code&amp;gt;&amp;quot;, composed by concatenating the string &amp;quot;&amp;lt;code&amp;gt;CITEREF&amp;lt;/code&amp;gt;&amp;quot; with the last names of the authors and the year. The {{tl|harvid}} template can be used to generate such IDs, for example, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{harvid|Wright|Evans|1851}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; generates &amp;quot;&amp;lt;code&amp;gt;{{harvid|Wright|Evans|1851}}&amp;lt;/code&amp;gt;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Related methods which leave only a number in the text are to use the {{tl|harvnb}} template enclosed in the &amp;lt;nowiki&amp;gt;&amp;lt;ref&amp;gt;&amp;lt;/ref&amp;gt;&amp;lt;/nowiki&amp;gt; html code, or to use the {{tl|sfn}} template alone. The example above would be &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;ref&amp;gt;{{harvnb|Wright|Evans|1851|p=ix}}&amp;lt;/ref&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{sfn|Wright|Evans|1851|p=ix}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; both of which generate a footnote, such as&lt;br /&gt;
:17. {{harvnb|Wright|Evans|1851|p=ix}}&lt;br /&gt;
&lt;br /&gt;
The names of only the first four authors are used; other author names are not concatenated to the ID. If no author names are given, editor names are used instead. For [[#Citing patents|patents]], inventor names are used instead of authors or editors. If these names are not given, this template does not generate an anchor.&lt;br /&gt;
&lt;br /&gt;
Last names are used, as specified by the parameters {{para|last1}} (or {{para|last}}), {{para|last2}}, {{para|last3}}, and {{para|last4}}, and similarly for {{para|editor1-last}} etc. and for {{para|inventor1-last}} etc. If a full name is given but no last name is specified, this template falls back on the full name, but this usage is not recommended. For example, in &amp;quot;&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Citation | author = Sigmund Freud | title = The Ego and the Id | year = 1923}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;quot; no last name is given, so this citation cannot be combined with the Harvard reference &amp;quot;&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{harv|Freud|1923}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;quot;. To make these {{tl|citation}} and {{tl|harv}} invocations compatible, either replace &amp;quot;{{para|author|Sigmund Freud}}&amp;quot; with &amp;quot;{{para|first|Sigmund}} {{para|last|Freud}}&amp;quot;, or add &amp;quot;{{para|ref|&amp;lt;nowiki&amp;gt;{{harvid|Freud|1923}}&amp;lt;/nowiki&amp;gt;}}&amp;quot; to the {{tl|citation}} invocation, or add the same ref parameter (say, &amp;quot;{{para|ref|EgoId}}&amp;quot;) to both the {{tl|citation}} and the {{tl|harv}} invocations.&lt;br /&gt;
&lt;br /&gt;
Similarly, the year is used, as specified by {{para|year}}. If no year is given, this template attempts to derive the year from {{para|date}} (or, if no date is given, from {{para|publication-date}}) by applying the [[mw:Help:Extension:ParserFunctions##time|MediaWiki#time function]]. This heuristic works with many common date formats (American, International and ISO standard format YYYY-MM-DD as listed in [[WP:MOS]]), but may not work as expected with other formats, so when in doubt it may be safer to use {{para|year}}. Note that if only a year, say 2005, is known you must use {{para|year|2005}} rather than {{para|date|2005}}.&lt;br /&gt;
&lt;br /&gt;
===IDs must be unique===&lt;br /&gt;
Names, years, and hand-specified IDs must be chosen so that the IDs are unique within a page; otherwise the HTML will not conform to the W3C standards, and any references to the citations will not work reliably. For example, suppose a page contains the following two citations with {{tl|harv}}-compatible IDs:&lt;br /&gt;
* {{Citation |last1=Montes |first1=G. |last2=Halterman |first2=J. S. |year=2008a |journal=Pediatrics |volume=121 |issue=4 |pages=e821–6 |title=Association of Childhood Autism Spectrum Disorders and Loss of Family Income |doi=10.1542/peds.2007-1594 |pmid=18381511 |url= http://pediatrics.aappublications.org/cgi/content/full/121/4/e821 }}&lt;br /&gt;
* {{Citation |last1=Montes |first1=G. |last2=Halterman |first2=J. S. |year=2008b |journal=Pediatrics |volume=122 |issue=1 |pages=e202–8 |title=Child Care Problems and Employment Among Families with Preschool-aged Children with Autism in the United States |doi=10.1542/peds.2007-3037 |pmid=18595965 |url= http://pediatrics.aappublications.org/cgi/content/full/122/1/e202 }}&lt;br /&gt;
&lt;br /&gt;
If these citations were altered to say &amp;quot;2008&amp;quot; rather than &amp;quot;2008a&amp;quot; and &amp;quot;2008b&amp;quot;, the resulting page would not work, because the two different citations would both attempt to use the ID &amp;quot;&amp;lt;code&amp;gt;CITEREFMontesHalterman2008&amp;lt;/code&amp;gt;&amp;quot;. To avoid this problem, distinguish the citations by appending suffixes to the years, ''e.g.'', &amp;quot;{{para|year|2008a}}&amp;quot; and &amp;quot;{{para|year|2008b}}&amp;quot;, as was done above. Any Harvard references to these citations should use years with the same suffixes.&lt;br /&gt;
&lt;br /&gt;
It is good practice to verify that a page does not contain duplicate IDs by using the [[W3C Markup Validation Service]]; see ''[[#External links|External links]]''.&lt;/div&gt;</summary>
		<author><name>en&gt;John of Reading</name></author>
	</entry>
</feed>