Module:ProcessArgs/doc

This module allows arguments to be merged and normalized. This also has the side-effect of making the arguments a real table instead of an empty table with a metatable to access the arguments. This allows the  operator to work, as well as allowing new values to be added to the table without being ignored when iterating. The downsize of using a real table is that some performance is lost if the values are not actually used.

function
The  function will normalize the arguments passed to it, trimming whitespace and removing empty arguments. If a table isn't passed to the function, it will automatically use the parent frame's arguments table if it has any entries, otherwise it will use the current frame's argument table.

function
The  function will normalize the arguments passed to it, using the   function. If a table isn't passed to the function, it will automatically use the current frame's arguments table. If this table has the  parameter set and non-empty after trimming, it will automatically use the parent frame's arguments table. This function always returns a table passed through the  function.

function
The  function will merge two tables together, overwriting duplicate values from the second table with the first table's value, as well as doing the same as the   function if the   parameter is. If the first parameter isn't a table, it is used as the value for the norm parameter, and it will automatically get the current frame's directly passed arguments table and merge it with the current frame's parent arguments table.