<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ASandbox%2FIneditable%2FTwitter</id>
	<title>Module:Sandbox/Ineditable/Twitter - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ASandbox%2FIneditable%2FTwitter"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/Ineditable/Twitter&amp;action=history"/>
	<updated>2026-04-21T00:33:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://stockhub.co/index.php?title=Module:Sandbox/Ineditable/Twitter&amp;diff=145553&amp;oldid=prev</id>
		<title>imported&gt;Asdasdasdewfwefwefewfewfef: Test trim</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/Ineditable/Twitter&amp;diff=145553&amp;oldid=prev"/>
		<updated>2014-06-16T14:24:39Z</updated>

		<summary type="html">&lt;p&gt;Test trim&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
 &lt;br /&gt;
function p.createLink( frame )&lt;br /&gt;
	local id = trim(frame.args.id or frame.args[1]) -- if not present should print an error. User friendly errors ¿?&lt;br /&gt;
	local name = trim(frame.args.name or frame.args[2] or &amp;quot;&amp;quot;)&lt;br /&gt;
	local external = trim(frame.args.external or frame.args[3] or &amp;quot;&amp;quot;)&lt;br /&gt;
	local newLine = trim(frame.args.newline or frame.args[4] or &amp;quot;&amp;quot;)&lt;br /&gt;
	&lt;br /&gt;
	local patternUserRepresentation = &amp;#039;@&amp;#039; &lt;br /&gt;
	&lt;br /&gt;
	-- remove @ from the beginning of the ID (if any)&lt;br /&gt;
	if id.sub(id, 1, string.len(patternUserRepresentation)) == patternUserRepresentation then id = id.sub(id, 2, string.len(id)) end&lt;br /&gt;
	&lt;br /&gt;
	-- repmove @ from the beginning of the user (if any)&lt;br /&gt;
	if name ~= &amp;#039;&amp;#039; and id.sub(name, 1, string.len(patternUserRepresentation)) == patternUserRepresentation then name = name.sub(name, 2, string.len(name)) end&lt;br /&gt;
			&lt;br /&gt;
	-- if the user is empty, use the ID, else use the name with a @&lt;br /&gt;
	if name == &amp;#039;&amp;#039; then name = &amp;#039;@&amp;#039;..id else name = &amp;#039;@&amp;#039;..name end&lt;br /&gt;
	&lt;br /&gt;
	-- write to output &lt;br /&gt;
	local output = &amp;#039;[https://twitter.com/&amp;#039;.. id ..&amp;#039; &amp;#039;.. name ..&amp;#039;]&amp;#039;&lt;br /&gt;
	&lt;br /&gt;
	if external == &amp;#039;true&amp;#039; or external == &amp;#039;1&amp;#039; then output = output .. &amp;#039; en [[Twitter]]&amp;#039; end &lt;br /&gt;
	&lt;br /&gt;
	if newLine == &amp;#039;true&amp;#039; or newLine == &amp;#039;1&amp;#039; then output = &amp;#039;* &amp;#039;.. output end &lt;br /&gt;
&lt;br /&gt;
    return output&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function trim(s)&lt;br /&gt;
  return s:match&amp;#039;^%s*(.*%S)&amp;#039; or &amp;#039;&amp;#039;&lt;br /&gt;
end&lt;br /&gt;
 &lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;Asdasdasdewfwefwefewfewfef</name></author>
	</entry>
</feed>