<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.telosrealms.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AArgsUtil%2Fdoc</id>
	<title>Module:ArgsUtil/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.telosrealms.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AArgsUtil%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.telosrealms.com/index.php?title=Module:ArgsUtil/doc&amp;action=history"/>
	<updated>2026-04-30T16:20:40Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.telosrealms.com/index.php?title=Module:ArgsUtil/doc&amp;diff=4737&amp;oldid=prev</id>
		<title>imported&gt;RheingoldRiver: Adding default set of pages</title>
		<link rel="alternate" type="text/html" href="https://wiki.telosrealms.com/index.php?title=Module:ArgsUtil/doc&amp;diff=4737&amp;oldid=prev"/>
		<updated>2024-06-12T08:44:11Z</updated>

		<summary type="html">&lt;p&gt;Adding default set of pages&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This is a basic module for processing args. Usage:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local util_args = require(&amp;#039;Module:ArgsUtil&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
  local args = util_args.merge() -- it is not necessary to pass a `frame` object; `merge` will generate its own&lt;br /&gt;
  mw.logObject(args)&lt;br /&gt;
  -- `args` now contains args passed via the template merged with defaults provided directly via the invoke.&lt;br /&gt;
  -- anything the user sent via the template will be given priority.&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Extending this module ==&lt;br /&gt;
&lt;br /&gt;
By design, {{ml|ArgsUtil}} is shipped with only a single function and no customization available; this simplifies documentation and covers nearly all use cases. An extended version of this module is available at [[support:Module:ArgsUtil|Module:ArgsUtil on the support wiki]] if you want additional functionality; and you can of course feel free to modify this module on your own wiki as needed.&lt;/div&gt;</summary>
		<author><name>imported&gt;RheingoldRiver</name></author>
	</entry>
</feed>