Kategorija:Harv in Sfn napake predlog
To je sledilna kategorija Uporablja se za gradnjo in vzdrževanje seznamov strani zaradi seznama samega in ni del kategorizacijske sheme Wikipedije.
|
Administratorji: Prosimo, ne izbrišite te kategorije niti takrat, ko je prazna! Občasno ali večino časa je ta kategorija lahko prazna. |
Ta kategorija vsebuje članke, ki uporabljajo katero koli od kratkih citatnih predlog (družine predlog {{harv}}
in {{sfn}}
ter predloga {{harvc}}
), kjer ena ali več teh kratkih citatnih predlog ni pravilno povezana s polnim citatom, ciljem, ali kjer bi lahko več polnih citatov bil cilj ene same kratke citatne predloge.
Zaradi tehničnih omejitev kategorija kat:Harv in Sfn no-target napake vsebuje veliko člankov z lažno pozitivnimi napakami. Sporočila o napakah brez cilja so privzeto skrita. Članki z več no-target napakami so navedeni v kat:Harv in Sfn multiple-target napake. Napake večih-ciljev niso dovzetne za lažno pozitivne napake, zato te napake niso skrite. Več možnosti za prikaz sporočil o napakah je podrobno opisanih spodaj, kot tudi možni načini za reševanje napak.
Izpis napakovnih sporočil
[uredi | uredi kodo]Za več informacij glejte: en:Category:Harv and Sfn template errors#Displaying error messages
Napakovna sporočila
[uredi | uredi kodo]Če so predloge z okrajšanim virom omogočene, lahko uporabniki vidijo naslednja sporočila:
- Harv/sfn error: no target: <anchor ID> – short-cite template cannot find <anchor ID> so cannot link to a full-cite target. Causes for this can be:
- the article does not have full-cite target with <anchor ID>
- the matching full-cite target is a cs1 or cs2 template that:
- h as
|ref=none
- uses a redirect name when that redirect does not begin with
cite
orcita
– these two forms cover most of the cs1|2 redirects
- h as
- the full-cite target does not use exactly the same author or editor surnames and/or date as listed in <anchor ID>
- the short-cite template links to a full-cite target that is a wrapper-template; see false-positive errors below
- Harv/sfn error: multiple targets (n×): <anchor ID> – predloga z okrajšanim virom najde več predlog z istim celotnim virom z ujemajočim se sidrom <anchor ID>. Vzroki za to so lahko:
- več virov istega avtorja iz istega leta v predlogi ne uporablja razločevanja letnic:
|date=2020a
,|date=2020b
- podvojena uporaba predloge z istim celotnim virom, naprimer enkrat v razdelku Sklici, drugič v razdelku Literatura, ali morda tekom besedila članka.
- več virov istega avtorja iz istega leta v predlogi ne uporablja razločevanja letnic:
Podobna (čeprav ne ista) sporočila izpisujejo tudi uporabniški skripti. Glej dokumentacijo skriptov.
Reševanje napak
[uredi | uredi kodo]Ways of resolving legitimate no target errors include:
- adding a missing full citation. When short citations are copied from one article to another without a full citation, you can sometimes find the full citation in a related article using Wikipedia's search feature.
- correcting the author and/or editor names in either the short or full citation so that they match each other
- correcting or adding dates in either the short or full citation so that they match each other; remember that date ranges are separated with an ndash character (–)
- converting a plain-text full citation into a templated citation using one of the cs1|2 families of templates (e.g. {{Cite book}}) or one of the Vcite family of templates (e.g. {{vcite book}})
- change cs1|2 template redirect names that do not begin with
cite
orcita
to the target of the redirect (e.g. change {{encyclopedia}} to {{cite encyclopedia}}) - create and use
{{cite ...}}
redirects for citation wrapper templates:{{<whatever>}}
→{{cite <whatever>}}
. Consider renaming the wrapper template so that its canonical name is{{cite <whatever>}}
because there are automated processes out there that rename redirects to their canonical names; once renamed by these drones, false-positive error messaging may reappear. - wrapping a plain-text citation inside {{wikicite}} and setting
|ref=
or|id=
as appropriate to match the value expected by the short-cite template - placing {{anchor}} adjacent to the plain-text citation; set the
{{anchor}}
parameter value to the value expected by the short-cite template - set the short-cite parameter
|ref=none
to suppress anchor ID link creation
Ways of resolving false positive no target errors include:
- adding the CITEREF to:
- Module:Footnotes/whitelist – use this when many articles use the same long-form citation
- a
{{sfn whitelist}}
template in the article
Ways of resolving multiple targets errors include:
- adding
|ref=none
to cs1|2 templates - adding disambiguation letters to
|date=
and to the {{sfn}} template when there are multiple full citations to works in the same year by identical authors or editors - converting redundant full citations into short citations using {{sfn}}, leaving only one full citation to the referenced work in the article
- entirely removing a redundant full citation, e.g. identical full citations in a "Bibliography" section and in "Further reading"
No advice is given for resolving false-positive errors.
Trenutne omejitve in lažne pozitivne napake
[uredi | uredi kodo]Kratka razlaga
[uredi | uredi kodo]When a short-cite template links to a full citation that is rendered by a template that wraps a CS1 template, like {{cite DNB}}
(which wraps {{cite encyclopedia}}
), a no target error may be displayed even when the short-cite template is valid and the link works. That is a "false positive" error. If you find what looks like a false positive error, please report it on the talk page for this category, and another editor will either fix the article or add the template in question to Module:Footnotes/whitelist.
Podrobnosti
[uredi | uredi kodo]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 determine the template's anchor ID, if it produces one. For cs1|2, the most common long-form citation templates, the article reader looks for:
- The default anchor ID created by the template automatically: up to four author / editor / contributor surname(s) and the year portion of the date
|ref=
: the anchor ID generated by{{sfnref}}
{{sfnref}}
(or its redirect{{harvid}}
)|ref=<plain text>
: the anchor ID is the<plain text>
The article reader extracts similar information from other templates as appropriate for those templates.
Each long-form citation anchor ID is saved in a list along with a tally indicating how many of that ID the article reader found. When the short-cite template renders its output, it looks for its target anchor ID in the anchor-ID list:
- anchor ID found and the tally is 1: short-cite template is rendered without error message
- anchor ID found and the tally is 2 or more: short-cite template is rendered with a multiple target error message and the article is added to Category:Harv and Sfn template errors
- anchor ID not found: short-cite template is rendered with a no target error message and the article is added to Category:Harv and Sfn template errors
The no target 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 determine 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 no target false-positive error message.
Podkategorije
Ta del kategorije ima 2 naslednji podkategoriji, od skupno 2.
H
- Harv in Sfn no-target napake (1.233 S)