<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.stiles.casa/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://wiki.stiles.casa/index.php?action=history&amp;feed=atom&amp;title=Module%3AAnchor%2Fsandbox"/>
	<link rel="alternate" type="text/html" href="https://wiki.stiles.casa/index.php?title=Module:Anchor/sandbox&amp;action=history"/>
	<updated>2026-04-07T11:24:18Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.2</generator>
	<entry>
		<id>https://wiki.stiles.casa/index.php?title=Module:Anchor/sandbox&amp;diff=7305&amp;oldid=prev</id>
		<title>imported&gt;Renamed user awfwvowjvwrvnwio: Removing self-attribution of algorithm</title>
		<link rel="alternate" type="text/html" href="https://wiki.stiles.casa/index.php?title=Module:Anchor/sandbox&amp;diff=7305&amp;oldid=prev"/>
		<updated>2016-12-23T11:59:14Z</updated>

		<summary type="html">&lt;p&gt;Removing self-attribution of algorithm&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;#039;&amp;lt;span id=&amp;quot;&amp;#039; .. frame.args[i] .. &amp;#039;&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;#039;&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>imported&gt;Renamed user awfwvowjvwrvnwio</name></author>
	</entry>
</feed>