Jump to content

Module talk:Check for unknown parameters: Difference between revisions

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Content deleted Content added
{{WikiProject Templates|module_for_template_maintenance=y}} — Undid revision 1179970033 by MaterialWorks (talk)
Tags: Reverted Mobile edit Mobile web edit
Line 39: Line 39:
*Not done (yet): [[Template:fcup]] as template ''R''?
*Not done (yet): [[Template:fcup]] as template ''R''?
-[[User:DePiep|DePiep]] ([[User talk:DePiep|talk]]) 07:37, 28 February 2023 (UTC)
-[[User:DePiep|DePiep]] ([[User talk:DePiep|talk]]) 07:37, 28 February 2023 (UTC)

== Edit request 23 October 2023 ==

{{Edit fully-protected|answered=}}

'''Description of suggested change:'''

'''Diff:'''
{{TextDiff|1=ORIGINAL_TEXT|2=CHANGED_TEXT}} [[Special:Contributions/2806:102E:11:8344:DD49:1CB7:19A8:6DFC|2806:102E:11:8344:DD49:1CB7:19A8:6DFC]] ([[User talk:2806:102E:11:8344:DD49:1CB7:19A8:6DFC|talk]]) 23:36, 23 October 2023 (UTC)

Revision as of 23:36, 23 October 2023

WikiProject iconTemplates
WikiProject iconThis module is within the scope of WikiProject Templates, a group dedicated to improving the maintenance of Wikipedia's templates. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.

Use from module

Is it possible to use this module directly from another module, or does it always need to be placed on a template page? — Martin (MSGJ · talk) 16:11, 30 December 2022 (UTC)[reply]

@Frietjes: any chance you could help me with the above? — Martin (MSGJ · talk) 19:04, 8 January 2023 (UTC)[reply]
Something like this should work for you:
	local validArgs = { ... }
	local checkForUnknownParameters = require("Module:Check for unknown parameters")
	local result = checkForUnknownParameters._check(validArgs, args)
Gonnym (talk) 11:41, 9 January 2023 (UTC)[reply]
MSGJ, see the end of Module:Rugby box for a simple example or Module:Infobox3cols or Module:Flag for more complicated examples. Frietjes (talk) 15:50, 9 January 2023 (UTC)[reply]
Thanks both, I will give it a try — Martin (MSGJ · talk) 12:10, 11 January 2023 (UTC)[reply]

Works great. I will add instructions to the documentation when I get time. Non-urgent feature request: it would be nice if I could specify which namespaces I want to check unknown parameters in. Easy enough to do locally of course, but would be tidier if it was in this module. — Martin (MSGJ · talk) 13:15, 11 January 2023 (UTC)[reply]

Pagenames involved

For de-confusion, pagenames involved:

-DePiep (talk) 07:37, 28 February 2023 (UTC)[reply]

Edit request 23 October 2023

Description of suggested change:

Diff:

ORIGINAL_TEXT
+
CHANGED_TEXT

2806:102E:11:8344:DD49:1CB7:19A8:6DFC (talk) 23:36, 23 October 2023 (UTC)[reply]