Module talk:Footnotes/anchor id list
This talk page has been usurped to be a testcases page for development. To talk about this module, please do so at Module talk:Footnotes.
{{TOC right}}
There has always been a problem with the {{tlx|harv}} and {{tlx|sfn}} families of templates: except that every link that is created by these templates is tested at creation, editors don't know if the link works. A remedy for that has been user-scripts like User:Ucucha/HarvErrors. But, not all editors use that script so broken harv links can go undetected for a long time. At the moment, there is prospective bot that would mark broken-link harv templates by adding {{tlx|broken footnote}} after the broken-link harv template.
I have another possible solution. I have created a lua module that extracts reference linking data from cs1|2 templates. I have modified Module:Footnotes/sandbox to use the extracted data to determine if:
:the harv template does not have a matching citation template
:more than one citation template matches the harv template
when either of these conditions exists, the harv template emits an error message.
class="wikitable" width="100%"
|+harv errors !template !! rendering | |
| {{Harvard citation no brackets/sandbox|Black|Black|Brown|2020}} |
| {{Harvard citation no brackets/sandbox|Black|Black|Red|2020}} |
colspan="2" | citation templates | |
---|---|
| {{cite book |title=Title |last=Black |last2=Black |last3=Brown |date=2020}} |
| {{cite journal |journal=Journal |title=Title |last=Black |last2=Black |last3=Red |date=2020 |ref=harv}} |
| {{citation |title=Title |editor-last=Black |editor-last2=Black |editor-last3=Red |date=2020}} |
The sandbox module collects various items from the citation templates in the article's wikitext and assembles them into a list of CITEREF
anchors that each harv template can inspect:
- when {{para|ref|harv}} either explicitly (cs1) or implicitly (cs2), the sandbox module builds a
CITEREF
from the cs1|2 parameters: - :name sources: {{para|contributor}}, {{para|author}}, {{para|vauthors}}, {{para|editor}} and {{para|veditors}}, and their aliases (where they exist)
- :date sources: {{para|year}}, {{para|date}}, {{para|publicationdate}}, and {{para|publication-date}} (in that order).
- when {{para|ref|{{tlx|sfnref}}}} or {{para|ref|{{tlx|harvid}}}}, the sandbox module builds a
CITEREF
from parameters in those templates and adds the result to the list. - when {{para|ref|CITEREF<{{var|name-date}}>}}, the sandbox module adds that text (absent the
CITEREF
prefix) to the list. - when {{para|ref|<{{var|anchor-identifier-text}}>}}, the sandbox module adds that text to the list – to match a harv template's identical {{para|ref|<{{var|anchor-identifier-text}}>}}
- when {{para|ref}} is empty or omitted and {{para|mode|cs2}}, the sandbox module acts as if {{para|ref|harv}}
- when {{para|ref|none}}, the sandbox module skips the citation because
CITEREF
anchor creation specifically suppressed in cs1|2
Alas, there is a flaw. Because the sandbox module reads article wikitext, and because wrapper templates often set cs1|2 parameter values inside the template, so the sandbox module emits a false error message for wrapped templates ({{tlx|cite EB1911}} wraps {{tlx|cite encyclopedia}}:
class="wikitable" width="100%"
|+false harv errors !template !! rendering | |
| {{Harvard citation no brackets/sandbox|Chisholm|1911}} |
colspan="2" | citation templates | |
---|---|
| {{Cite EB1911|wstitle=Alfred the Great|ref=harv}} |
So that false error messages don't linger in an article, I have added {{para|ignore-err}} to the harv templates so that false error messages may be suppressed ({{tlx|cite DNB}} wraps {{tlx|cite encyclopedia}}:
class="wikitable" width="100%"
|+suppressing false harv errors !template !! rendering | |
| {{Harvard citation no brackets/sandbox|Power|1901}} |
| {{Harvard citation no brackets/sandbox|Power|1901|ignore-err=yes}} |
colspan="2" | citation templates | |
---|---|
| {{Cite DNB|first=D'Arcy|last=Power|pages=331–332|supplement=1|volume=1|wstitle=Bucknill, John Charles |ref=harv}} |
author-name parameters
class="wikitable" width="100%"
|+author-name parameters !template !! rendering | |
| {{Harvard citation no brackets/sandbox|Black|Black|Orange|2020}} |
| {{Harvard citation no brackets/sandbox|Black|Black|Yellow|2020}} |
| {{Harvard citation no brackets/sandbox|Black|Black|Green|2020}} |
| {{Harvard citation no brackets/sandbox|Black|2020}} |
| {{Harvard citation no brackets/sandbox|Black|Black|2020}} |
| {{Harvard citation no brackets/sandbox|Black|Black|Green|Black|2020}} |
| {{Harvard citation no brackets/sandbox|Black|Black|Green|Brown|2020}} |
| {{Harvard citation no brackets/sandbox|Brown|2020}} |
| {{Harvard citation no brackets/sandbox|Red|Black|2020}} |
| {{Harvard citation no brackets/sandbox|Orange|Black|Black|2020}} |
| {{Harvard citation no brackets/sandbox|Yellow|Black|Black|Black|2020}} |
| {{Harvard citation no brackets/sandbox|Green|Black|Black|Brown|2020}} |
colspan="2" | author{{var|n}}-last parameters | |
---|---|
| {{Cite book |author1-last=Black |author2-last=Black |author3-last=Orange |title=Title |date=2020 |ref=harv}} |
colspan="2" | author-last{{var|n}} parameters | |
| {{Cite book |author-last1=Black |author-last2=Black |author-last3=Yellow |title=Title |date=2020 |ref=harv}} |
colspan="2" | misc less used author-name parameters | |
| {{Cite book |surname=Black |subject2=Black |host3=Green |title=Title |date=2020 |ref=harv}} |
colspan="2" | one author-name parameters | |
| {{Cite book |last=Black |title=Title |date=2020 |ref=harv}} |
colspan="2" | two author-name parameters | |
| {{Cite book |last=Black |last2=Black |title=Title |date=2020 |ref=harv}} |
colspan="2" | four author-name parameters | |
| {{Cite book |last=Black |last2=Black |last3=Green |last4=Black |title=Title |date=2020 |ref=harv}} |
colspan="2" | five author-name parameters | |
| {{Cite book |last=Black |last2=Black |last3=Green |last4=Brown |last5=Black |title=Title |date=2020 |ref=harv}} |
colspan="2" | one vauthors-name | |
| {{Cite book |vauthors=Brown |title=Title |date=2020 |ref=harv}} |
colspan="2" | two vauthors-name | |
| {{Cite book |vauthors=Red, Black |title=Title |date=2020 |ref=harv}} |
colspan="2" | three vauthors-name | |
| {{Cite book |vauthors=Orange,Black,Black |title=Title |date=2020 |ref=harv}} |
colspan="2" | four vauthors-name | |
| {{Cite book |vauthors=Yellow,Black,Black,Black |title=Title |date=2020 |ref=harv}} |
colspan="2" | five vauthors-name | |
| {{Cite book |vauthors=Green,Black,Black,Brown,Black |title=Title |date=2020 |ref=harv}} |
editor-name parameters
class="wikitable" width="100%"
|+editor-name parameters !template !! rendering | |
| {{Harvard citation no brackets/sandbox|Black|Brown|Orange|2020}} |
| {{Harvard citation no brackets/sandbox|Black|Brown|Yellow|2020}} |
| {{Harvard citation no brackets/sandbox|Black|Brown|Green|2020}} |
| {{Harvard citation no brackets/sandbox|Red|2020}} |
| {{Harvard citation no brackets/sandbox|Black|Brown|2020}} |
| {{Harvard citation no brackets/sandbox|Black|Brown|Green|Black|2020}} |
| {{Harvard citation no brackets/sandbox|Black|Brown|Green|Brown|2020}} |
| {{Harvard citation no brackets/sandbox|Orange|2020}} |
| {{Harvard citation no brackets/sandbox|Red|Brown|2020}} |
| {{Harvard citation no brackets/sandbox|Orange|Brown|Black|2020}} |
| {{Harvard citation no brackets/sandbox|Yellow|Brown|Black|Black|2020}} |
| {{Harvard citation no brackets/sandbox|Green|Brown|Black|Brown|2020}} |
colspan="2" | editor{{var|n}}-last parameters | |
---|---|
| {{Cite book |editor1-last=Black |editor2-last=Brown |editor3-last=Orange |title=Title |date=2020 |ref=harv}} |
colspan="2" | editor-last{{var|n}} parameters | |
| {{Cite book |editor-last1=Black |editor-last2=Brown |editor-last3=Yellow |title=Title |date=2020 |ref=harv}} |
colspan="2" | misc editor-name parameters | |
| {{Cite book |editor-surname=Black |editor2=Brown |editor3-surname=Green |title=Title |date=2020 |ref=harv}} |
colspan="2" | one editor-name parameter | |
| {{Cite book |last=Red |title=Title |date=2020 |ref=harv}} |
colspan="2" | two editor-name parameters | |
| {{Cite book |editor-last=Black |editor-last2=Brown |title=Title |date=2020 |ref=harv}} |
colspan="2" | four editor-name parameters | |
| {{Cite book |editor-last=Black |editor-last2=Brown|editor-last3=Green |editor-last4=Black |title=Title |date=2020 |ref=harv}} |
colspan="2" | five editor-name parameters | |
| {{Cite book |editor-last=Black |editor-last2=Brown |editor-last3=Green |editor-last4=Brown |editor-last5=Black |title=Title |date=2020 |ref=harv}} |
colspan="2" | one veditors-name | |
| {{Cite book |veditors=Orange |title=Title |date=2020 |ref=harv}} |
colspan="2" | two veditors-name | |
| {{Cite book |veditors=Red, Brown |title=Title |date=2020 |ref=harv}} |
colspan="2" | three veditors-name | |
| {{Cite book |veditors=Orange,Brown ,Black |title=Title |date=2020 |ref=harv}} |
colspan="2" | four veditors-name | |
| {{Cite book |veditors=Yellow,Brown ,Black,Black |title=Title |date=2020 |ref=harv}} |
colspan="2" | five veditors-name | |
| {{Cite book |veditors=Green,Brown ,Black,Brown,Black |title=Title |date=2020 |ref=harv}} |
contributor-name parameters
class="wikitable" width="100%"
|+contributor-name parameters !template !! rendering | |
| {{Harvard citation no brackets/sandbox|Green|2020}} |
| {{Harvard citation no brackets/sandbox|Green|Red|2020}} |
| {{Harvard citation no brackets/sandbox|Green|Red|Black|2020}} |
| {{Harvard citation no brackets/sandbox|Green|Red|Black|Black|2020}} |
| {{Harvard citation no brackets/sandbox|Green|Red|Black|Brown|2020}} |
colspan="2" | contributor{{var|n}}-last parameters | |
---|---|
| {{Cite book |contributor1-last=Green |contribution=Preface |author=Author |title=Title |date=2020 |ref=harv}} |
colspan="2" | contributor-last{{var|n}} parameters | |
| {{Cite book |contributor-last=Green |contributor-last2=Red |contribution=Preface |author=Author |title=Title |date=2020 |ref=harv}} |
colspan="2" | contributor-surname parameters | |
| {{Cite book |contributor-surname=Green |contributor2-surname=Red |contributor-surname3=Black |contribution=Preface |author=Author |title=Title |date=2020 |ref=harv}} |
colspan="2" | four contributor-name parameters | |
| {{Cite book |contributor=Green |contributor2=Red |contributor3=Black |contributor4=Black |contribution=Preface |author=Author |title=Title |date=2020 |ref=harv}} |
colspan="2" | five contributor-name parameters | |
| {{Cite book |contributor1=Green |contributor2=Red |contributor3=Black |contributor4=Brown |contributor5=Black |contribution=Preface |author=Author |title=Title |date=2020 |ref=harv}} |
ref=<nowiki>{{sfnref}}</nowiki>
class="wikitable" width="100%"
|+{{pipe}}ref={{tl|sfnref}} and {{pipe}}ref={{tl|harvid}} !template !! rendering | |
| {{Harvard citation no brackets/sandbox|Blue|2020}} |
| {{Harvard citation no brackets/sandbox|Blue|Red|2020}} |
| {{Harvard citation no brackets/sandbox|Blue|Red|Black|2020}} |
| {{Harvard citation no brackets/sandbox|Blue|Red|Black|Black|2020}} |
| {{Harvard citation no brackets/sandbox|Magazine Title|2020}} |
colspan="2" | {{tlf|harvid}} | |
---|---|
| {{Cite book |title=Title |ref={{harvid|Blue|2020}}}} |
colspan="2" | {{tlf|harvid}} | |
| {{Cite book |title=Title |ref={{harvid|Blue|Red|2020}}}} |
colspan="2" | {{tlf|sfnref}} | |
| {{Cite book |title=Title |ref={{sfnref|Blue|Red|Black|2020}}}} |
colspan="2" | {{tlf|SfnRef}} | |
| {{Cite book |title=Title |ref={{SfnRef|Blue|Red|Black|Black|2020}}}} |
colspan="2" | {{tlf|SfnRef}} – magazine title | |
| {{Cite book |title=Title |ref={{SfnRef|Magazine Title|2020}}}} |
|ref=CITEREF...
class="wikitable" width="100%"
|+{{pipe}}ref=CITEREF... !template !! rendering | |
| {{Harvard citation no brackets/sandbox|custom citeref text}} |
colspan="2" | cite book with {{pipe}}ref=CITEREF... | |
---|---|
| {{Cite book |title=Title |ref=CITEREFcustom citeref text}} |
|ref=custom text in <nowiki>{{harvnb}}</nowiki>
class="wikitable" width="100%"
|+{{pipe}}ref=custom text in {{tlf|harvnb}} !template !! rendering | |
| {{Harvard citation no brackets/sandbox|Violet|2020|ref=1337+S3CRE7+C0D3}} |
colspan="2" | {{pipe}}ref=1337+S3CRE7+C0D3 | |
---|---|
| {{Cite book |title=Title |ref=1337+S3CRE7+C0D3}} |
single date parameters
class="wikitable" width="100%"
|+single date parameters !template !! rendering | |
| {{Harvard citation no brackets/sandbox|VioletBlack|2020}} |
| {{Harvard citation no brackets/sandbox|Violet|Brown|2020}} |
| {{Harvard citation no brackets/sandbox|Violet|Red|2020}} |
| {{Harvard citation no brackets/sandbox|Violet|Orange|2020}} |
colspan="2" | {{pipe}}year= | |
---|---|
| {{Cite book |year=2020 |last=Violet |last2=Black |title=Title |ref=harv}} |
colspan="2" | {{pipe}}date= | |
| {{Cite book |date=2020 |last=Violet |last2=Brown |title=Title |ref=harv}} |
colspan="2" | {{pipe}}publication-date= | |
| {{Cite book |publication-date=2020 |last=Violet |last2=Red |title=Title |ref=harv}} |
colspan="2" | {{pipe}}publicationdate= | |
| {{Cite book |publicationdate=2020 |last=Violet |last2=Orange |title=Title |ref=harv}} |
multiple date parameters
class="wikitable" width="100%"
|+multiple date parameters !template !! rendering | |
| {{Harvard citation no brackets/sandbox|Violet|Yellow|2020}} |
| {{Harvard citation no brackets/sandbox|Violet|Green|2020}} |
| {{Harvard citation no brackets/sandbox|Violet|Blue|2020}} |
| {{Harvard citation no brackets/sandbox|Violet|Violet|2020}} |
colspan="2" | {{pipe}}year= and {{pipe}}date= | |
---|---|
| {{Cite book |year=2020 |date=2020 |last=Violet |last2=Yellow |title=Title |ref=harv}} |
colspan="2" | {{pipe}}year= and {{pipe}}publication-date= | |
| {{Cite book |year=2020 |publication-date=2000 |last=Violet |last2=Green|title=Title |ref=harv}} |
colspan="2" | {{pipe}}date= and {{pipe}}publication-date= | |
| {{Cite book |date=2020 |publication-date=2000 |last=Violet |last2=Blue |title=Title |ref=harv}} |
colspan="2" | {{pipe}}year= and {{pipe}}date= and {{pipe}}publicationdate= | |
| {{Cite book |year=2020 |date=2020 |publicationdate=2000 |last=Violet |last2=Violet |title=Title |ref=harv}} |
date formats
class="wikitable" width="100%"
|+date formats !template !! rendering | |
| {{Harvard citation no brackets/sandbox|Gray|Black|2010–2020}} |
| {{Harvard citation no brackets/sandbox|Gray|Black|1998–99}} |
| {{Harvard citation no brackets/sandbox|Gray|Brown|2020}} |
| {{Harvard citation no brackets/sandbox|Gray|Red|Black|2020}} |
| {{Harvard citation no brackets/sandbox|Gray|Red|Brown|2020}} |
| {{Harvard citation no brackets/sandbox|Gray|Orange|Black|n.d.}} |
| {{Harvard citation no brackets/sandbox|Gray|Orange|Brown|nd}} |
| {{Harvard citation no brackets/sandbox|Gray|Yellow|c. 2020}} |
colspan="2" | YYYY–YYYY | |
---|---|
| {{Cite book |date=2010–2020 |last=Gray |last2=Black |title=Title |ref=harv}} |
colspan="2" | YYYY–YY | |
| {{Cite book |date=1998–99 |last=Gray |last2=Black |title=Title |ref=harv}} |
colspan="2" | YYYY-MM-DD | |
| {{Cite book |date=2020-03-05 |last=Gray |last2=Brown |title=Title |ref=harv}} |
colspan="2" | dmy | |
| {{Cite book |date=5 March 2020 |last=Gray |last2=Red |last3=Black |title=Title |ref=harv}} |
colspan="2" | mdy | |
| {{Cite book |date=5 March 2020 |last=Gray |last2=Red |last3=Brown |title=Title |ref=harv}} |
colspan="2" | n.d. | |
| {{Cite book |date=n.d. |last=Gray |last2=Orange |last3=Black |title=Title |ref=harv}} |
colspan="2" | nd | |
| {{Cite book |date=nd |last=Gray |last2=Orange |last3=Brown |title=Title |ref=harv}} |
colspan="2" | c. YYYY | |
| {{Cite book |date=c. 2020 |last=Gray |last2=Yellow |title=Title |ref=harv}} |
date formats with CITEREF disambiguation
class="wikitable" width="100%"
|+date formats with CITEREF disambiguation !template !! rendering | |
| {{Harvard citation no brackets/sandbox|Gray|Black|2010–2020a}} |
| {{Harvard citation no brackets/sandbox|Gray|Black|1998–99a}} |
| {{Harvard citation no brackets/sandbox|Gray|Red|Black|2020a}} |
| {{Harvard citation no brackets/sandbox|Gray|Red|Brown|2020a}} |
| {{Harvard citation no brackets/sandbox|Gray|Orange|Black|n.d.a}} |
| {{Harvard citation no brackets/sandbox|Gray|Orange|Brown|nda}} |
| {{Harvard citation no brackets/sandbox|Gray|Yellow|c. 2020a}} |
colspan="2" | YYYY–YYYY | |
---|---|
| {{Cite book |date=2010–2020a |last=Gray |last2=Black |title=Title |ref=harv}} |
colspan="2" | YYYY–YY | |
| {{Cite book |date=1998–99a |last=Gray |last2=Black |title=Title |ref=harv}} |
colspan="2" | dmy | |
| {{Cite book |date=5 March 2020a |last=Gray |last2=Red |last3=Black |title=Title |ref=harv}} |
colspan="2" | mdy | |
| {{Cite book |date=5 March 2020a |last=Gray |last2=Red |last3=Brown |title=Title |ref=harv}} |
colspan="2" | n.d. | |
| {{Cite book |date=n.d.a |last=Gray |last2=Orange |last3=Black |title=Title |ref=harv}} |
colspan="2" | nd | |
| {{Cite book |date=nda |last=Gray |last2=Orange |last3=Brown |title=Title |ref=harv}} |
colspan="2" | c. YYYY | |
| {{Cite book |date=c. 2020a |last=Gray |last2=Yellow |title=Title |ref=harv}} |
date from <nowiki>{{date}}</nowiki>
class="wikitable" width="100%"
|+date from {{tl|date}} !template !! rendering | |
| {{Harvard citation no brackets/sandbox|Gray|Green|2020}} |
| {{Harvard citation no brackets/sandbox|Gray|Blue|2020}} |
| {{Harvard citation no brackets/sandbox|Gray|Violet|2020}} |
| {{Harvard citation no brackets/sandbox|Gray|Gray|2020}} |
| {{Harvard citation no brackets/sandbox|Gray|White|2020}} |
colspan="2" | dmy | |
---|---|
| {{Cite book |date={{date|5 March 2020}} |last=Gray |last2=Green |title=Title |ref=harv}} |
colspan="2" | dmy → ymd | |
| {{Cite book |date={{DATEtoMOS|5 Mar 2020|ISO}} |last=Gray |last2=Blue |title=Title |ref=harv}} |
colspan="2" | mdy | |
| {{Cite book |date={{FormatDate|March 5, 2020|MDY}} |last=Gray |last2=Violet |title=Title |ref=harv}} |
colspan="2" | mdy → dmy | |
| {{Cite book |date={{ISOtodmymdy|Mar 5, 2020|DMY}} |last=Gray |last2=Gray |title=Title |ref=harv}} |
colspan="2" | ymd | |
| {{Cite book |date={{ISOtoMOS|2020-03-05}} |last=Gray |last2=White |title=Title |ref=harv}} |
harvc
class="wikitable" width="100%"
|+harvc !template !! rendering | |
| {{Harvard citation no brackets/sandbox|George|Read|Johnson|Ferber|1957}} |
| {{Harvard citation no brackets/sandbox|Stefferud|1957|ref=CITEREFStefferud preface}} |
colspan="2" | {{tl|harvc}} templates | |
---|---|
| {{harvc/sandbox |last=George |first=Ernest J. |last2=Read |last3=Johnson |last4=Ferber |year=1957 |contribution=Shelterbelts and Windbreaks |url=//archive.org/stream/yoa1957#page/n785/mode/1up |in=Stefferud}} |
| {{harvc/sandbox |last=Stefferud |first=A.|year=1957 |id=CITEREFStefferud preface |c=Preface |url=//archive.org/stream/yoa1957#page/n7/mode/1up |in=Stefferud}} |
colspan="2" | cs1{{pipe}}2 templates | |
| {{cite book |title=Soil: The Yearbook of Agriculture 1957 |editor-last=Stefferud |editor-first=Alfred |year=1957 |publisher=United States Department of Agriculture |url=//archive.org/stream/yoa1957#page/n2/mode/1up |oclc=704186906 |ref=harv}} |
class="wikitable" width="100%"
|+harvc with {{pipe}}anchor-year= !template !! rendering | |
| {{Harvard citation no brackets/sandbox|Hunt |1995a}} |
| {{Harvard citation no brackets/sandbox|Hunt |1995b}} |
colspan="2" | {{tl|harvc}} templates | |
---|---|
| {{harvc/sandbox |in=McMillan |in2=Horobin |last=Hunt |first=David |c=Appendix I Names and synonyms of the species, subspecies and interspecific hybrids |year=1995 |anchor-year=1995a |mode=cs2 |nb=yes}} |
| {{harvc/sandbox |in=McMillan |in2=Horobin |last=Hunt |first=David |c=Appendix III Excerpts from a Brazilian diary |year=1995 |anchor-year=1995b |mode=cs2 |nb=yes}} |
colspan="2" | cs1{{pipe}}2 template | |
| {{Citation |last=McMillan |first=A. J. S. |last2=Horobin |first2=J. F. |year=1995 |title=Christmas Cacti: The Genus Schlumbergera and Its Hybrids |edition=p/b |publication-place=Sherbourne, Dorset, UK |publisher=David Hunt |isbn=978-0-9517234-6-3}} |
wikicite
class="wikitable" width="100%"
|+{{tl|wikicite}} !template !! rendering | |
| {{Harvard citation no brackets/sandbox|Bailey|1979|ref=Reference-idBailey1979}} |
| {{Harvard citation no brackets/sandbox|Anon.|n.d.(a)}} |
| {{Harvard citation no brackets/sandbox|Atwood|2003|ref=Reference-{{sfnref|Atwood|2003}}}} |
| {{Harvard citation no brackets/sandbox|Atwood|2003}} |
colspan="2" | {{pipe}}id= | |
---|---|
| {{wikicite|id=idBailey1979|reference=Bailey, John W. Pacifying the Plains: General Alfred Terry and the Decline of the Sioux, 1866–1890. Westport, Conn.: Greenwood Press, 1979.}} |
colspan="2" | {{pipe}}ref= | |
| {{wikicite|ref={{sfnref|Anon.|n.d.(a)}}|reference=Anon. n.d.(a) "[http://www.english-heritage.org.uk/discover/blue-plaques/search/bartok-bela-1881-1945 Bartók, Béla (1881–1945) Plaque erected in 1997 by English Heritage at 7 Sydney Place, South Kensington, London SW7 3NL, Royal Borough of Kensington and Chelsea]". English Heritage website (Accessed 19 October 2012).}} |
colspan="2" | {{pipe}}id=sfnref | |
| {{wikicite | id = {{sfnref|Atwood|2003}} | reference = Atwood, Margaret (2003). Oryx and Crake, Toronto: McClelland & Stewart. {{ISBN|978-0-7710-0868-9}}. }} |
colspan="2" | {{pipe}}ref=sfnref | |
| {{wikicite | ref = {{sfnref|Atwood|2003}} | reference = Atwood, Margaret (2003). Oryx and Crake, Toronto: McClelland & Stewart. {{ISBN|978-0-7710-0868-9}}. }} |
anchor
class="wikitable" width="100%"
|+{{tl|anchor}} !template !! rendering | |
| {{Harvard citation no brackets/sandbox|Blue|Yellow|2018}} |
| {{Harvard citation no brackets/sandbox|plain text|ref=plain text}} |
| {{Harvard citation no brackets/sandbox|CITEREF|citeref|2030|ref=CITEREFciteref2030}} |
| {{Harvard citation no brackets/sandbox|Yellow|Blue|2019}} |
colspan="2" | multiple anchors | |
---|---|
| {{anchor|{{sfnref|Blue|Yellow|2018}}|plain text|CITEREFciteref2030|{{sfnref|Yellow|Blue|2019}}}} anchors are here |
miscellaneous tests
For these tests, consult the lua logs section of the debug console. To see that, edit this page and click Show preview. At the bottom, click Parser profiling data and then click show under Lua logs.
= sfn whitelist =
{{sfn whitelist|CITEREFBrand1968|CITEREFFine1994|CITEREFGeanakoplos1959|CITEREFVan_Tricht2011}}
This section has this template:
:
These four anchor IDs should appear in the article_whitelist
table in the lua logs section of the debug console.
= parser functions =
This section has this template:
:
→ {{#language:nv|en}}
parser functions should not appear in the template_list
table in the lua logs section of the debug console.
dynamic whitelisting
class="wikitable" width="100%"
|+dynamic whitelisting !template !! rendering | |
| {{Harvard citation no brackets/sandbox|Adamson|Mitchell|1911|p=135}} |
| {{Harvard citation no brackets/sandbox|Jones|Bryant|1911}} |
colspan="2" | simple citations | |
---|---|
| {{EB1911 |mode=cs2 |last=Adamson |first=Robert |author-link=Robert Adamson (philosopher) |last2=Mitchell |first2=John Malcolm |wstitle=Bacon, Francis |volume=3 |pages=135–152 }} |
| {{cite EB1911 |wstitle=Caesar, Gaius Julius |volume=4 |pages=938–943 |first1=Henry Stuart |last1=Jones |first2=Margaret |last2=Bryant |short=1}} |
colspan="2" | cite catholic encyclopedia uses {{pipe}}volume= | |
| {{Harvard citation no brackets/sandbox|Fanning|1907}} |
| {{Harvard citation no brackets/sandbox|Fanning|1908}} |
| {{Harvard citation no brackets/sandbox|Fanning, William Henry Windsor|1913}} |
| {{Harvard citation no brackets/sandbox|Herbermann|1913}} |
colspan="2" | volume citations | |
| {{Cite CE1913|wstitle =Baptism |first=William Henry Windsor |last=Fanning|volume=2|ref=harv}} |
| {{Catholic|last=Fanning|first=William H. W.|wstitle=Conservator|volume=4|ref=harv}} |
| {{cathEncy|wstitle=Vicar of Christ|author=Fanning, William Henry Windsor}} |
| {{Cite CE1913 | wstitle = Ecclesiastical Heraldry}} |
colspan="2" | cite EB9 uses {{pipe}}volume= allows roman numerals | |
| {{Harvard citation no brackets/sandbox|Adamson|1878}} |
| {{Harvard citation no brackets/sandbox|Baynes|1878}} |
colspan="2" | volume citations | |
| {{cite EB9 |last=Adamson |first=Robert |authorlink=Robert Adamson (philosopher) |wstitle=Henry St John, Viscount Bolingbroke |volume=4 |pages=4–7}} |
| {{eb9 |wstitle=Henry St John, Viscount Bolingbroke |volume=IV |pages=4–7}} |