Loading AI tools
From Wikipedia, the free encyclopedia
List-defined references (LDR) are references that are defined in the reference list markup, as opposed to being defined in the body of the article. LDR was implemented in September 2009 as a way to make referencing articles easier and with less clutter.
This help page is a how-to guide. It explains concepts or processes used by the Wikipedia community. It is not one of Wikipedia's policies or guidelines, and may reflect varying levels of consensus. |
This page is a continuation from a section of Help:Footnotes. This guide assumes you are familiar with the tools explained there, such as the features of <ref>...</ref>
tags, and the <ref name="REFNAME" />
parameter.
LDR makes viewing and editing references more difficult for users of VisualEditor. You may wish to consider this before implementing it.
LDR uses named references where each individual reference has a unique name and is defined within the reference list markup:
<references>
<ref name="name1">reference</ref>
<ref name="name2">reference2</ref>
</references>
{{reflist|refs=
<ref name="name1">reference</ref>
<ref name="name2">reference2</ref>
}}
Alternatively, references can be defined using the 'referencing' wrapper template {{r}} (for brevity the parameter names |name=
and |ref=
can be abbreviated to |n=
and |r=
):
<references>
{{r|name="name1"|ref=reference}}
{{r|name="name2"|ref=reference2}}
</references>
{{reflist|refs=
{{r|name="name1"|ref=reference}}
{{r|name="name2"|ref=reference2}}
}}
Each reference is invoked in the body of the text using <ref name="name1" />
or {{r|name}}
.
Names for footnotes and groups must follow these rules:
":31337"
(which is punctuation plus a number), but it will ignore "31337"
(purely numeric)."Nguyen 2010"
are preferred to names like ":31337"
.":0"
or "NYT"
.A–Z
, a–z
, digits 0–9
, and the symbols !$%&()*,-.:;<@[]^_`{|}~
. That is, all printable ASCII characters except #"'/=<>?\
and space.name="John Smith"
. But quote-enclosed reference names may not include a less-than sign (<
) or a double straight quote symbol ("
), which may however be included by escaping as <
and "
respectively."
); curly or other quotes will be parsed as part of the reference name.<ref name="ABC">...</ref>
tags must have defining information.Seamless Wikipedia browsing. On steroids.
Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.
Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.