Topic on Talk:Citoid

No spaces in citation output

2
Summary by Lostraven

Someone commented on the Phabricator ticket and made me aware of these custom format settings in Extension:TemplateData. Wow! Huge help. However, I feel like this information is massively lacking in the Citoid documentation, and I'm going to go add that information now.

Lostraven (talkcontribs)

It drives me absolutely bonkers that the output doesn't put a space before every pipe / after the field content in the citation it generates.

For example, generated as: {{Cite journal|last=Forsman|first=R W|date=1996-05-01|title=Why is the laboratory an afterthought for managed care organizations?|url=https://academic.oup.com/clinchem/article/42/5/813/5646564|journal=Clinical Chemistry|language=en|volume=42|issue=5|pages=813–816|doi=10.1093/clinchem/42.5.813|issn=0009-9147}}

I want it to output as: {{Cite journal |last=Forsman |first=R W |date=1996-05-01 |title=Why is the laboratory an afterthought for managed care organizations? |url=https://academic.oup.com/clinchem/article/42/5/813/5646564 |journal=Clinical Chemistry |language=en |volume=42 |issue=5 |pages=813–816 |doi=10.1093/clinchem/42.5.813 |issn=0009-9147}}


What file or files in the Citoid extension must I modify in order to add a space before every pipe / after field text?

EDIT: I'll add that I do 99 percent of the entry on our wiki, and I almost exclusively work in the source editor. The only reason I added Citoid is because of years and years of manually typing citations out. The bummer, of course, is that the Automatic feature of Citoid only works in VisualEditor, not in the source editing screen. But the time savings of automatically generating citations was tantalizing. Yet because most of my work is in source editing, I still want slightly better readability of the generated citations, and thus I want to add a space before every pipe. Hopefully this is a relatively easy thing for me to modify?


Thank you.

Lostraven (talkcontribs)

After a lot of digging, I found a Phabricator ticket from 2020. Does Citoid not manage the output to the text editor? Or is it VisualEditor, as this ticket suggests? Digging further.