Closed (works as designed)
Project:
MediaWiki API
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Dec 2009 at 09:53 UTC
Updated:
2 Jan 2013 at 21:23 UTC
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
Comment #1
calexo commentedComment #2
asb commentedSame 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.
Comment #3
asrobYeah, I'm trying to figure it out why links are not converted.
Comment #4
asrobAccording to the old MediaWiki API code, there is a possible workaround. You can use freelinking or customfilter module to get the right links.
Comment #5
rabisg commentedConfiguring 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
Comment #6
asb commented@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 *).
Comment #7
rabisg commentedSetting "Correct faulty and chopped off HTML" after "Mediawiki API " filter worked for me
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
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.
Yea agreed, thats all that would be working. Otherwise the module would need a complete rewrite.
Comment #8
Sarenc commentedThis 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.