Anonymous
Not logged in
Talk
Contributions
Create account
Log in
Search
Editing
MEpedia:Discussion forum and Help desk
(section)
From MEpedia, a crowd-sourced encyclopedia of ME and CFS science and history
Namespaces
Project page
Discussion
More
More
Page actions
Read
Edit
Edit source
History
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Broken citation template? === {{collapse top}} Hi all. I'm suddenly having trouble using the "Cite web" template. In particular I'm trying to add https://www.rheumatology.org/I-Am-A/Patient-Caregiver/Diseases-Conditions/Polymyalgia-Rheumatica as the reference for all the material I've added so far to the [[Polymyalgia rheumatica]] page I just started. But both in Visual Editor and in source code editing, I can't get the "Cite web" template to populate as a reference--it doesn't work at all in VE now and when I try source code, it adds all the info to the prose of the entry, rather than creating a footnote. Anybody have an idea what might be going on? I've used this extensively before (just for one example, see the [[HIV/AIDS]] page) and those references remain properly formatted so I am really stumped. Thanks for any advice! [[User:Canele|Canele]] ([[User talk:Canele|talk]]) 15:21, July 5, 2019 (EDT) :With [[User:Notjusttired|Njt]]'s help, I copied pre-formatted source code and successfully inserted the ref, but in VE, even the Manual tab is still not recognizing the "Cite web" template (even though [[Template:Cite web]] is there!), and it doesn't seem to vary based either on the entry I'm editing or on the link I'm trying to add (e.g. no luck adding https://www.britannica.com/science/glucocorticoid to the [[Glucocorticoid]] page even tho Britannica is [[MediaWiki:Captcha-addurl-whitelist|whitelisted]]). Does anyone have any idea what's up with that? [[User:Canele|Canele]] ([[User talk:Canele|talk]]) 22:05, July 5, 2019 (EDT) ::You’re not the only one to notice citation problems recently. It’s currently unclear to what extent the problems are on our side or on the side of the Citoid server. If it’s on our side , there are some things we can try. If it’s on the side of the Citoid server, then all wikis using that Citoid server should be seeing the same problems. ::[[User:Pyrrhus|Pyrrhus]] ([[User talk:Pyrrhus|talk]]) 00:59, July 6, 2019 (EDT) :::[[User:JenB]] has also reported pubmed links not being looked up, even ones that previously worked, and this appears to be related (they use the journal template). [[User:Kmdenmark]] [[User:Canele]] [[User:Pyrrhus]] What's happening is that Citoid, which generates the references, and/or the VisualEditor can't find the '''templateData''' so doesn't know what fields are in the template to fill out. This seems to have happened when the Citation, Cite web and other templates were accidentally then restored. I've copied the templateData from [[Template:Cite web/doc]] to [[Template:Cite web]] so the web one is working, but this isn't much of a solution since it means there's duplicate data there. Cite news still isn't working (Insert, Template, Cite news brings up no boxes to fill out). Looking elsewhere, a purge of the Citation json has been suggested (which basically means delete old versions) but I don't have access to do this. [[User:Kmdenmark]] You might see a purge option on [[MediaWiki:Citoid-template-type-map.json]] to click - if not try clicking once on this [https://me-pedia.org/w/api.php?action=purge&titles=MediaWiki:Citoid-template-type-map.json link to purge the page] - I get "file not found" when I try, probably because the page is protected or I don't have edit access - it might need unprotecting first. (Purge instructions suggested at bottom of [https://phabricator.wikimedia.org/T106938 this page)]. I don't know how or why but the citoid tool or visual editor or both don't seem to see the templateData and/or some other values that exist. [[User:Notjusttired|notjusttired]] ([[User talk:Notjusttired|talk]]) 08:20, July 6, 2019 (EDT) ::::”Purging” refers simply to refreshing the cache, not removing old versions. You don’t need any special permissions to purge the cache. Since the [[MediaWiki:Citoid-template-type-map.json]] page hasn’t recently been changed, I don’t think that purging the cache will have any effect. ::::[[User:Pyrrhus|Pyrrhus]] ([[User talk:Pyrrhus|talk]]) 13:54, July 6, 2019 (EDT) :::::I think it's worth trying, although editing and saving without changing first is probably a good idea. Purging involves clearing old versions from the cache (temporary memory) in this case - but can also mean deleting old copies (I don't think mediawiki allows that). Normally to clear the cache online you just refresh the page, but I think it's the server cache that's the issue not our local cache. We are on web hosting do no physical server to restart. At the moment I'm trying to guess what might help since I don't know exactly where the problem is. [[User:Notjusttired|notjusttired]] ([[User talk:Notjusttired|talk]]) 15:23, July 6, 2019 (EDT) :::Thank you both for the updates, it's very helpful to know at least it's not just me! Most of this punches well above my technical-skills weightclass so I'm afraid I don't have much to add, but if I'm reading [https://www.mediawiki.org/wiki/Citoid/Where_citoid_is_enabled this] correctly, it looks like Citoid is enabled on en-Wikipedia, and I can confirm the ref issue is not happening there. Just in case that helps! Thanks again. [[User:Canele|Canele]] ([[User talk:Canele|talk]]) 16:45, July 6, 2019 (EDT) ::::Yeah, the “edit and save without changing” trick works for TemplateData, and may work on Template pages in general, but it might be less applicable in other scenarios. MediaWiki uses a number of different caches, but most of the time, people refer to the MediaWiki server’s Page Cache when they say “purging the cache”. To purge the server’s Page Cache for a specific page, simply append <nowiki>?action=purge</nowiki> to the end of the page’s URL. (See https://www.mediawiki.org/wiki/Manual:Purge ). Hope this helps! ::::[[User:Pyrrhus|Pyrrhus]] ([[User talk:Pyrrhus|talk]]) 19:08, July 6, 2019 (EDT) ::::You probably already know this, but there is a [https://phabricator.wikimedia.org/T52372 known bug] where TemplateData in the doc subpage doesn’t show up in the main Template page. I encountered this recently. Although there are workarounds, this problem seems to show up surprisingly often. I think it might be better practice for us to consider storing all TemplateData in the main Template pages, and remove all TemplateData from doc subpages. This way we won’t have to worry about this bug anymore... ::::[[User:Pyrrhus|Pyrrhus]] ([[User talk:Pyrrhus|talk]]) 21:20, July 6, 2019 (EDT) ::::Okay, the TemplateData for all CS1 templates (<nowiki>{{Cite x}}</nowiki>) and the CS2 template (<nowiki>{{Citation}}</nowiki>) has been moved from the /doc subpages to the main Template pages. This should clear up everything on our end. If problems continue, it's probably on the side of the Citoid server. (Unless our TemplateData is wrong!) ::::[[User:Pyrrhus|Pyrrhus]] ([[User talk:Pyrrhus|talk]]) 22:49, July 6, 2019 (EDT) :::::Thank you!! So after purging the cache on [[Glucocorticoid]] (just for instance), the Cite Web template does how populate in the Manual tab--however, automatic ref generating still isn't working even for sources we use all the time, like PubMed (I was trying to add https://www.ncbi.nlm.nih.gov/pubmed/10990237 without having to fill in every author manually). Just an update on where it stands, I know all this debugging is a ton of work. It's very greatly appreciated! Definitely affects how much content I am able to add, whether or not the refs can be largely automated or if all of it needs to be copied by hand. Thank you! [[User:Canele|Canele]] ([[User talk:Canele|talk]]) 23:14, July 6, 2019 (EDT) ::::::[[User:Notjusttired]] The news and web citations are now being generated, plus doi links and everything but pubmed works as far as I know. I tried the purge suggested by [[User:Pyrrhus]] on all relevant modules and templates plus a trivial edit to the Cite journal template and a purge. I didn't know about the templateData bug but the solution sounds better than having duplicate templatedata like before. But pubmed generation still isn't working. I don't know how Citoid links with Cite journal, or Zotero - it's Zotero that generates the references apparently. Can't think what else to try. [[User:Canele]] Either a non-pubmed link to the article, or a doi link will generate a reference as a workaround. There's no question that if is just here, I'm also sure it was caused by the accidental delete of templates that were restored very soon after. [[User:Notjusttired|notjusttired]] ([[User talk:Notjusttired|talk]]) 17:17, July 7, 2019 (EDT) :::::::So it sounds like we fixed the problem that we had on our side. Now there's just the remaining problem on the side of the Citoid server. The Zotero software that runs on the Citoid server must continually be updated to keep pace with the website changes on journal websites, pubmed website, etc. Sometimes the Zotero software on the Citoid server might fall behind, and will fail to automatically produce a citation based on a URL. In this case, you just have to try different URL's until you find one that can successfully be converted into a citation. Hope this helps. :::::::[[User:Pyrrhus|Pyrrhus]] ([[User talk:Pyrrhus|talk]]) 20:56, July 7, 2019 (EDT) ::::::::Yes thank you both, that helps a lot and I agree that's where we are--just tried en-Wikipedia and encountered the same PubMed-specific problem. In this case it's an old text so I don't have a great option for different links to it (and predictably PMID is also down when PubMed URL is down) but that should be a good workaround for most things until they update Citoid/Zotero. A million thanks! [[User:Canele|Canele]] ([[User talk:Canele|talk]]) 21:04, July 7, 2019 (EDT) {{done}} Resolved as best as we could. [[User:Pyrrhus|Pyrrhus]] ([[User talk:Pyrrhus|talk]]) 20:27, July 12, 2019 (EDT) :Citations from pubmed are fully working now - I haven't made any change since I last posted here. [[User:Canele]] [[User:JenB]] [[User:Pyrrhus]] if you find any examples of them not working please tag me and I will take a look. Canele's original [https://www.ncbi.nlm.nih.gov/pubmed/10990237 pmc ref] works for me on my user page. [[User:Notjusttired|notjusttired]] ([[User talk:Notjusttired|talk]]) 16:13, July 14, 2019 (EDT) {{collapse bottom}} {{done}} Now working.
Summary:
Please make sure your edits are consistent with
MEpedia's guidelines
.
By saving changes, you agree to the
Terms of use
, and you irrevocably agree to release your contribution under the
CC BY-SA 3.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Navigation
Navigation
Skip to content
Main page
Browse
Become an editor
Random page
Popular pages
Abbreviations
Glossary
About MEpedia
Links for editors
Contents
Guidelines
Recent changes
Pages in need
Search
Help
Wiki tools
Wiki tools
Special pages
Page tools
Page tools
User page tools
More
What links here
Related changes
Page information
Page logs