Jump to content

Extension talk:WikipediaExtracts

About this board

Añadir soporte para transcluir contenido de Wikilibros o Wikcionario

3
Summary by Sophivorus

WikipediaExtracts has been superseded by Extension:InterwikiExtracts, which does allow to transclude content from Wikibooks, Wiktionary and any other wiki in the interwiki table.

ZrbtWm (talkcontribs)

@Felipe Schenone:

English: As proposed in [[:v:es:Wikiversidad:Claustro_Wikiversitario#Instalar la Extensión:WikipediaExtracts]], this would be also useful being able to transclude contents from Wikibooks or Wiktionary. Sometimes in Wikiversities is needed a definition or parts of a manual that are not found in Wikipedia. Could this be possible?

Español: Tal como se propuso en [[:v:es:Wikiversidad:Claustro_Wikiversitario#Instalar la Extensión:WikipediaExtracts]], sería útil que esta extensión también fuera capaz de transcluir contenidos de Wikilibros o Wikcionario. A veces en las Wikiversidades es necesaria una definición o partes de un manual, contenidos que no se encuentran en Wikipedia. ¿Es posible añadir esta función?

Sophivorus (talkcontribs)

Yes it would be possible, but I think we first need the extension reviewed, approved and deployed. Then we can consider improvements such as these.

Sophivorus (talkcontribs)

The new variable $wgWikipediaExtractsAPI allows to extract content from other wikis, such as Wiktionary. The only catch is that if we extract content from Wiktionary, we cannot extract from Wikipedia. In other words, we can only extract content from ONE wiki. Future versions may introduce extracts from many wikis.

Summary by Sophivorus

WikipediaExtracts has been superseded by Extension:InterwikiExtracts.

Manu.wikidebats (talkcontribs)

On this page, I have this error:

[2d8fa295b759a37197da6c61] /wiki/Mod%C3%A8le:Lien_Wikip%C3%A9dia Error from line 38 of /var/www/wikidebats.org/w/extensions/WikipediaExtracts/WikipediaExtractsError.php: Access to undeclared static property: WikipediaExtracts::$contentLanguage

Backtrace:

#0 /var/www/wikidebats.org/w/extensions/WikipediaExtracts/WikipediaExtracts.php(51): WikipediaExtractsError->getHtmlMessage()

#1 /var/www/wikidebats.org/w/includes/parser/Parser.php(3426): WikipediaExtracts::onFunctionHook(Parser, string, string, string)

#2 /var/www/wikidebats.org/w/includes/parser/Parser.php(3127): Parser->callParserFunction(PPTemplateFrame_DOM, string, array)

#3 /var/www/wikidebats.org/w/includes/parser/Preprocessor_DOM.php(1277): Parser->braceSubstitution(array, PPTemplateFrame_DOM)

#4 /var/www/wikidebats.org/w/includes/parser/Parser.php(3305): PPFrame_DOM->expand(DOMElement)

#5 /var/www/wikidebats.org/w/includes/parser/Preprocessor_DOM.php(1277): Parser->braceSubstitution(array, PPFrame_DOM)

#6 /var/www/wikidebats.org/w/includes/parser/Parser.php(2942): PPFrame_DOM->expand(DOMElement, integer)

#7 /var/www/wikidebats.org/w/includes/parser/Parser.php(1293): Parser->replaceVariables(string)

#8 /var/www/wikidebats.org/w/includes/parser/Parser.php(443): Parser->internalParse(string)

#9 /var/www/wikidebats.org/w/includes/content/WikitextContent.php(323): Parser->parse(string, Title, ParserOptions, boolean, boolean, integer)

#10 /var/www/wikidebats.org/w/includes/content/AbstractContent.php(516): WikitextContent->fillParserOutput(Title, integer, ParserOptions, boolean, ParserOutput)

#11 /var/www/wikidebats.org/w/includes/poolcounter/PoolWorkArticleView.php(144): AbstractContent->getParserOutput(Title, integer, ParserOptions)

#12 /var/www/wikidebats.org/w/includes/poolcounter/PoolCounterWork.php(123): PoolWorkArticleView->doWork()

#13 /var/www/wikidebats.org/w/includes/page/Article.php(604): PoolCounterWork->execute()

#14 /var/www/wikidebats.org/w/includes/actions/ViewAction.php(68): Article->view()

#15 /var/www/wikidebats.org/w/includes/MediaWiki.php(500): ViewAction->show()

#16 /var/www/wikidebats.org/w/includes/MediaWiki.php(294): MediaWiki->performAction(Article, Title)

#17 /var/www/wikidebats.org/w/includes/MediaWiki.php(861): MediaWiki->performRequest()

#18 /var/www/wikidebats.org/w/includes/MediaWiki.php(524): MediaWiki->main()

#19 /var/www/wikidebats.org/w/index.php(42): MediaWiki->run()

#20 {main}

How to resolve it? Thanks in advance!

Sophivorus (talkcontribs)

Download the latest version and this should no longer be an issue.

Manu.wikidebats (talkcontribs)

Thank you! Now there is this error:

Notice: Undefined property: stdClass::$extract in /var/www/wikidebats.org/w/extensions/WikipediaExtracts/WikipediaExtracts.php on line 103

and: La page '<a target="_blank" rel="nofollow noreferrer noopener" class="external free" href="https://fr.wikipedia.org/wiki/Revenu'">https://fr.wikipedia.org/wiki/Revenu'</a> n’a pas été trouvée(= "The page ... has not been found")

The problem seems to come from a change in the new version of the extension. Before, it was possible to use the URL of the Wikipedia article instead of the title of the article. Now, when I use the URL as a parameter, this error occurs...

Sophivorus (talkcontribs)

Hi, yes, unfortunately I removed support for using the URL instead of the title, because guaranteeing safe parsing is quite difficult and I'm trying to get this extension approved/deployed on Wikiversity. Sorry, only way is to use titles for now.

There are no older topics