Extension talk:WikipediaExtracts
Add topic| This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
Añadir soporte para transcluir contenido de Wikilibros o Wikcionario
[edit]The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
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? ZrbtWm (talk) 01:08, 26 November 2016 (UTC)
- 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 (talk) 03:12, 26 November 2016 (UTC)
- The new variable
$wgWikipediaExtractsAPIallows 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. Sophivorus (talk) 19:34, 23 December 2017 (UTC)
Bug
[edit]The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
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! Manu.wikidebats (talk) 10:19, 19 January 2019 (UTC)
- Download the latest version and this should no longer be an issue. Sophivorus (talk) 19:58, 19 January 2019 (UTC)
- 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... Manu.wikidebats (talk) 11:06, 20 January 2019 (UTC)
- 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. Sophivorus (talk) 13:22, 20 January 2019 (UTC)