Module talk:Check for unknown parameters
Appearance
Module:Check for unknown parameters is permanently protected from editing because it is a heavily used or highly visible module. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit protected}} to notify an administrator to make the requested edit.
|
Templates | ||||
|
This module was considered for merging on 2019 December 30. The result of the discussion was "no consensus". |
This is the talk page for discussing improvements to the Check for unknown parameters module. |
|
Archives: 1Auto-archiving period: 3 months |
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)
- @Frietjes: any chance you could help me with the above? — Martin (MSGJ · talk) 19:04, 8 January 2023 (UTC)
- Something like this should work for you: Gonnym (talk) 11:41, 9 January 2023 (UTC)
local validArgs = { ... } local checkForUnknownParameters = require("Module:Check for unknown parameters") local result = checkForUnknownParameters._check(validArgs, args)
- 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)
- Thanks both, I will give it a try — Martin (MSGJ · talk) 12:10, 11 January 2023 (UTC)
- Something like this should work for you:
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)
Pagenames involved
For de-confusion, pagenames involved:
- Module:Check for unknown parameters -- has best documentation
- Module talk:Check for unknown parameters
- Template:Checks for unknown parameters/doc -- needs a check; transclusion advice 'Use this /doc in template documentation' is tested or applied?
- Template:Checks for unknown parameters -- has plural Checks ...
- Template:Check for unknown parameters (R) → Template:Checks for unknown parameters
- Template talk:Checks for unknown parameters (R) → Module talk:Check for unknown parameters -- was redlink; now talk central
- WP:CFUP (R) → Template:Checks for unknown parameters/doc -- R to the /doc, not create a templatename-redirect
- Not done (yet): Template:fcup as template R?