Jump to content

User:Zackmann08/scripts/AddCheckForUnknownParameters

From Wikipedia, the free encyclopedia
AddCheckForUnknownParameters
DescriptionAdds a link to insert a check for unknown parameters in a template.
AuthorZackmann08
UpdatedJuly 28, 2026
    (18 days ago)
SourceUser:Zackmann08/scripts/ AddCheckForUnknownParameters.js

Installing this script will add a Chk4unkwn option to your tools section that allows you to quickly and easily generate a {{#invoke:Check for unknown parameters|check}} with the parameters in the template.

This script was created as a fork of User:Frietjes/addcheckforunknownparameters.js but there are there are a few key differences.

My version will
  1. Detect the presence of Module:Infobox mapframe and set |mapframe_args=y in the call to Check for unknown parameters
  2. Detect the presence of Module:Location map, specifically the function infobox_pushpin_map, and set |pushpin_map_args=y in the call to Check for unknown parameters
  3. Detect the presence of Module:Person date and add birth_date & death_date to the param list.
  4. Attempt to replace and update the call to {{#invoke:Check for unknown parameters|check}} if it is already present in the code.

Installation

[edit]
  1. Go to your common JavaScript and paste in the following line:
    {{subst:iusc|User:Zackmann08/scripts/AddCheckForUnknownParameters.js}}
  2. Save the page.