Page MenuHomePhabricator

Problem with Cite in ca.wikipedia.beta.wmflabs.org
Closed, ResolvedPublic0 Estimated Story Points

Description

Hello,

I'm trying to test Citoid integration with Cite extension in https://ca.wikipedia.beta.wmflabs.org/ before moving all this cawiki (where all this is not available yet).
As a starting point I'm trying to use enwiki modules and templates and I would consider later adapting it.

So far I added a very simple example:

A sample Test page: https://ca.wikipedia.beta.wmflabs.org/wiki/Test

but it seems that outcome from Citoid JSON result is not retrieved a template call with no parameters ({{cite web}}) is included.

Any idea what may I be doing wrong above?

Thanks!

Event Timeline

Hi,

Looking at your template you do not have any template data in the page. The template needs to have template data.

Here's how to add template data:
https://en.wikipedia.org/wiki/Wikipedia:TemplateData#Adding_TemplateData

Here's how to add template data specific for citoid: https://www.mediawiki.org/wiki/Citoid/Enabling_Citoid_on_your_wiki#Step_2.a:_Create_a_.27Citoid.27_maps_value_for_each_Cite_template.C2.A0

If you are copying the templates from en wiki, it will probably be easiest to start by simply copying the template data from the en wiki page:

https://en.wikipedia.org/wiki/Template:Cite_web/doc

And then translate the descriptions as necessary.

Thanks Mvolz! I see the problem now, templatedata content was actually in doc pages, which I didn't include. Now it's solved and I understand this. I think with this I can advance. On the other hand, I noticed that 'Website' option does not appear in 'Manual' option of Cite popup. How do I make it appear?

Toniher claimed this task.

Solved. @Vriullop pointed me that the necessary page is: https://en.wikipedia.org/w/index.php?title=MediaWiki:Visualeditor-cite-tool-definition.json&action=edit

I checked it and it works. I have all needed stuff.

Thanks!