Help some smaller Wikipedias' communities by writing the TemplateData and enabling citoid for them
Open, NormalPublic8 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

StatusAssignedTask
ResolvedQgil
ResolvedRfarrand
ResolvedQuiddity
OpenNone
ResolvedTrizek-WMF
DeclinedTrizek-WMF
Resolvedmatej_suchanek
ResolvedMvolz
OpenNone
ResolvedMvolz
ResolvedTrizek-WMF
ResolvedMvolz
ResolvedNone
ResolvedMvolz
ResolvedMvolz
ResolvedAcamicamacaraca
ResolvedMvolz
ResolvedTiven2240
ResolvedMvolz
ResolvedNone
OpenNone
OpenNone
DeclinedTrizek-WMF
ResolvedMvolz
ResolvedNone
There are a very large number of changes, so older changes are hidden. Show Older Changes
Trizek-WMF added a comment.EditedJan 18 2017, 11:54 AM

That task is still a good one for non-developers during Wikimedia Hackathons.

Mvolz renamed this task from Consider helping some smaller Wikipedias' communities (which?) by writing the TemplateData and enabling citoid for them to Help some smaller Wikipedias' communities (which?) by writing the TemplateData and enabling citoid for them.Jan 19 2017, 7:53 PM
Mvolz updated the task description. (Show Details)
Mvolz updated the task description. (Show Details)
Mvolz updated the task description. (Show Details)Jan 19 2017, 7:58 PM
Mvolz updated the task description. (Show Details)Feb 28 2017, 5:15 PM
Mvolz added a comment.Mar 1 2017, 3:49 PM

There's a related outreachy project requesting this on hu wiki: T147618

Mvolz renamed this task from Help some smaller Wikipedias' communities (which?) by writing the TemplateData and enabling citoid for them to Help some smaller Wikipedias' communities by writing the TemplateData and enabling citoid for them.Jun 29 2017, 8:36 AM
Mvolz updated the task description. (Show Details)Jul 3 2017, 11:17 AM
Ivi104 added a subscriber: Ivi104.Jul 26 2017, 6:29 AM

Good day! I would like to ask someone to please look over a request to fill MediaWiki:Visualeditor-cite-tool-definition.json on Croatian Wikipedia and to verify everything is as it should be. TemplateData for citing templates has been made. Next I would like to ask for help in enabling Citoid for hr.wiki. Thank you for your time!

Mvolz added a comment.Jul 26 2017, 4:10 PM

Good day! I would like to ask someone to please look over a request to fill MediaWiki:Visualeditor-cite-tool-definition.json on Croatian Wikipedia and to verify everything is as it should be.

Looks fine to me.

TemplateData for citing templates has been made. Next I would like to ask for help in enabling Citoid for hr.wiki. Thank you for your time!

Great, the guide for this is at https://www.mediawiki.org/wiki/Citoid/Enabling_Citoid_on_your_wiki Let us know if you need any more help.

Mvolz updated the task description. (Show Details)Jan 15 2018, 10:52 AM
Mvolz updated the task description. (Show Details)Jan 20 2018, 5:20 PM
Mvolz updated the task description. (Show Details)
Acamicamacaraca added a subscriber: Acamicamacaraca.

@Mvolz its added on hr wiki !

@Mvolz its added on hr wiki !

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

@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.)

Mvolz updated the task description. (Show Details)Jan 29 2018, 12:21 PM
Ivi104 added a comment.Feb 6 2018, 3:00 PM

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!

Mvolz added a comment.Feb 8 2018, 11:25 AM

@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.

Elitre added a comment.EditedFeb 12 2018, 9:58 AM

@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!

Mvolz added a comment.Feb 14 2018, 8:48 AM

@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.

Mvolz added a subscriber: kaldari.EditedApr 23 2018, 9:19 AM

@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?

Rical removed a subscriber: Rical.Apr 23 2018, 4:26 PM

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.)

eranroz added a subscriber: eranroz.Aug 3 2018, 4:16 AM

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

eranroz added a comment.EditedAug 3 2018, 4:41 AM

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"
}
Qgil removed a subscriber: Qgil.Aug 3 2018, 12:54 PM
Mvolz added a comment.EditedAug 9 2018, 10:08 AM

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:

  • W = { (w, l) | w is a wikipedia with citoid lacking config messages written in l language] }
  • L = { l | l is language in translatewiki with translations for cite } . Example - Africans: https://translatewiki.net/w/i.php?title=Special:Translate&action=proofread&group=ext-cite-visualeditor&language=af&filter=translated%7C%21reviewer%3Anull%7C%21last-translator%3Anull
  • G = W ∩ { l | (w, l ) ∈ W ∧ l ∈ L } For each w in G:
  • 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" } ] `
  • 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).

Restricted Application added a project: VisualEditor. · View Herald TranscriptAug 27 2018, 1:01 PM