plugin:wikipediasnippet
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:wikipediasnippet [2013-04-07 00:24] – made examples clearer ach | plugin: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 13: | Line 13: | ||
tags : wikipedia, include | tags : wikipedia, include | ||
- | downloadurl: | + | downloadurl: |
- | bugtracker : http:// | + | bugtracker : https:// |
- | sourcerepo : http:// | + | sourcerepo : https:// |
donationurl: | donationurl: | ||
---- | ---- | ||
Line 21: | Line 21: | ||
===== Download and Installation ===== | ===== Download and Installation ===== | ||
- | Download | + | Search |
===== Syntax and Usage ===== | ===== Syntax and Usage ===== | ||
Line 52: | Line 52: | ||
===== Changelog ===== | ===== Changelog ===== | ||
- | {{rss>http:// | + | {{rss>https:// |
===== Feedback ===== | ===== Feedback ===== | ||
Line 106: | Line 106: | ||
==== Problem with images that start with "//" | ==== Problem with images that start with "//" | ||
- | I've a problem with pages like http:// | + | I've a problem with pages like http:// |
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 119: | Line 119: | ||
> I have fixed this in the latest version. However, I also changed the way the articles are retrieved, which (probably) got rid of images altogether. --- [[user> | > I have fixed this in the latest version. However, I also changed the way the articles are retrieved, which (probably) got rid of images altogether. --- [[user> | ||
+ | |||
+ | >> Why do you have removed images? I made the example of the page http:// | ||
+ | |||
+ | >>> | ||
==== A syntax {{wpXX> | ==== A syntax {{wpXX> | ||
Line 126: | Line 130: | ||
So my proposal is to add a second syntax < | So my proposal is to add a second syntax < | ||
- | I've tried to implement: I've changed the implementation of both the connectTo() and handle() methods with this code: | + | [[user>bifazio|Fabrizio]] |
- | <code php> | + | |
- | | + | P.S.: good plugin, really! one of my best favorites |
- | | + | |
- | } | + | |
- | function handle($match, $state, $pos, & $handler) | + | > Thanks, I have implemented this, but with a slightly different syntax: '' |
- | // remove braces | + | |
- | $match = substr($match, | + | |
- | // separate the command from the link and set the language | + | |
- | list($command, | + | |
- | if (strlen($command) == 4) { | + | |
- | $lang = substr($command, | + | |
- | } else { | + | |
- | global $conf; | + | |
- | $lang = $conf[' | + | |
- | } | + | |
- | return $lang . ':' . trim($data); | + | >> Ok! Good :-) --- [[user>bifazio|Fabrizio]] |
- | } | + | |
- | </code> | + | |
- | In the render() method I've replaced this code: | + | ==== Issues running locally ==== |
- | <code php> | + | |
- | if ($data) { | + | |
- | | + | |
- | | + | |
- | </ | + | |
- | with this: | + | Hello Anika. Really nice plugin. But this plugin doesn' |
- | <code php> | + | |
- | if ($data) { | + | |
- | $lang, $data) = split(' | + | |
- | </code> | + | |
- | It works fine! | + | --Marcus 2013/07/02 |
- | **Warning: | + | ==== »useHtml-switch not working ==== |
- | {{wpit> | + | 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 the same of: | + | Is there anything I could do or try? |
- | {{wp> | + | --- //[[|Otto]] 2015/01/30 14:10// |
- | + | ||
- | I thought that this second syntax was nice. | + | |
- | [[user>bifazio|Fabrizio]] | + | > It works for me as intended. Can you give an example syntax which doesn' |
- | + | ||
- | P.S.: good plugin, really! one of my best favorites | + | |
- | > Thanks, I have implemented this, but with a slightly different syntax: '' |
plugin/wikipediasnippet.1365287064.txt.gz · Last modified: 2013-04-07 00:24 by ach