If short-cite template error messages are enabled, editors can see these messages:
|ref=none
cite
or cita
– these two forms cover most of the cs1|2 redirects|date=2020a
, |date=2020b
Similar (although not identical) messages are emitted by the user scripts. See the script documentation.
Ways of resolving legitimate Stampa:Error-small errors include:
|ref=
or |id=
as appropriate to match the value expected by the short-cite template{{anchor}}
parameter value to the value expected by the short-cite template|ref=none
to suppress anchor ID link creationWays of resolving Stampa:Error-small errors include:
|ref=none
to cs1|2 templates|date=
and to the {{sfn}} template when there are multiple full citations to works in the same year by identical authors or editorsNo advice is given for resolving false-positive errors.
The short-cite templates employ an article reader to read the article's raw wikitext (the same text that you see in the source editor's edit window). While reading the wikitext, the article reader looks for a variety of templates that can create anchor IDs. For each such template found, the article reader attempts to extract the necessary information to create an image of the template's anchor ID, if it would produce one. For cs1|2, the most common long-form citation templates, depending on the state of |ref=
the article reader looks for:
|ref=harv
: contributor / author / editor surname parameters and the year portion of the date|ref={{sfnref}}
: the information held in {{sfnref}}
(or its redirect {{harvid}}
)|ref=<plain text>
: the image is the <plain text>
The article reader extracts similar information from other templates as appropriate for those templates.
Each image of a long-form citation anchor ID is saved in a list along with a tally indicating how many of that image the article reader found. When the short-cite template renders its output, it looks for its target anchor ID in the anchor-ID list:
The Stampa:Error-small errors may be true errors or may be false-positive errors. For true errors, there is no anchor ID in the article to match the anchor ID expected by the short-cite template. A false-positive error occurs because the article reader can only read the article's raw wikitext, it cannot burrow into wrapper templates. Wrapper templates enclose the template that creates the anchor ID. This enclosure hides the necessary details so the article reader cannot create an image of that wrapper template's anchor ID. For example, {{cite DNB}}
is a wrapper template that encloses {{cite encyclopedia}}
. The values assigned to the {{cite DNB}}
parameters |year=
and |supplement=
tell {{Cite DNB}}
how to set editor names and date in its call to the enclosed {{cite encyclopedia}}
which uses them to create the wrapper template's anchor ID. When a wrapped template creates a matching anchor ID that the article reader cannot see; the link from short-cite to long-form citation works but is marked with a Stampa:Error-small false-positive error message.
This article uses material from the Wikipedia Shqip article Ndihmë:Gabimet me stampat Harv dhe SFN, which is released under the Creative Commons Attribution-ShareAlike 3.0 license ("CC BY-SA 3.0"); additional terms may apply (view authors). Përmbajtja është në disponim nëpërmjet licencës CC BY-SA 4.0 nëse nuk shënohet ndryshe. Images, videos and audio are available under their respective licenses.
®Wikipedia is a registered trademark of the Wiki Foundation, Inc. Wiki Shqip (DUHOCTRUNGQUOC.VN) is an independent company and has no affiliation with Wiki Foundation.