DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:wikipediasnippet

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:wikipediasnippet [2014-03-04 21:34] 95.252.126.161plugin:wikipediasnippet [2023-10-30 22:09] (current) Klap-in
Line 6: Line 6:
 email      : anika@selfthinker.org  email      : anika@selfthinker.org 
 type       : syntax type       : syntax
-lastupdate : 2013-04-06 +lastupdate : 2016-04-07 
-compatible : 2007-06-26, 2008-05-05, 2009-02-14, 2009-12-25 "Lemming"2010-11-07 "Anteater"2011-05-25 "Rincewind"2012-01-25 "Angua"2012-10-13 "Adora Belle""Weatherwax"+compatible : Lemming, Anteater, Rincewind, Angua, Adora Belle, Weatherwax, Binky, Ponder Stibbons, Hrun, Detritus, Hogfather, Igor, Jack Jackrum
 depends    :  depends    : 
 conflicts  conflicts 
Line 21: Line 21:
 ===== Download and Installation ===== ===== Download and Installation =====
  
-Download and install the plugin using the [[plugin:plugin|Plugin Manager]] using the URL given above. Refer to [[:Plugins]] on how to install plugins manually.+Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually.
  
 ===== Syntax and Usage ===== ===== Syntax and Usage =====
Line 106: Line 106:
 ==== Problem with images that start with "//" ==== ==== Problem with images that start with "//" ====
  
-I've a problem with pages like http://en.wikipedia.org/wiki/Modal_logic that have an image in the snippet: the image is of the form ''<nowiki><img src="//..."</nowiki>'' that is an absolute link (on Wikipedia it works, of course but when processed by Dokuwiki it becomes a (broken) relative link.+I've a problem with pages like http://en.wikipedia.org/wiki/Modal_logic that have an image in the snippet: the image is of the form ''<nowiki><img src="//..."</nowiki>'' that is an absolute link. On Wikipedia it works, of coursebut when processed by Dokuwiki it becomes a (broken) relative link.
  
 I propose this fix: to add at line 102 of syntax.php the following code: I propose this fix: to add at line 102 of syntax.php the following code:
Line 121: Line 121:
  
 >> Why do you have removed images? I made the example of the page http://en.wikipedia.org/wiki/Modal_logic because here an image (two logic formulas) is an essential part of the info! - [[user>bifazio|Fabrizio]] >> Why do you have removed images? I made the example of the page http://en.wikipedia.org/wiki/Modal_logic because here an image (two logic formulas) is an essential part of the info! - [[user>bifazio|Fabrizio]]
 +
 +>>> I didn't deliberately remove images. But the plugin uses a different [[https://en.wikipedia.org/w/api.php?action=help&modules=query%2Bextracts|API functionality]] which just doesn't support any images. So, it was collateral damage I was willing to take as this new functionality is otherwise much better. I just checked and they still don't support images with it. [[https://github.com/selfthinker/dokuwiki_plugin_wikipediasnippet/commit/de104de6d995aa952398c110a5b64d8f63a7863c|More information regarding this specific change.]] --- [[user>ach|Anika Henke]] //2016-04-07 19:21//
  
 ==== A syntax {{wpXX>}} to select a specific Wikipedia site? ==== ==== A syntax {{wpXX>}} to select a specific Wikipedia site? ====
Line 134: Line 136:
 > Thanks, I have implemented this, but with a slightly different syntax: ''%%{{wp:it>page name}}%%''. --- [[user>ach|Anika Henke]] //2013/04/06 23:54// > Thanks, I have implemented this, but with a slightly different syntax: ''%%{{wp:it>page name}}%%''. --- [[user>ach|Anika Henke]] //2013/04/06 23:54//
  
->> Ok! Good :) --- [[user>bifazio|Fabrizio]]+>> Ok! Good :-) --- [[user>bifazio|Fabrizio]] 
 + 
 +==== Issues running locally ====
  
 Hello Anika. Really nice plugin. But this plugin doesn't work in local modi. When i'm using it on localhost (127.0.0.1:8800) with apache there is the error: "//Error: Fetching the article from Wikipedia failed. Could not connect to de.wikipedia.org:80 php_network_getaddresses: getaddrinfo failed: Der angegebene Host ist unbekannt (0).//" Internet connection is active. What i have to do? Thanks in advance. Hello Anika. Really nice plugin. But this plugin doesn't work in local modi. When i'm using it on localhost (127.0.0.1:8800) with apache there is the error: "//Error: Fetching the article from Wikipedia failed. Could not connect to de.wikipedia.org:80 php_network_getaddresses: getaddrinfo failed: Der angegebene Host ist unbekannt (0).//" Internet connection is active. What i have to do? Thanks in advance.
  
 --Marcus 2013/07/02 --Marcus 2013/07/02
 +
 +==== »useHtml-switch not working ====
 +
 +I always have HTML-wikisnippets. I can uncheck the option in the configuration menu, it also stays unchecked, but it does not have any effect. I always have the HTML-snippets.
 +
 +Is there anything I could do or try?
 +
 + --- //[[|Otto]] 2015/01/30 14:10//
 +
 +> It works for me as intended. Can you give an example syntax which doesn't work? And can you also describe what you expect to see instead? --- [[user>ach|Anika Henke]] //2016-04-07 19:21//
  
plugin/wikipediasnippet.1393965281.txt.gz · Last modified: 2014-03-04 21:34 by 95.252.126.161

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki