Module:Check for deprecated parameters/doc: Difference between revisions
From Kenshi Wiki
More actions
Created page with "{{Module rating |protected}} {{high-use}} {{Lua|Module:If preview}} '''Module:Check for deprecated parameters''' may be appended to a template to check for uses of deprecated parameters. It will place the page in a specific category, and display a preview message, when it finds deprecated parameter uses. '''Note:''' due to the nature of deprecations, this module will often have no templates implementing it. == Usage == <syntaxhighlight lang="wikitext"> {{#invoke:Check..." |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{ | {{doc sub}} | ||
{{Lua|Module:If preview}} | {{Lua|Module:If preview}} | ||
'''Module:Check for deprecated parameters''' may be appended to a template to check for uses of deprecated parameters. It will place the page in a specific category, and display a preview message, when it finds deprecated parameter uses. | '''Module:Check for deprecated parameters''' may be appended to a template to check for uses of deprecated parameters. It will place the page in a specific category, and display a preview message, when it finds deprecated parameter uses. | ||
Line 25: | Line 24: | ||
<includeonly>{{sandbox other|| | <includeonly>{{sandbox other|| | ||
<!-- Categories go here and interwikis go in Wikidata. --> | <!-- Categories go here and interwikis go in Wikidata. --> | ||
[[Category:Modules]] | |||
[[Category:Modules that add a tracking category]] | [[Category:Modules that add a tracking category]] | ||
[[Category:Template metamodules]] | [[Category:Template metamodules]] | ||
}}</includeonly> | }}</includeonly> | ||
<noinclude> | <noinclude> | ||
[[Category:Module | [[Category:Module documents]] | ||
</noinclude> | </noinclude> |
Latest revision as of 00:19, 11 March 2025
This is a documentation subpage for Module:Check for deprecated parameters. It may contain usage information, categories and other content that is not part of the original module page. |
Uses Lua: |
Module:Check for deprecated parameters may be appended to a template to check for uses of deprecated parameters. It will place the page in a specific category, and display a preview message, when it finds deprecated parameter uses.
Note: due to the nature of deprecations, this module will often have no templates implementing it.
Usage
{{#invoke:Check for deprecated parameters|check
| category = [[Category:category_name|_VALUE_]]
| old_param1 = new_param1
| old_param2 = new_param2
| ....
| old_paramN = new_paramN
}}
By default, this module will flag empty uses of deprecated parameters. To turn this off, set |ignoreblank=yes
.
See also
- Category:Deprecated parameters
- Module:Params – for complex operations involving parameters
- Module:Check for unknown parameters
- Module:Check for clobbered parameters – module that checks for conflicting parameters