Misplaced Pages

Module talk:Data: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactivelyNext edit →Content deleted Content addedVisualWikitext
Revision as of 22:24, 14 January 2021 editMSGJ (talk | contribs)Autopatrolled, Administrators131,138 edits Request: new section  Revision as of 00:35, 15 January 2021 edit undoJackmcbarn (talk | contribs)31,380 edits doneNext edit →
Line 2: Line 2:


{{ping|Jackmcbarn}} I know you're not too active at the moment, but I have a request. Would it be possible to update the code so that it will fail gracefully (without script errors) if key1 does not exist in the data module? At the moment I have no way to see if a value is defined without causing the script error. Thanks and hope to see you back soon! &mdash;&nbsp;Martin <small>(]&nbsp;·&nbsp;])</small> 22:24, 14 January 2021 (UTC) {{ping|Jackmcbarn}} I know you're not too active at the moment, but I have a request. Would it be possible to update the code so that it will fail gracefully (without script errors) if key1 does not exist in the data module? At the moment I have no way to see if a value is defined without causing the script error. Thanks and hope to see you back soon! &mdash;&nbsp;Martin <small>(]&nbsp;·&nbsp;])</small> 22:24, 14 January 2021 (UTC)
:{{ping|MSGJ}} Done. Add <code><nowiki>|softfail=</nowiki></code> to the invocation you want this for. ] (]) 00:35, 15 January 2021 (UTC)

Revision as of 00:35, 15 January 2021

Request

@Jackmcbarn: I know you're not too active at the moment, but I have a request. Would it be possible to update the code so that it will fail gracefully (without script errors) if key1 does not exist in the data module? At the moment I have no way to see if a value is defined without causing the script error. Thanks and hope to see you back soon! — Martin (MSGJ · talk) 22:24, 14 January 2021 (UTC)

@MSGJ: Done. Add |softfail= to the invocation you want this for. Jackmcbarn (talk) 00:35, 15 January 2021 (UTC)