named references must have content

+9 votes
129 views
When I enter a reference <ref name="a">XYZ</ref> followed by <ref name="a" />

I am often but not always getting the message that the second must have content. Retyping both usually fixes it, but it is a nuisance and time waster.
in WikiTree Tech by anonymous G2G6 Pilot (255k points)

3 Answers

+5 votes
I don't have an answer for why retyping it usually fixes. However, I have found that the quote marks aren't necessary. Figured I'd pass that along in case, like for me, getting fingers to cooperate with shift+' is difficult for you.
by Debi Hoag G2G6 Pilot (275k points)
Thanks. Interesting. Must try it.
Interestingly, I've never used the quotes as I figured it was just for cases when you might have a space in the "name" you've chosen but since there's no need to have spaces I just put it in without spaces and let it go at that.
Yep. If you don't put spaces in the name, you don't need to put the name in quotes.
+2 votes
There's

Cite error 2; Invalid <ref> tag; refs with no content must have a name

and there's also Cite error 4, which says the same thing a different way.

Cite error 2 can be caused by a variety of typos around the name="a" bit, unmatched quotation marks etc.
by RJ Horace G2G6 Pilot (561k points)
Ah but it happens sometimes even when I'm sure and have checked that the typing is correct.
After I create a reference with "ref name", I often copy that entire reference (including ref name and all the details) into the other slots where I want to use it. That way, the citations will be consolidated in the public display of the page, but stupid errors on my part won't result in citation errors. And I can go back and trim the subsequent citations back to the <ref name=NAME/> format once I'm done working on the biography.
+3 votes
I made a small text file with variations i.e. <ref name="death certificate"> (which i then follow by the reference information</ref>). I can then copy & paste it also in the alternate reference adding the /. However if you forget the / on the alternate reference it will not show any following information.

It works for me because I am not a very good typist.
by Wendy Sullivan G2G6 Pilot (144k points)
Thanks. Yes, I think that may be a good way of enduring it. I'll give it a go and let you know if I have any more problems.

Related questions

+6 votes
2 answers
63 views asked Jan 30, 2016 in Policy and Style by Bob Jewett G2G Astronaut (1.1m points)
+27 votes
2 answers
+4 votes
3 answers
368 views asked Aug 29, 2013 in Policy and Style by M Lechner G2G6 Mach 6 (61.8k points)
+1 vote
2 answers
58 views asked 6 days ago in WikiTree Help by Margaret Ann Hurt G2G Rookie (190 points)

WikiTree  ~  About  ~  Help Help  ~  Search Person Search  ~  Surname:

disclaimer - terms - copyright

...