Help:Cite errors/Cite error group refs without references

From embargo
Revision as of 23:04, 14 November 2021 by imported>Tholme
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Pp-semi-indefTemplate:Pp-move-indef Template:Wikipedia how-to Help:Cite errors/header

Overview[edit source]

Template:See When grouped references are defined, then the page must also have markup to show the reference list. The reference list is shown by including either of the following:

{{#if:||}}{{[[{{#if:|{{{SISTER}}}Template|Template}}:Reflist|Reflist]]{{#if:group=groupname||group=groupname}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}}{{#if:||}}
or
{{notelist}} or one of the variants listed below.

Issues and resolution[edit source]

The most obvious and simplest issue is when the reference list markup is missing. Simply add {{#if:||}}{{[[{{#if:|{{{SISTER}}}Template|Template}}:reflist|reflist]]{{#if:group=groupname||group=groupname}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}}{{#if:||}} to the end of the article under the section title "References", usually between "See also" and "External links". The $1 in the message shown above will be replaced with the groupname.

There are predefined group names that use templates for the in-text citation and for the reference list. If one of these group names is used, then the matching reference list template can be used.

Group type Footnote marker template
or markup
Reference list
template
Sample labels
none by default, but optionally any {{#switch:pair close = empty|s|single|v|void open pair = <{{#if:|ref|ref}}{{#if:| {{{attribs}}}}}
}}{{#switch:pair
close = empty|s|single|v|void = /> open = > pair = {{#ifeq:ref|!-- >}}...
}}{{#switch:pair
empty|s|single|v|void open = close pair = {{#ifeq:ref|!--|-->|</ref>}}
}}
{{#if: }}{{[[{{#if:|{{{SISTER}}}Template|Template}}:reflist|reflist]]{{#if:||{{{2}}}}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}}{{#if: }} 1 2 3 4 5 6 7 8 9 10
{{#if: }}{{[[{{#if:|{{{SISTER}}}Template|Template}}:r|r]]{{#if:||{{{2}}}}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}}{{#if: }} (for nested references)
{{#if: }}{{[[{{#if:|{{{SISTER}}}Template|Template}}:refn|refn]]{{#if:||{{{2}}}}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}}{{#if: }} (for nested references)
lower-alpha {{#if: }}{{[[{{#if:|{{{SISTER}}}Template|Template}}:efn|efn]]{{#if:||{{{2}}}}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}}{{#if: }}
{{#if:
}}{{[[{{#if:|{{{SISTER}}}Template|Template}}:efn-la|efn-la]]{{#if:||{{{2}}}}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}}{{#if: }} {{#if: }}{{[[{{#if:|{{{SISTER}}}Template|Template}}:notelist|notelist]]{{#if:||{{{2}}}}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}}{{#if: }}
{{#if:
}}{{[[{{#if:|{{{SISTER}}}Template|Template}}:notelist-la|notelist-la]]{{#if:||{{{2}}}}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}}{{#if: }} a b c d e f g h i j
upper-alpha {{#if: }}{{[[{{#if:|{{{SISTER}}}Template|Template}}:efn-ua|efn-ua]]{{#if:||{{{2}}}}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}}{{#if: }} {{#if: }}{{[[{{#if:|{{{SISTER}}}Template|Template}}:notelist-ua|notelist-ua]]{{#if:||{{{2}}}}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}}{{#if: }} A B C D E F G H I J
lower-roman {{#if: }}{{[[{{#if:|{{{SISTER}}}Template|Template}}:efn-lr|efn-lr]]{{#if:||{{{2}}}}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}}{{#if: }} {{#if: }}{{[[{{#if:|{{{SISTER}}}Template|Template}}:notelist-lr|notelist-lr]]{{#if:||{{{2}}}}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}}{{#if: }} i ii iii iv v vi vii viii ix x
upper-roman {{#if: }}{{[[{{#if:|{{{SISTER}}}Template|Template}}:efn-ur|efn-ur]]{{#if:||{{{2}}}}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}}{{#if: }} {{#if: }}{{[[{{#if:|{{{SISTER}}}Template|Template}}:notelist-ur|notelist-ur]]{{#if:||{{{2}}}}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}}{{#if: }} I II III IV V VI VII VIII IX X
lower-greek {{#if: }}{{[[{{#if:|{{{SISTER}}}Template|Template}}:efn-lg|efn-lg]]{{#if:||{{{2}}}}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}}{{#if: }} {{#if: }}{{[[{{#if:|{{{SISTER}}}Template|Template}}:notelist-lg|notelist-lg]]{{#if:||{{{2}}}}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}}{{#if: }} α β γ δ ε ζ η θ ι κ
note {{#if: }}{{[[{{#if:|{{{SISTER}}}Template|Template}}:NoteTag|NoteTag]]{{#if:||{{{2}}}}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}}{{#if: }} {{#if: }}{{[[{{#if:|{{{SISTER}}}Template|Template}}:NoteFoot|NoteFoot]]{{#if:||{{{2}}}}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}}{{#if: }} note 1 note 2 note 3

Sometimes the reference list markup exists, but the message is shown because the {{#switch:o

 |c|close =
 |e|empty|s|single|v|void
 |o|open
 |p|pair = <{{#if:|ref|ref}}{{#if:| {{{attribs}}}}}
}}{{#switch:o
 |c|close = 
 |e|empty|s|single|v|void =  />
 |o|open = >
 |p|pair = {{#ifeq:ref|!--||>}}...
}}{{#switch:o
 |e|empty|s|single|v|void
 |o|open =
 |c|close
 |p|pair = {{#ifeq:ref|!--|-->|</ref>}}
}} tag immediately before the reference list markup does not have a closing {{#switch:c
 |c|close =
 |e|empty|s|single|v|void
 |o|open
 |p|pair = <{{#if:|ref|ref}}{{#if:| {{{attribs}}}}}
}}{{#switch:c
 |c|close = 
 |e|empty|s|single|v|void =  />
 |o|open = >
 |p|pair = {{#ifeq:ref|!--||>}}...
}}{{#switch:c
 |e|empty|s|single|v|void
 |o|open =
 |c|close
 |p|pair = {{#ifeq:ref|!--|-->|</ref>}}
}} or it is malformed, thus "eating" the rest of the text including the reference list. Find the last {{#switch:o
 |c|close =
 |e|empty|s|single|v|void
 |o|open
 |p|pair = <{{#if:|ref|ref}}{{#if:| {{{attribs}}}}}
}}{{#switch:o
 |c|close = 
 |e|empty|s|single|v|void =  />
 |o|open = >
 |p|pair = {{#ifeq:ref|!--||>}}...
}}{{#switch:o
 |e|empty|s|single|v|void
 |o|open =
 |c|close
 |p|pair = {{#ifeq:ref|!--|-->|</ref>}}
}} tag and ensure it is properly closed with {{#switch:c
 |c|close =
 |e|empty|s|single|v|void
 |o|open
 |p|pair = <{{#if:|ref|ref}}{{#if:| {{{attribs}}}}}
}}{{#switch:c
 |c|close = 
 |e|empty|s|single|v|void =  />
 |o|open = >
 |p|pair = {{#ifeq:ref|!--||>}}...
}}{{#switch:c
 |e|empty|s|single|v|void
 |o|open =
 |c|close
 |p|pair = {{#ifeq:ref|!--|-->|</ref>}}
}}.

This message may also show if there are {{#switch:pair

 |c|close =
 |e|empty|s|single|v|void
 |o|open
 |p|pair = <{{#if:|ref|ref}}{{#if:| {{{attribs}}}}}
}}{{#switch:pair
 |c|close = 
 |e|empty|s|single|v|void =  />
 |o|open = >
 |p|pair = {{#ifeq:ref|!--||>}}...
}}{{#switch:pair
 |e|empty|s|single|v|void
 |o|open =
 |c|close
 |p|pair = {{#ifeq:ref|!--|-->|</ref>}}
}} tags after the reference list markup. Ensure all {{#switch:pair
 |c|close =
 |e|empty|s|single|v|void
 |o|open
 |p|pair = <{{#if:|ref|ref}}{{#if:| {{{attribs}}}}}
}}{{#switch:pair
 |c|close = 
 |e|empty|s|single|v|void =  />
 |o|open = >
 |p|pair = {{#ifeq:ref|!--||>}}...
}}{{#switch:pair
 |e|empty|s|single|v|void
 |o|open =
 |c|close
 |p|pair = {{#ifeq:ref|!--|-->|</ref>}}
}} tags are properly placed. A template such as a navbox may have {{#switch:pair
 |c|close =
 |e|empty|s|single|v|void
 |o|open
 |p|pair = <{{#if:|ref|ref}}{{#if:| {{{attribs}}}}}
}}{{#switch:pair
 |c|close = 
 |e|empty|s|single|v|void =  />
 |o|open = >
 |p|pair = {{#ifeq:ref|!--||>}}...
}}{{#switch:pair
 |e|empty|s|single|v|void
 |o|open =
 |c|close
 |p|pair = {{#ifeq:ref|!--|-->|</ref>}}
}} tags.

Examples[edit source]

Help:Cite errors/lang {{#ifeq:Help||Template:FormattingError|In the following example, the list of references in the group note is missing:}} Template:Pre

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.[note 1] Ut enim ad minim veniam, quis nostrud exercitation ullamco Template:Not a typo nisi ut aliquip ex ea commodo consequat.

Technical[edit source]

Help:Cite errors/tech

Bugs[edit source]

Template:Tracked

  • Misleading error message for omitted {{#switch:close
 |c|close =
 |e|empty|s|single|v|void
 |o|open
 |p|pair = <{{#if:|ref|ref}}{{#if:| {{{attribs}}}}}
}}{{#switch:close
 |c|close = 
 |e|empty|s|single|v|void =  />
 |o|open = >
 |p|pair = {{#ifeq:ref|!--||>}}...
}}{{#switch:close
 |e|empty|s|single|v|void
 |o|open =
 |c|close
 |p|pair = {{#ifeq:ref|!--|-->|</ref>}}
}} tag Template:Phab


Cite error: <ref> tags exist for a group named "note", but no corresponding <references group="note"/> tag was found