Topic on Project:Support desk

Jump to: navigation, search

Wikiversity Citoid reference autoformatting

10
Summary by Elitre (WMF)
Evolution and evolvability (talkcontribs)

Hi! As WikiJournals expand on Wikiversity (v:WikiJMed, v:WikiJSci, v:WikiJHum), the need to format references from DOI or PMID codes is becoming more important. Is it possible to enable the Citoid extension?

TheDJ (talkcontribs)

It already is installed, as far as I understand, you just need to configure it to match the preferences of your wiki installation. Please see VisualEditor/Citation_tool and Citoid#Configure_Citoid_on_a_Citoid-enabled_wiki.

Evolution and evolvability (talkcontribs)

I've had a look though the documentation, but it's a bit beyond my technical expertise. Would it be possible to ask for some assistance so that I don't break anything?

Elitre (WMF) (talkcontribs)

It would be really useful, in the meantime, to understand which parts of Citoid/Enabling Citoid on your wiki you're specifically struggling with. Thanks.

Mvolz (WMF) (talkcontribs)

It looks like Wikiversity has the same templates en wiki does, so it makes it a little easier; you can just copy everything from en wiki. The template data on Wikiversity is outdated, so you need to

1) Copy all the template data from en wiki to Wikiversity for the following templates: Citation, Cite web, Cite book, Cite journal, Cite news, Cite thesis (that's everything between the <templatedata></templatedata> part in the Template:Citation/doc page). If you have someone with import rights it's easier but can be done manually too.

2) Copy this message verbatim: https://en.wikipedia.org/wiki/MediaWiki:Citoid-template-type-map.json

And then you should be good.

Evolution and evolvability (talkcontribs)

sadly the first step I'm unclear on is step 2a, how to create a Create a citoid map, and which ones Wikiversity already has. Do I just copy across the contents of https://en.wikipedia.beta.wmflabs.org/wiki/Template:Cite_journal/doc to a Wikiversity page? And is that page meant to have a lua script error at the top?

Mvolz (WMF) (talkcontribs)

The "map" is inside the templatedata, so if you are copying it from en wiki, it is already there.

You should copy the template data from https://en.wikipedia.org/wiki/Template:Cite_journal/doc, the beta template data is very outdated.

Mvolz (WMF) (talkcontribs)

.

Evolution and evolvability (talkcontribs)

Thank you Mvolz (WMF). I've started copying across the <templatedata>. Sadly I don't have edit permissions for , but we're one step closer!

Evolution and evolvability (talkcontribs)

Fantastic! I've copied across the current wikipedia versions of the cite_X/doc <templatedata>, and one of the wikiversity admins has now imported the final json https://en.wikiversity.org/wiki/MediaWiki:Citoid-template-type-map.json page. Everything seems to be working! If you have a moment, please do check if there's anything I've missed. Thanks again for the help.