l<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://climatewiki.earth/wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AIncrementParams</id>
	<title>Module:IncrementParams - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://climatewiki.earth/wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AIncrementParams"/>
	<link rel="alternate" type="text/html" href="https://climatewiki.earth/wiki/index.php?title=Module:IncrementParams&amp;action=history"/>
	<updated>2026-05-05T03:31:44Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.1</generator>
	<entry>
		<id>https://climatewiki.earth/wiki/index.php?title=Module:IncrementParams&amp;diff=6773&amp;oldid=prev</id>
		<title>BranchOut: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://climatewiki.earth/wiki/index.php?title=Module:IncrementParams&amp;diff=6773&amp;oldid=prev"/>
		<updated>2023-04-16T13:47:43Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:47, 16 April 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>BranchOut</name></author>
	</entry>
	<entry>
		<id>https://climatewiki.earth/wiki/index.php?title=Module:IncrementParams&amp;diff=6772&amp;oldid=prev</id>
		<title>Wikipedia&gt;Izno: rm unnecessary vendor specifics</title>
		<link rel="alternate" type="text/html" href="https://climatewiki.earth/wiki/index.php?title=Module:IncrementParams&amp;diff=6772&amp;oldid=prev"/>
		<updated>2022-11-02T17:53:30Z</updated>

		<summary type="html">&lt;p&gt;rm unnecessary vendor specifics&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- STEP 1: Click on the &amp;quot;edit&amp;quot; tab at the top of the page to edit this module.&lt;br /&gt;
&lt;br /&gt;
-- STEP 2: if you want to increment by a number other than 1, put that number below, after the equals sign. &lt;br /&gt;
local increment = 1&lt;br /&gt;
&lt;br /&gt;
-- STEP 3: Replace the example template text with the template text that you wish to increment.&lt;br /&gt;
local templatetext = [==========[&lt;br /&gt;
|header3  = Section 1&lt;br /&gt;
|label5   = Label A&lt;br /&gt;
|data5    = Data A&lt;br /&gt;
|label7   = Label C&lt;br /&gt;
|data7    = Data C&lt;br /&gt;
|header10 = Section 2&lt;br /&gt;
|label12  = Label D&lt;br /&gt;
|data12   = Data D&lt;br /&gt;
]==========]&lt;br /&gt;
&lt;br /&gt;
-- STEP 4: Save this module.&lt;br /&gt;
&lt;br /&gt;
-- STEP 5: You can now output the incremented text with the following code:&lt;br /&gt;
--                {{subst:#invoke:IncrementParams|main}}&lt;br /&gt;
-- Or you can simply copy and paste the text from this module's documentation.&lt;br /&gt;
&lt;br /&gt;
-- STEP 6: Check the output! In rare cases this module might produce false positives.&lt;br /&gt;
-- For example, it will change the text &amp;quot;[[Some link|foo3=bar]]&amp;quot; to &amp;quot;[[Some link|foo4=bar]]&amp;quot;.&lt;br /&gt;
-- You can use the &amp;quot;show changes&amp;quot; function in the edit window of the template you are editing&lt;br /&gt;
-- to find any false positives.&lt;br /&gt;
&lt;br /&gt;
-- STEP 7: When you are finished, undo your changes to this page, so that the next person&lt;br /&gt;
-- won't be confused by seeing any non-default values. Thanks for using this module!&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
 &lt;br /&gt;
local function replace(prefix, num, suffix)&lt;br /&gt;
    return '|' .. prefix .. tostring(tonumber(num) + increment) .. suffix .. '='&lt;br /&gt;
end&lt;br /&gt;
 &lt;br /&gt;
function p.main(frame)&lt;br /&gt;
    -- Increment the template text.&lt;br /&gt;
    templatetext = mw.ustring.gsub(templatetext, '|(%s*%a?[%a_%-]-%s*)([1-9]%d*)(%s*[%a_%-]-%a?%s*)=', replace)&lt;br /&gt;
    -- Add pre tags and escape html etc. if the pre option is set.&lt;br /&gt;
    if frame and frame.args and frame.args.pre and frame.args.pre ~= '' then&lt;br /&gt;
        templatetext = mw.text.nowiki(templatetext)&lt;br /&gt;
        templatetext = '&amp;lt;pre style=&amp;quot;white-space:pre-wrap; word-wrap:break-word;&amp;quot;&amp;gt;' &lt;br /&gt;
            .. templatetext .. '&amp;lt;/pre&amp;gt;'&lt;br /&gt;
    end&lt;br /&gt;
    return templatetext&lt;br /&gt;
end&lt;br /&gt;
 &lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;Izno</name></author>
	</entry>
</feed>