![]() | This template uses Lua: |
A template that searches the unparsed content of a page and returns a list of item counts for various reference and cs1|2 citation elements.
unnamed refs | 37 | ||
---|---|---|---|
named refs | 8 | ||
self closed | 0 | ||
R templates | 3 | ||
Refn templates | 1 | ||
cs1 refs | 39 | ||
cs1 templates | 184 | ||
cs1-like templates | 12 | ||
cs2 templates | 1 | ||
harv refs | 1 | ||
harv templates | 3 | ||
sfn templates | 258 | ||
rp templates | 1 | ||
refbegin templates | 2 | ||
webarchive templates | 2 | ||
use xxx dates | dmy | ||
cs1|2 dmy dates | 21 | ||
cs1|2 ymd dates | 4 | ||
cs1|2 dmy access dates | 36 | ||
cs1|2 ymd access dates | 5 | ||
cs1|2 dmy archive dates | 9 | ||
cs1|2 last/first | 150 | ||
cs1|2 author | 13 | ||
| |||
| |||
| |||
| |||
| |||
explanations |
This template accepts a single, optional, unnamed parameter:
{{ref info}}
{{ref info|page title}}
When {{ref info}}
is used without a page title
parameter, it may be added to and left in a page. It will only produce output when the page is viewed in preview mode.
Using the template with page title
parameter allows editors to add the template to another page, perhaps in their user space or the article's talk page, so that they may see the state of the named article remotely. The template will not follow a redirect so page name
must be the article's actual name. An error message will be returned if the article at page name
is empty or does not exist.
This template will not be hidden in an article when page name
set.
The template also accepts the named parameter |style=
. Use this to set the output table's styling. For example, to position the table at the right edge of the page, use |style=float:right
(the example in this page uses that style). |style=
is ignored when the page title
parameter is omitted.
To get the reference information from the article Aristotle add {{ref info}}
to that page and click Show preview. Alternately, this documentation page uses:
{{ref info|aristotle}}
The first three of these output statements are always output. For the others, if the output would be 0 or 'no', then there is no output statement.
<ref>...</ref>
tags<ref name="...">...</ref>
<ref name="..." />
<ref>http://example.com</ref>
<ref>[http://example.com]</ref>
{{cite dictionary}}
, {{cite AV media}}
, etc)<ref>...</ref>
tags{{cite archive}}
, {{cite comic}}
, etc.); includes redirects to cs1 templates<ref>...</ref>
tags<ref>...</ref>
tags<ref>...</ref>
tags<ref>...</ref>
tags{{harv}}
, {{harvc}}
, {{harvcol}}
, {{harvp}}
, {{harvtxt}}
templates<ref>...</ref>
tags{{sfn}}
, {{sfnm}}
, {{sfnp}}
templates{{rp}}
templates{{reflist}}
template uses the |refs=
parameter for list-defined references{{refbegin}}
templates{{citation needed}}
, {{disputed inline}}
, {{dubious}}
, {{failed verification}}
, {{page needed}}
templates; others may be added{{dead link}}
(and aliases) templates{{webarchive}}
templates{{use dmy dates}}
or {{use mdy dates}}
; if present, brackets hold the value assigned to |cs1-dates=
in the {{use xxx dates}}
template|df=dmy
or |df=dmy-all
[a]|df=mdy
or |df=mdy-all
[a]|df=ymd
or |df=ymd-all
[a]|last=
, |surname=
, |author-last=
(or first enumerations) for the first author|author=
, |subject=
(or first enumerations) for the first author|authors=
, |people=
, |host=
, |credits=
parameters|vauthors=
style|mode=cs1
|mode=cs2
The output will include collapsed lists of cs1, cs2, cs1-like, sfn, and harv templates used in the article. The list will not be displayed if it would be empty (none of that type of template used in the article).
{{use xxx dates}}
{{use dmy dates}}
or {{use mdy dates}}
, dates in cs1|2 templates render according to the global format specified by the {{use xxx dates}}
template unless overridden by a local |df=
parameter.
At the bottom of a preview page is a dropdown titled: Templates used in this preview. At the bottom of an edit page there is a similar dropdown titled: Pages transcluded onto the current version of this page. When this template is used to monitor a remote page, the Scribunto function mw.title.new()
is counted as linked from the page that holds this template.
The detection of individual templates shown in "List of cs1 templates" and similar sections is deliberately case-sensitive, because some editors prefer to check that the case of their template transclusions is consistent. This means that the section will list {{cite book}} and {{Cite book}} separately, for example.