Module talk:Data: Difference between revisions

Content deleted Content added
JSON: Reply
JSON: slight reword
Line 16:
 
:Well, I attempted to modify this module but was unsuccessful. So I created a bespoke module at [[Module:Women in Green event]] which serves my immediate needs. If this ever gets implemented here, then that module could be deleted. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 12:14, 29 September 2023 (UTC)
::{{ping|MSGJ}} I've decided to give this a crack in the sandbox. The module will attempt to load the page as if it was a module page by default, and if this doesn't work, it'll instead try to load it as a Json page. If neither of these works, it throws an error like current functionallity (yet worded to mean something a bit more specific for this case). I don't imagine this pcall logic will cause any overhead (and could even maybe be made smart by checking if the input beginsis within the "Module:" namespace before even bothering trying to do loadData). You can see a test of it [[Special:Permalink/1178703748|here]]. Does this seem fine? [[User:Aidan9382|Aidan9382]] <sub>([[User talk:Aidan9382|talk]])</sub> 09:51, 5 October 2023 (UTC)