Page MenuHomePhabricator

Help some smaller Wikipedias' communities by writing the TemplateData and enabling citoid for them
Open, MediumPublic8 Estimated Story Points

Description

Most Wikipedias have very few technically-inclined editors, and are therefore unable to write citation templates or enable them for the visual editor. Enabling citoid for them might be a mitzvah for those communities.

The simplest route would probably be importing templates from the English Wikipedia (or perhaps from the nearest fallback language). This would result in the templates being in the 'wrong' language, but this is unlikely to affect most users of the visual editor (who will use the citoid service instead of the template editor), and it might encourage more citations, less linkrot, and better reliability.

Steps:

  1. Find the citation templates used by the VE Citation tool
    1. If the VE Citation tool is not installed, first inquire at the Village Pump. Some communities do not want to use templates.
    2. Import basic 5 templates from en wiki (import requires sysop privileges).
    3. Enable Visual Editor Citation tool
  2. Write TemplateData for each template in the citation tool.
  3. Write the JSON maps in the TemplateData that citoid needs to find and use the citation templates listed in step 5.
  4. Enable the VE citation tool (non-citoid citation feature) (requires sysop privileges).
  5. Install the JSON Mediawiki message that turns on citoid (requires sysop privileges).

There is a master list where citoid is enabled here in order to figure out which communities to prioritise:

Related Objects

StatusSubtypeAssignedTask
ResolvedQgil
Resolved Rfarrand
ResolvedQuiddity
OpenNone
ResolvedTrizek-WMF
DeclinedTrizek-WMF
Resolvedmatej_suchanek
ResolvedMvolz
OpenNone
ResolvedMvolz
ResolvedTrizek-WMF
ResolvedMvolz
ResolvedNone
ResolvedMvolz
ResolvedMvolz
ResolvedAca
ResolvedMvolz
ResolvedTiven2240
ResolvedMvolz
ResolvedNone
OpenNone
OpenNone
DeclinedTrizek-WMF
ResolvedMvolz
ResolvedNone
OpenNone
ResolvedMvolz
ResolvedBUG REPORT marcella
ResolvedMvolz
ResolvedMvolz
ResolvedNone
OpenMvolz

Event Timeline

There are a very large number of changes, so older changes are hidden. Show Older Changes
In T127354#3915201, @Acamicamacaraca wrote:

@Mvolz its added on hr wiki !

Oh, you're right, thank you for fixing it twice :).

In T127354#3915201, @Acamicamacaraca wrote:

@Mvolz its added on hr wiki !

Hello, thank you for adding Citoid maps! I wonder if the date format could be changed, to comply with standing referencing standards: instead of (accessed) "2018-01-23", change the date to "23. siječnja 2018."

The months are as follows: 01 - siječnja, 02 - veljače, 03 - ožujka, 04 - travnja, 05 - svibnja, 06 - lipnja, 07 - srpnja, 08 - kolovoza, 09 - rujna, 10 - listopada, 11 - studenoga, 12 - prosinca

also, instead of the foreign language indicator e.g. "(en)", could it be possible to add a template at the end: {{eng oznaka}}. Please refer to this table on hrwiki, column "Ime predloška".

Thank you!

Thanks for your question, @Ivi104. Realistically, the citoid service can't change the dates to match each wiki's preferences. However, the templates themselves can easily re-format citoid's dates to display whatever you would like. The English Wikipedia has the code (look for their df parameter.)

Thanks for your question, @Ivi104. Realistically, the citoid service can't change the dates to match each wiki's preferences. However, the templates themselves can easily re-format citoid's dates to display whatever you would like. The English Wikipedia has the code (look for their df parameter.)

Thank you, @Whatamidoing-WMF ! If you could perhaps elaborate a bit on where to find the df parameter, and how to format it to match hr.wiki styling? Thank you!

@Whatamidoing-WMF - so I just enabled ta wiki. Interestingly they only had Template:Citation. I actually think this is the easiest and best approach for wikis that don't have a template ecosystem in place already, which is to import the most recent version of Template:Citation and then enable citoid using only the single template.

@Whatamidoing-WMF - so I just enabled ta wiki. Interestingly they only had Template:Citation. I actually think this is the easiest and best approach for wikis that don't have a template ecosystem in place already, which is to import the most recent version of Template:Citation and then enable citoid using only the single template.

This tip could prolly go in https://www.mediawiki.org/wiki/Citoid/Enabling_Citoid_on_your_wiki ! I added it to https://www.mediawiki.org/w/index.php?title=Help%3AVisualEditor%2FVE_as_the_main_editor&type=revision&diff=2713319&oldid=2501704, although maybe the wording could be simplified.

Hi @Mvolz I just noticed some changes were made in cawiki and I think they might have provoked that ISBN resolution stopped working (and I don't know other things). I deeply thank the efforts to solve any existing and potential issue, but I think it would have been good to find a way to communicate with the editor community (via local village pump or via a tech liaison) that some actions were going to be performed. Let me know how I can help now and in the future!

Hi @Mvolz I just noticed some changes were made in cawiki and I think they might have provoked that ISBN resolution stopped working (and I don't know other things). I deeply thank the efforts to solve any existing and potential issue, but I think it would have been good to find a way to communicate with the editor community (via local village pump or via a tech liaison) that some actions were going to be performed. Let me know how I can help now and in the future!

How about you provide more details about what is working and what not, for the time being? See https://www.mediawiki.org/wiki/How_to_report_a_bug/ca. There's plenty of time to jump to conclusions... Thank you. (I also see just one person on https://meta.wikimedia.org/wiki/Tech/Ambassadors/List from your community, if you're interested in even more collaboration in the future! :) )

Hi @Elitre , I arrived this bug via comments here: https://ca.wikipedia.org/w/index.php?title=MediaWiki:Citoid-template-type-map.json&action=history Some comments about the situation here: https://ca.wikipedia.org/wiki/Tema:U78vfqi6wdvcsyj4 I can open another bug if you think it's better. I added myself to tech ambassadors list. Let me know how I can help. Thanks.

@Elitre @Mvolz As you see in the thread, we reverted changes and things work again. However, since I guess we should update our templates for fully accepting all Citoid options, maybe a good approach could be testing this kind of stuff in beta wikis first, such as https://ca.wikipedia.beta.wmflabs.org/wiki/ This is what I originally did for enabling many Citoid features. Let's discuss it if you want, maybe it can also be helpful for other communities apart from the Catalan one...

You are absolutely also welcome to follow https://www.mediawiki.org/wiki/Citoid/Enabling_Citoid_on_your_wiki. Maybe there's a point there that needs updating or something. TY!

@Elitre @Mvolz As you see in the thread, we reverted changes and things work again. However, since I guess we should update our templates for fully accepting all Citoid options, maybe a good approach could be testing this kind of stuff in beta wikis first, such as https://ca.wikipedia.beta.wmflabs.org/wiki/ This is what I originally did for enabling many Citoid features. Let's discuss it if you want, maybe it can also be helpful for other communities apart from the Catalan one...

@Toniher Whoops, sorry! Thank you so much for fixing it.

It actually looks like it was this edit: https://ca.wikipedia.org/w/index.php?title=MediaWiki:Citoid-template-type-map.json&oldid=19618739

I have made an additional change here which was a manual revert to https://ca.wikipedia.org/w/index.php?title=MediaWiki:Citoid-template-type-map.json&oldid=19618617:

This does not change any of the mappings, but it does add the required keys which were missing in the message.

This is the current change:
https://ca.wikipedia.org/w/index.php?title=MediaWiki:Citoid-template-type-map.json&oldid=19657419

I have checked that isbn is working and it is, but if you could review the change and make sure that appropriate templates are being used in the new keys for message, that would be great!

Thanks for your question, @Ivi104. Realistically, the citoid service can't change the dates to match each wiki's preferences. However, the templates themselves can easily re-format citoid's dates to display whatever you would like. The English Wikipedia has the code (look for their df parameter.)

Thank you, @Whatamidoing-WMF ! If you could perhaps elaborate a bit on where to find the df parameter, and how to format it to match hr.wiki styling? Thank you!

Sorry about the late reply; I missed this question! See https://en.wikipedia.org/wiki/Template:Cite_web#Date for the documentation on the |df= parameter. I believe that this was added to enwiki's citation templates more than a year ago.

@kaldari brought up a very good point in another thread that the en wiki citation templates are complicated and if we import them, the community may not have the technical ability to upgrade them, particularly if we can't find a local person with import rights to begin with- because the primary ways they've been maintained is simply to update them from en wiki using import rights.

I've been thinking that these smaller wikis would be a good place to trial wikidata citation templates (see: WikiCite ) which could actually could be fairly simple maintenance-wise as you can use non-lua templates. But that of course requires extra development to the citoid extension because we'd have to search for and create wikidata entities from the extension, so that seems fairly far out in the timeline. So I'm not sure if we should perhaps called this stalled?

I request here , Please enable this feature on Sindhi Wikipedia, Notify me for any answer to my request. Thanks.~~~~

I've been thinking that these smaller wikis would be a good place to trial wikidata citation templates (see: WikiCite ) which could actually could be fairly simple maintenance-wise as you can use non-lua templates. But that of course requires extra development to the citoid extension because we'd have to search for and create wikidata entities from the extension, so that seems fairly far out in the timeline.

Is there a separate task for extending citoid to support wikicite? (I think that there should be.)

I've been thinking that these smaller wikis would be a good place to trial wikidata citation templates (see: WikiCite ) which could actually could be fairly simple maintenance-wise as you can use non-lua templates. But that of course requires extra development to the citoid extension because we'd have to search for and create wikidata entities from the extension, so that seems fairly far out in the timeline.

Is there a separate task for extending citoid to support wikicite? (I think that there should be.)

T196353

Automatic config approach for citoid - https://www.mediawiki.org/w/index.php?title=Topic:Ui03zpzzl3gu53u5
Let:

For each w in G:

  1. Create MediaWiki:Visualeditor-cite-tool-definition.json where:
    • template- based on sitelink ( Cite web ).
    • name - based on translatewiki
[
    {
        "name": "web",
        "icon": "ref-cite-web",
        "template": "Cite web"
    },
    {
        "name": "book",
        "icon": "ref-cite-book",
        "template": "Cite book"
    },
    {
        "name": "news",
        "icon": "ref-cite-news",
        "template": "Cite news"
    },
    {
        "name": "journal",
        "icon": "ref-cite-journal",
        "template": "Cite journal"
    }
]
  1. Create MediaWiki:Citoid-template-type-map.json
{
    "artwork": "Citation",
    "audioRecording": "Citation",
    "bill": "Citation",
    "blogPost": "Cite web",
    "book": "Cite book",
    "bookSection": "Citation",
    "case": "Citation",
    "computerProgram": "Citation",
    "conferencePaper": "Cite journal",
    "dictionaryEntry": "Citation",
    "document": "Citation",
    "email": "Cite web",
    "encyclopediaArticle": "Citation",
    "film": "Citation",
    "forumPost": "Cite web",
    "hearing": "Citation",
    "instantMessage": "Citation",
    "interview": "Citation",
    "journalArticle": "Cite journal",
    "letter": "Citation",
    "magazineArticle": "Cite news",
    "manuscript": "Cite book",
    "map": "Citation",
    "newspaperArticle": "Cite news",
    "patent": "Citation",
    "podcast": "Citation",
    "presentation": "Cite journal",
    "radioBroadcast": "Citation",
    "report": "Cite journal",
    "statute": "Citation",
    "thesis": "Cite thesis",
    "tvBroadcast": "Citation",
    "videoRecording": "Citation",
    "webpage": "Cite web"
}

I request here , Please enable this feature on Sindhi Wikipedia, Notify me for any answer to my request. Thanks.~~~~

Automatic config approach for citoid - https://www.mediawiki.org/w/index.php?title=Topic:Ui03zpzzl3gu53u5
Let:

For each w in G:

  1. Create MediaWiki:Visualeditor-cite-tool-definition.json where:
    • template- based on sitelink ( Cite web ).
    • name - based on translatewiki
[
    {
        "name": "web",
        "icon": "ref-cite-web",
        "template": "Cite web"
    },
    {
        "name": "book",
        "icon": "ref-cite-book",
        "template": "Cite book"
    },
    {
        "name": "news",
        "icon": "ref-cite-news",
        "template": "Cite news"
    },
    {
        "name": "journal",
        "icon": "ref-cite-journal",
        "template": "Cite journal"
    }
]
  1. Create MediaWiki:Citoid-template-type-map.json
{
    "artwork": "Citation",
    "audioRecording": "Citation",
    "bill": "Citation",
    "blogPost": "Cite web",
    "book": "Cite book",
    "bookSection": "Citation",
    "case": "Citation",
    "computerProgram": "Citation",
    "conferencePaper": "Cite journal",
    "dictionaryEntry": "Citation",
    "document": "Citation",
    "email": "Cite web",
    "encyclopediaArticle": "Citation",
    "film": "Citation",
    "forumPost": "Cite web",
    "hearing": "Citation",
    "instantMessage": "Citation",
    "interview": "Citation",
    "journalArticle": "Cite journal",
    "letter": "Citation",
    "magazineArticle": "Cite news",
    "manuscript": "Cite book",
    "map": "Citation",
    "newspaperArticle": "Cite news",
    "patent": "Citation",
    "podcast": "Citation",
    "presentation": "Cite journal",
    "radioBroadcast": "Citation",
    "report": "Cite journal",
    "statute": "Citation",
    "thesis": "Cite thesis",
    "tvBroadcast": "Citation",
    "videoRecording": "Citation",
    "webpage": "Cite web"
}

I would be concerned with popularising this approach because I would say that 95% of the time this would result in a broken configuration.

The problem is that these templates nearly always lack a "maps" value for citoid in their template data or sometimes have no templatedata at all. The "maps":"citoid" keys in the template data needs to be created manually for every template used or else citoid won't work.

We already have a problem with people creating the configuration message manually using templates that won't work, because they don't have the correct template data. And unfortunately this fails silently (see T186276).

Hello,
I wish to request for support with setting up citations in e Dagbani Wikipedia. (dag.wikipedia.org). User: Shahadusadik

Hello,
Please assist with with writing TemplateData and enabling citoid in Gungbe Wikipedia (guw.wikipedia.org). Thanks!

Shahadusadik raised the priority of this task from Medium to High.May 27 2023, 11:32 AM

Please enable citoid at the Gurene Wikipedia. gur.wikipedia.org

This comment was removed by Dnshitobu.

Hello,
I wish to request support with setting up citations in the Gurene Wikipedia. (gur.wikipedia.org).

Mvolz lowered the priority of this task from High to Medium.

Hello,
I wish to request support with setting up citations in the Gurene Wikipedia. (gur.wikipedia.org).

Please enable citoid at the Gurene Wikipedia. gur.wikipedia.org

For this we need to know what citation templates gur wiki uses.

I had a look to see what templates are used there, is this the only one? https://gur.wikipedia.org/wiki/T%C9%9Bmpileti:Cite_web

I note there that historically there was a different template for papers Tɛmpileti:Tlf but this seems to have been deleted? Are there any templates for academic papers or books that I haven't found?

Currently, we still no manual citation with no automatic citation, we would love to have the citation options of the Dagbani Wikipedia (dag.wikipedia.org)

Hello,
I wish to request support with setting up citations in the Gurene Wikipedia. (gur.wikipedia.org).

Please enable citoid at the Gurene Wikipedia. gur.wikipedia.org

For this we need to know what citation templates gur wiki uses.

I had a look to see what templates are used there, is this the only one? https://gur.wikipedia.org/wiki/T%C9%9Bmpileti:Cite_web

I note there that historically there was a different template for papers Tɛmpileti:Tlf but this seems to have been deleted? Are there any templates for academic papers or books that I haven't found?

Currently, we still no manual citation with no automatic citation, we would love to have the citation options of the Dagbani Wikipedia (dag.wikipedia.org)

Hello,
I wish to request support with setting up citations in the Gurene Wikipedia. (gur.wikipedia.org).

Please enable citoid at the Gurene Wikipedia. gur.wikipedia.org

For this we need to know what citation templates gur wiki uses.

I had a look to see what templates are used there, is this the only one? https://gur.wikipedia.org/wiki/T%C9%9Bmpileti:Cite_web

I note there that historically there was a different template for papers Tɛmpileti:Tlf but this seems to have been deleted? Are there any templates for academic papers or books that I haven't found?

Yes. So, the automatic citation feature depends on what templates the community uses for manual citations.

I notice dag wiki has for example Cite news, but gur has at some point merged the two... in order to set up things we would either need to use only Cite web, or if the community agrees they want it exactly like dag wiki we could import the other templates (it looks like they just imported the ones from en wiki mostly).

Currently, we still no manual citation with no automatic citation, we would love to have the citation options of the Dagbani Wikipedia (dag.wikipedia.org)

Hello,
I wish to request support with setting up citations in the Gurene Wikipedia. (gur.wikipedia.org).

Please enable citoid at the Gurene Wikipedia. gur.wikipedia.org

For this we need to know what citation templates gur wiki uses.

I had a look to see what templates are used there, is this the only one? https://gur.wikipedia.org/wiki/T%C9%9Bmpileti:Cite_web

I note there that historically there was a different template for papers Tɛmpileti:Tlf but this seems to have been deleted? Are there any templates for academic papers or books that I haven't found?

Yes. So, the automatic citation feature depends on what templates the community uses for manual citations.

I notice dag wiki has for example Cite news, but gur has at some point merged the two... in order to set up things we would either need to use only Cite web, or if the community agrees they want it exactly like dag wiki we could import the other templates (it looks like they just imported the ones from en wiki mostly).

Thanks for the efforts. We would love to have the cite web, cite book, cite news and all the other templates that allows for automatic bibliographic citation for references. We look forward to the deployment procedure or processes.

Currently, we still no manual citation with no automatic citation, we would love to have the citation options of the Dagbani Wikipedia (dag.wikipedia.org)

Hello,
I wish to request support with setting up citations in the Gurene Wikipedia. (gur.wikipedia.org).

Please enable citoid at the Gurene Wikipedia. gur.wikipedia.org

For this we need to know what citation templates gur wiki uses.

I had a look to see what templates are used there, is this the only one? https://gur.wikipedia.org/wiki/T%C9%9Bmpileti:Cite_web

I note there that historically there was a different template for papers Tɛmpileti:Tlf but this seems to have been deleted? Are there any templates for academic papers or books that I haven't found?

Yes. So, the automatic citation feature depends on what templates the community uses for manual citations.

I notice dag wiki has for example Cite news, but gur has at some point merged the two... in order to set up things we would either need to use only Cite web, or if the community agrees they want it exactly like dag wiki we could import the other templates (it looks like they just imported the ones from en wiki mostly).

Thanks for the efforts. We would love to have the cite web, cite book, cite news and all the other templates that allows for automatic bibliographic citation for references. We look forward to the deployment procedure or processes.

If you could, could you translate the following words into Guerene?

"Website" ->
"Book" ->
"Newspaper article" ->
"Journal paper" (as in a scientific journal article or paper)->
"Other work" (any other work to be cited other than the above options) ->

They are needed for the config

"Website" -> Wɛbesite

"Book" -> Gɔŋɔ

"Newspaper article" -> Lasebaarɛ gɔŋɔ

"Journal paper" (as in a scientific journal article or paper)-> Alagumgube gɔŋɔ

"Other work" (any other work to be cited other than the above options) -> Tuuma asi'a

"Website" -> Wɛbesite

"Book" -> Gɔŋɔ

"Newspaper article" -> Lasebaarɛ gɔŋɔ

"Journal paper" (as in a scientific journal article or paper)-> Alagumgube gɔŋɔ

"Other work" (any other work to be cited other than the above options) -> Tuuma asi'a

Thanks, I have now enabled it, please try it out and let me know if there are any issues.

( The template data is in English and needs translation unfortunately there's a lot of it.

https://www.mediawiki.org/wiki/Help:TemplateData#Methods for info on how to translate it.)

Thank you so much. It is working now. I just tested it.