In VisualEditor there is a very useful feature of citation with automatic citation where one can provide URL/ISBN/PMID and citation is automatically generated.
It turns out that it is quite common that new editors give "1" or "2" for the automatic citation (they real intention is probably reuse referring for "ref 1"/"ref 2") but it is understood as PMID 1 and PMID 2.
How to reproduce:
- In VE (such as https://en.wikipedia.org/wiki/2018_FIFA_World_Cup?veaction=edit ) click on "Cite"
- Enter "1" in the automatic citation
Suggested solution:
if (parseInt(ref)<10 || parseInt(ref)<numRefs) { diambigRef(); }
else citoid(ref)
Examples (hewiki, arwiki, frwiki):
- https://he.wikipedia.org/w/index.php?title=%D7%A4%D7%95%D7%9C_%D7%A8%D7%A1%D7%99%D7%A0%D7%99%D7%99%D7%94&diff=next&oldid=23055893 (PMID 1 on used in Paul Rassinier)
- https://he.wikipedia.org/w/index.php?title=בתי_המיליונרים&diff=22973555&oldid=22973415 (PMID 10)
- https://ar.wikipedia.org/w/index.php?title=%D8%A5%D9%85_30&oldid=28295299 (PMID 4)
- https://ar.wikipedia.org/wiki/%D8%B5%D9%81%D8%A7%D8%A1_%D8%A7%D9%84%D8%AC%D9%8A%D9%88%D8%B3%D9%8A
- https://fr.wikipedia.org/wiki/Jean-Claude_Largeau (PMID 1)
Verification Notes
- @EAkinloose / @Ryasmeen: when verify on production, can you please verify whether typing PMID 1 within Citoid's Automatic tab generates an automatic citation like what's shown here: