Page MenuHomePhabricator

Pagelist widget error on Telugu wikisource
Closed, ResolvedPublic

Description

I enabled pagelist widget on telugu wikisource, but the preview pagelist command is giving unexpected error. Console log for the page https://te.wikisource.org/w/index.php?title=%E0%B0%B8%E0%B1%82%E0%B0%9A%E0%B0%BF%E0%B0%95:Andhra-Bhasharanavamu.pdf&action=edit is given below. I tried for an index page where the pagelist is yet to be created and got the same error.

JQMIGRATE: Migrate is installed with logging active, version 3.1.0 load.php:316:171
This page uses the non standard property “zoom”. Consider using calc() in the relevant property values, or using “transform” along with “transform-origin: 0 0”. load.php:5:571
This page is using the deprecated ResourceLoader module "jquery.ui".
Please use OOUI instead. load.php:788:366
JQMIGRATE: jQuery.fn.delegate() is deprecated load.php:316:746
This page is using the deprecated ResourceLoader module "jquery.throttle-debounce".
Please use OO.ui.throttle/debounce instead. See https://phabricator.wikimedia.org/T213426 load.php:16:1053
Some cookies are misusing the recommended “sameSite“ attribute 2
unknown parsing error 
{…}
​
parse: {…}
​​
categories: Array []
​​
displaytitle: "సూచిక:Andhra-Bhasharanavamu.pdf"
​​
externallinks: Array [ "https://commons.wikimedia.org/wiki/File:Andhra-Bhasharanavamu.pdf?action=purge", "https://iw.toolforge.org/checker/?db=tewikisource_p&title=%E…0%B1%82%E0%B0%9A%E0%B0%BF%E0%B0%95:Andhra-Bhasharanavamu.pdf" ]
​​
images: Array [ "View-refresh.svg", "Crystal_man.png" ]
​​
iwlinks: Array []
​​
langlinks: Array []
​​
links: Array [ {…} ]
​​
pageid: 57717
​​
parsewarnings: Array []
​​
properties: Array [ {…} ]
​​
sections: Array []
​​
templates: Array [ {…} ]
​​
text: Object { "*": "<div class=\"mw-parser-output\"><table style=\"display:table; border-spacing:1px 1px; box-sizing:border-box; width:100%;\">\n<tbody><tr>\n<td style=\"padding:0; vertical-align:top;\"><table style=\"display:inline-table; border-collapse:collapse; border-spacing:0 0; box-sizing:border-box; width:100%;\">\n<tbody><tr>\n<td style=\"padding:0; vertical-align:top;\">\n<div style=\"float:left; margin:0.50em 0.25em 0.50em 0;\">\n<p style=\"margin-top:0; margin-bottom:0;\"></p>\n</div>\n<table id=\"prp-indexTable\" class=\"plainlinks\" style=\"border-collapse:separate; border-spacing:2px 2px; box-sizing:border-box; empty-cells:show;\">\n<tbody><tr>\n<th scope=\"row\" style=\"padding-right:0.50em; text-align:right; vertical-align:top;\">శీర్షిక</th>\n<td id=\"ws-title\" style=\"vertical-align:top;\">{{{శీర్షిక}}}</td>\n</tr>\n</tbody></table>\n</td>\n</tr>\n<tr>\n<td style=\"vertical-align:top;\"><div class=\"mw-collapsible\" style=\"margin-right:0.75em;\">\n<p><b>పుటలు</b>&#160;&#160;&#160; <b>పుటలు</b><span style=\"display:inline-block; width:2em;\">&#160;</span>(<span style=\"font-size:83%;\"> <a href=\"/wiki/%E0%B0%B8%E0%B0%B9%E0%B0%BE%E0%B0%AF%E0%B0%82:%E0%B0%AA%E0%B1%81%E0%B0%9F_%E0%B0%B8%E0%B1%8D%E0%B0%A5%E0%B0%BF%E0%B0%A4%E0%B0%BF\" title=\"సహాయం:పుట స్థితి\">పుట స్థితి</a> అర్థవివరం</span>)&#160;&#160;&#160;</p>\n<div class=\"index-pagelist mw-collapsible-content\" style=\"text-align:justify;\">\n</div></div>\n</td>\n</tr>\n</tbody></table>\n</td><td style=\"display:none; padding:0; vertical-align:top;\"></td>\n</tr>\n</tbody></table>\n\n<!-- \nNewPP limit report\nParsed by mw1378\nCached time: 20201107054012\nCache expiry: 2592000\nDynamic content: false\nComplications: []\nCPU time usage: 0.020 seconds\nReal time usage: 0.024 seconds\nPreprocessor visited node count: 31/1000000\nPost‐expand include size: 303/2097152 bytes\nTemplate argument size: 0/2097152 bytes\nHighest expansion depth: 4/40\nExpensive parser function count: 0/500\nUnstrip recursion depth: 0/20\nUnstrip post‐expand size: 0/5000000 bytes\nNumber of Wikibase entities loaded: 0/400\n-->\n<!--\nTransclusion expansion time report (%,ms,calls,template)\n100.00%    0.000      1 -total\n-->\n</div>" }
​​
title: "సూచిక:Andhra-Bhasharanavamu.pdf"
​​
<prototype>: Object { … }
​
<prototype>: Object { … }
load.php:125:453
    jQuery 10

Event Timeline

Arjunaraoc added a project: ProofreadPage.

pagelist-tews-error.png (1×1 px, 248 KB)
Screenshot of error with browser console

I enabled pagelist widget on telugu wikisource

@Arjunaraoc: Hi, please explain how and always follow https://www.mediawiki.org/wiki/How_to_report_a_bug .
Also, please use the Preview at the button when creating tasks - thanks a lot! :) Did Soda agree to work on this?

@Arjunaraoc The MediaWiki:Index data config for te wikisource is doesn't seem to be right. You should replace all the English id values (like Pages) with the actual template parameter name (for the template at మూస:Proofreadpage_index).

@Soda , The page name (MediaWiki:Index data config) you have given does not exist on enws and tews. I have updated with slight changes to the page https://te.wikisource.org/wiki/%E0%B0%AE%E0%B1%82%E0%B0%B8:Proofreadpage_index . The problem is not resolved.

@Arjunaraoc My bad, I meant MediaWiki:Proofreadpage index data config

@Soda, Telugu wikisource configuration seems to have been different from enws, as we did not have మూస:Proofreadpage index template . We had మూస:Proofreadpage index
Now with the changes for pagelist widget, the already populated values for index pages are not present, when we try to edit. Need help to fix that, before we can address pagelist problem.

After updating to the new configuration of proofreadpage, where the local names for Type, Title are used, I found pagelist widget working. Thanks @Soda @Aklapper for your help.