Develop a mechanism to reference figures and equations on the web/ocg
Open, NormalPublic

ruphy created this task.Sep 11 2015, 9:17 AM
ruphy updated the task description. (Show Details)
ruphy raised the priority of this task from to Normal.
ruphy claimed this task.
ruphy added a project: WikiToLearn.
ruphy moved this task to Mediawiki development on the WikiToLearn board.
ruphy added a subscriber: ruphy.
ruphy renamed this task from Fix numbered equations on the web to Develop a mechanism to reference figures and equations on the web/ocg.Jan 11 2016, 3:34 PM
ruphy removed ruphy as the assignee of this task.

First of all, we should talk to mathoid devs looking for a way to enable numbered equantions.
Then we could use a sort of label and maybe create an extension, but we have to know if we can show equations number or create anchors on math elements.

davidev assigned this task to russellg.Jan 17 2016, 12:41 AM

Another idea is creating a new element that just adds a number/ID to its contents. This would be more extensible than just for equations.

I agree. But we need something that works really good for math, to integrate it in OCG.

I have looked at the options here and I see two:

  1. Use the database calls directly. This would require some research on the organization of MediaWiki's database.
  2. Use WikiDB which is an extension that makes using MediaWiki's database easy. One issue with this is that it doesn't use git, it just makes you download a zip, which is hard to maintain.

WikiDB seems cool. What do you guys think?

In what sense it makes you to download a zip?

The source code--it isn't hosted in a git repository, but you you have to download a zip, so it wouldn't work with our submodule workflow unless we make a repository ourselves.

Alright, so I learned how to use WikiDB. It is very easy to use, and very powerful.

Here is a quick demo I created.

Please note that I still need to iron out some formatting issues that have been plaguing me.

I couldn't get it to upload here, so here's a link

davidev added a comment.EditedJan 25 2016, 7:48 AM

Good!! But I'd like to set the id for math inside dmath tag:
<dmath type=align id=quadratic formula>

It would be less verbos and dmath is our fork, no problem to change it :)

Alright, so I rewrote it to use the mediawiki database.

I have pushed to the repo, but I haven't updated the submodule yet because I have to update the scripts.

ruphy edited projects, added Restricted Project, WikiToLearn: Offline Content Generator; removed WikiToLearn.Jun 17 2016, 2:38 PM

any news on this one? @russellg ?

Sorry, I haven't worked on this in quite a while.

I will continue work on this this week, with updates of course :).

Sorry about the inactivity.

ruphy added a comment.Jul 1 2016, 5:39 PM

no problem :-) just a heads up!

ruphy edited projects, added WikiToLearn: Web UI; removed Restricted Project.Jan 9 2017, 4:13 PM