<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mywikibiz.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AAnchor%2Fsandbox</id>
	<title>Module:Anchor/sandbox - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mywikibiz.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AAnchor%2Fsandbox"/>
	<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Module:Anchor/sandbox&amp;action=history"/>
	<updated>2026-07-06T13:44:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.3</generator>
	<entry>
		<id>https://mywikibiz.com/index.php?title=Module:Anchor/sandbox&amp;diff=470964&amp;oldid=prev</id>
		<title>Zoran: Moved page from wikipedia:en:Module:Anchor/sandbox</title>
		<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Module:Anchor/sandbox&amp;diff=470964&amp;oldid=prev"/>
		<updated>2021-07-08T19:17:00Z</updated>

		<summary type="html">&lt;p&gt;Moved page from &lt;a href=&quot;/index.php?title=Wikipedia:en:Module:Anchor/sandbox&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Wikipedia:en:Module:Anchor/sandbox (page does not exist)&quot;&gt;wikipedia:en:Module:Anchor/sandbox&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- This module implements {{anchor}}.&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	-- Algorithm:&lt;br /&gt;
	-- Step 1. Create a local variable to store the anchors,&lt;br /&gt;
	--   initialised to the empty string.&lt;br /&gt;
	local ret = &amp;quot;&amp;quot;&lt;br /&gt;
	-- Step 2. Create a iterator variable, initialised to 1.&lt;br /&gt;
	local i = 1&lt;br /&gt;
	-- Step 3. While there exists a positional argument referenced by&lt;br /&gt;
	--   the iterator variable, do the following:&lt;br /&gt;
    while not (frame.args[i] == nil)&lt;br /&gt;
    do&lt;br /&gt;
    	-- (a) Add a empty span whose id is the value of the argument&lt;br /&gt;
    	--   to the local variable storing the anchors;&lt;br /&gt;
        ret = ret .. '&amp;lt;span id=&amp;quot;' .. frame.args[i] .. '&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;'&lt;br /&gt;
        -- (b) Increment the iterator variable.&lt;br /&gt;
        i = i + 1&lt;br /&gt;
    end&lt;br /&gt;
    -- Step 4. Return the value of the local variable storing the anchors.&lt;br /&gt;
    return ret&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Zoran</name></author>
	</entry>
</feed>