Page MenuHomePhabricator

Help the community configure citoid on gdwiki
Open, MediumPublic0 Estimated Story Points

Description

Referring to guidance on mediawiki.org (https://www.mediawiki.org/wiki/Citoid/Enabling_Citoid_on_your_wiki) Step 1 appears to be complete as the cite menu in visual editor gives six options including 'basic' and 'reuse'.

Current citation templates:

  1. Cite news: https://gd.wikipedia.org/wiki/Teamplaid:Iomradh_naidheachd
  2. Cite journal: https://gd.wikipedia.org/wiki/Teamplaid:Iomradh_iris
  3. Cite web: https://gd.wikipedia.org/wiki/Teamplaid:Iomradh_l%C3%ACon
  4. Cite book: https://gd.wikipedia.org/wiki/Teamplaid:Iomradh_leabhar
  5. Citation: missing - does this need creating?

For step 2a a data map needs to be created. Are these added to each template separately or is there a central place they need to be created?

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

For 2a, you need to add extra template data (called a 'map') to each template you need to use, so yes, they are added to each template separately.

As for the templates themselves, that is kind of up to you/the community. It's designed to be able to use any set of templates. So you can choose to use Teamplaid:Iomradh_l%C3%ACon instead of Template:Citation in the Mediawiki message (or one of the others, depending on type.)

Deskana moved this task from To Triage to External and Administrivia on the VisualEditor board.
Jdforrester-WMF renamed this task from Enabling Citoid on gd.wp to Help the community configure citoid on gdwiki.Jun 28 2017, 11:57 AM
Jdforrester-WMF set the point value for this task to 0.

Thank you, Mvolz.

I've tried creating a data map for https://gd.wikipedia.org/wiki/Teamplaid:Iomradh_l%C3%ACon/doc

Is someone able to check that the format works before I start fiddling with other templates?

Diff: https://gd.wikipedia.org/w/index.php?title=Teamplaid%3AIomradh_l%C3%ACon%2Fdoc&type=revision&diff=532291&oldid=517347

Looks good to me!

Great! If no one spots anything in the meantime, I'll work on the other templates next week.

Yes, the next step is to install the message.

These look okay but just a few issues:

With the way the authors are set-up, you will only ever have one author filled in. Are there ways to add multiple authors in these templates? If there aren't fields for each author (i.e. last1, last2) it is better to set the entire thing equivalent to the key, i.e. "author": "last"

Because you didn't import Citation, there are some missing fields that need to be added to one of the other templates. But at this point it's a little hard to point out which fields go where since I don't know what templates are going to be used instead of Citation. It is possible to install the message first and do that after without it being *too* terrible because these tend to be obscure item types that aren't commonly used.

The templates are set up so that there is a main author ("last", "first") a field for "other author" (ùghdar_eile), and a field to be used when there are multiple "other authors" (ùghdaran_eile). Both of those are in the data maps, but might not be obvious becuase they don't follow the "last", "first" format. Would that need to be changed?

I'll see what I can do about getting the MediaWiki message sorted.

The templates are set up so that there is a main author ("last", "first") a field for "other author" (ùghdar_eile), and a field to be used when there are multiple "other authors" (ùghdaran_eile). Both of those are in the data maps, but might not be obvious becuase they don't follow the "last", "first" format. Would that need to be changed?

I'll see what I can do about getting the MediaWiki message sorted.

I think probably the best option here would be to do:

'author':'ùghdaran_eile'

This way all the authors will go in this field (comma separated). It's not ideal but it should display the citation correctly without having to change how the template works.

Do you need any more help with this? I don't have the permissions to import the Citation template, but if we skip that (this has been stalled) we can just install the web one instead maybe?

We now have five citation templates:

  1. Cite news: https://gd.wikipedia.org/wiki/Teamplaid:Iomradh_naidheachd
  2. Cite journal: https://gd.wikipedia.org/wiki/Teamplaid:Iomradh_iris
  3. Cite web: https://gd.wikipedia.org/wiki/Teamplaid:Iomradh_l%C3%ACon
  4. Cite book: https://gd.wikipedia.org/wiki/Teamplaid:Iomradh_leabhar
  5. Citation: https://gd.wikipedia.org/wiki/Teamplaid:Iomradh

We have data maps for 1-4, and I think I should be able to put one together for #5. Once that's done, I'll put a message on the gd.wp village pump to ask for admin help editing the Mediawiki message.

We now have five citation templates:

  1. Cite news: https://gd.wikipedia.org/wiki/Teamplaid:Iomradh_naidheachd
  2. Cite journal: https://gd.wikipedia.org/wiki/Teamplaid:Iomradh_iris
  3. Cite web: https://gd.wikipedia.org/wiki/Teamplaid:Iomradh_l%C3%ACon
  4. Cite book: https://gd.wikipedia.org/wiki/Teamplaid:Iomradh_leabhar
  5. Citation: https://gd.wikipedia.org/wiki/Teamplaid:Iomradh

We have data maps for 1-4, and I think I should be able to put one together for #5. Once that's done, I'll put a message on the gd.wp village pump to ask for admin help editing the Mediawiki message.

What is the status of this? It looks like you're very close. You could just paste the English one in for Teamplaid:Iomradh and I could enable the message if you'd like :). Could always translate later.

I've copy pasted the en wiki template data into https://gd.wikipedia.org/wiki/Teamplaid:Iomradh

I had a look at the other template data and it looks okay still except for author. I tried putting all the authors in "ùghdaran_eile" but it doesn't format it correctly without Ainm/Sloinneadh

But then if we put them in both, you'll have a duplicate, the author both in Ainm/Sloinneadh and in ùghdaran_eile.

There are no great solutions here; you could either use Citation for all automatic citations, which works but that is not yet translated. Or change the four native templates to handle authors differently, either but getting rid of the leading comma for ùghdaran_eile and just using that, or have a duplicate author, or only one author added by citoid.

Or we could put everything in Sloinneadh for now. That would actually format everything correctly. I think this might be our best bet because at least it looks correctly formatted. If people don't like it we could re-evaluate?