Hi,

I want to have a Wiki integrated in Drupal.
I added, among other modules, such as Wikitools, mediawiki_api. It seems to work well, but links aren't converted and they appear as [[Link]].
I can't figure out why.
I didn't mark this issue as a "bug", since I think it works for others !
Thanks a lot !
Calexo

Comments

calexo’s picture

Issue tags: +link, +wiki, +Mediawiki
asb’s picture

Version: 6.x-0.x-dev » 7.x-1.0-alpha1

Same issue with 7.x-1.0-alpha1. Would be nice to have documentation or at least a README with requirements and installation instructions. As is, 'MediaWiki API' is vaporware.

asrob’s picture

Version: 7.x-1.0-alpha1 » 7.x-1.x-dev
Category: support » bug

Yeah, I'm trying to figure it out why links are not converted.

asrob’s picture

According to the old MediaWiki API code, there is a possible workaround. You can use freelinking or customfilter module to get the right links.

rabisg’s picture

Configuring the filter with http://en.wikipedia.org/w/api.php works for me. External links are converted as they should be.
However there are a couple of things that need attention now
1. Sections like == or === get an additional [edit] link
2. Internal Links don't work

asb’s picture

@rabisg: Sectionedit is a feature of MediaWiki; however, in this module, the CSS is borked, and the edit links don't work. The broken CSS issue applies as well to external links, non exisiting ("red") links, and basically everything else that relies on CSS. A toc is being partially generated. {{toc}} is broken.

Other basic features like image embedding, footnotes, tables, system variables, database links, templates etc. behave weird or are not rendered at all. E.g. {{SITENAME}} returns "Wikipedia: Wikipedia", {{NUMBEROFARTICLES}} returns "3,993,916: 3,993,916" (with 3 exisiting nodes on my sandboy site).

The only features that are working are a) text formatting (like '''), b) indentation (like :), and c) lists (like *).

rabisg’s picture

in this module, the CSS is borked

Setting "Correct faulty and chopped off HTML" after "Mediawiki API " filter worked for me

The broken CSS issue applies as well to external links, non exisiting ("red") links, and basically everything else that relies on CSS.

i don't get red links at all. there is no difference in markup whether the html link exists or not.
but one thing [www.google.com Google] doesnt work but [http://www.google.com Google] does

and the edit links don't work
Other basic features like image embedding, footnotes, tables, system variables, database links, templates etc. behave weird or are not rendered at all. E.g. {{SITENAME}} returns "Wikipedia: Wikipedia", {{NUMBEROFARTICLES}} returns "3,993,916: 3,993,916" (with 3 exisiting nodes on my sandboy site).

Edit links or internal links or system variables, etc wouldn't work because this module only fetches data from an Mediawiki API so the edit links, {{SITENAME}} etc would be with respect to the Mediawiki installation and not your Drupal installation.

The only features that are working are a) text formatting (like '''), b) indentation (like :), and c) lists (like *).

Yea agreed, thats all that would be working. Otherwise the module would need a complete rewrite.

Sarenc’s picture

Status: Active » Closed (works as designed)

This module is just a wrapper for the mediawiki API. It shouldn't do anything with links as there are other modules that do that (freelinking). I am happy this module doesn't do anything with the API result - that is for other filters and modules to deal with.