<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="sv">
	<id>https://www.drugwiki.net/w/index.php?action=history&amp;feed=atom&amp;title=Modul%3AISBN</id>
	<title>Modul:ISBN - Versionshistorik</title>
	<link rel="self" type="application/atom+xml" href="https://www.drugwiki.net/w/index.php?action=history&amp;feed=atom&amp;title=Modul%3AISBN"/>
	<link rel="alternate" type="text/html" href="https://www.drugwiki.net/w/index.php?title=Modul:ISBN&amp;action=history"/>
	<updated>2026-11-01T00:04:40Z</updated>
	<subtitle>Versionshistorik för denna sida på wikin</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://www.drugwiki.net/w/index.php?title=Modul:ISBN&amp;diff=4185&amp;oldid=prev</id>
		<title>Sysop: 1 version importerades</title>
		<link rel="alternate" type="text/html" href="https://www.drugwiki.net/w/index.php?title=Modul:ISBN&amp;diff=4185&amp;oldid=prev"/>
		<updated>2025-10-31T11:54:02Z</updated>

		<summary type="html">&lt;p&gt;1 version importerades&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;sv&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Äldre version&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Versionen från 31 oktober 2025 kl. 11.54&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;sv&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(Ingen skillnad)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Sysop</name></author>
	</entry>
	<entry>
		<id>https://www.drugwiki.net/w/index.php?title=Modul:ISBN&amp;diff=3100&amp;oldid=prev</id>
		<title>Sysop: Skapade sidan med &#039;p = {} p.ISBN = function( frame ) 	local pframe = frame:getParent() 	local args = pframe.args 	local arg1 = args[ 1 ] 	arg1 = arg1:gsub(&#039;x&#039;,&#039;X&#039;)                  -- change &#039;x&#039; to &#039;X&#039; in order to avoid search failure in Special:Bokkällor (or Lua error) 	local arg = string.gsub(arg1,&quot;%(.*%)&quot;,&quot;&quot;)  -- remove possible parenthesis, e.g. &quot;(inb.)&quot;, in the parameter value 	if arg and arg ~= &#039;&#039; then 		local link = &#039;ISBN &#039; .. arg1 .. &#039;&#039; 		loca...&#039;</title>
		<link rel="alternate" type="text/html" href="https://www.drugwiki.net/w/index.php?title=Modul:ISBN&amp;diff=3100&amp;oldid=prev"/>
		<updated>2025-10-30T17:45:48Z</updated>

		<summary type="html">&lt;p&gt;Skapade sidan med &amp;#039;p = {} p.ISBN = function( frame ) 	local pframe = frame:getParent() 	local args = pframe.args 	local arg1 = args[ 1 ] 	arg1 = arg1:gsub(&amp;#039;x&amp;#039;,&amp;#039;X&amp;#039;)                  -- change &amp;#039;x&amp;#039; to &amp;#039;X&amp;#039; in order to avoid search failure in Special:Bokkällor (or Lua error) 	local arg = string.gsub(arg1,&amp;quot;%(.*%)&amp;quot;,&amp;quot;&amp;quot;)  -- remove possible parenthesis, e.g. &amp;quot;(inb.)&amp;quot;, in the parameter value 	if arg and arg ~= &amp;#039;&amp;#039; then 		local link = &amp;#039;&lt;a href=&quot;/droger/Special:Bokk%C3%A4llor/%27_.._arg1_.._%27&quot; title=&quot;Special:Bokkällor/&amp;#039; .. arg1 .. &amp;#039;&quot;&gt;ISBN &amp;#039; .. arg1 .. &amp;#039;&lt;/a&gt;&amp;#039; 		loca...&amp;#039;&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;sv&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Äldre version&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Versionen från 30 oktober 2025 kl. 17.45&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;sv&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(Ingen skillnad)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Sysop</name></author>
	</entry>
	<entry>
		<id>https://www.drugwiki.net/w/index.php?title=Modul:ISBN&amp;diff=4184&amp;oldid=prev</id>
		<title>sv&gt;Nirmos: Ändrade skrivskyddsinställningar för &quot;Modul:ISBN&quot;: används på 129 703 sidor ([Redigera=Tillåt endast etablerade användare och administratörer] (på obestämd tid) [Flytta=Tillåt endast etablerade användare och administratörer] (på obestämd tid))</title>
		<link rel="alternate" type="text/html" href="https://www.drugwiki.net/w/index.php?title=Modul:ISBN&amp;diff=4184&amp;oldid=prev"/>
		<updated>2025-01-12T02:33:34Z</updated>

		<summary type="html">&lt;p&gt;Ändrade skrivskyddsinställningar för &amp;quot;&lt;a href=&quot;/droger/Modul:ISBN&quot; title=&quot;Modul:ISBN&quot;&gt;Modul:ISBN&lt;/a&gt;&amp;quot;: används på 129 703 sidor ([Redigera=Tillåt endast etablerade användare och administratörer] (på obestämd tid) [Flytta=Tillåt endast etablerade användare och administratörer] (på obestämd tid))&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Ny sida&lt;/b&gt;&lt;/p&gt;&lt;div&gt;p = {}&lt;br /&gt;
p.ISBN = function( frame )&lt;br /&gt;
	local pframe = frame:getParent()&lt;br /&gt;
	local args = pframe.args&lt;br /&gt;
	local arg1 = args[ 1 ]&lt;br /&gt;
	arg1 = arg1:gsub(&amp;#039;x&amp;#039;,&amp;#039;X&amp;#039;)                  -- change &amp;#039;x&amp;#039; to &amp;#039;X&amp;#039; in order to avoid search failure in Special:Bokkällor (or Lua error)&lt;br /&gt;
	local arg = string.gsub(arg1,&amp;quot;%(.*%)&amp;quot;,&amp;quot;&amp;quot;)  -- remove possible parenthesis, e.g. &amp;quot;(inb.)&amp;quot;, in the parameter value&lt;br /&gt;
	if arg and arg ~= &amp;#039;&amp;#039; then&lt;br /&gt;
		local link = &amp;#039;[[Special:Bokkällor/&amp;#039; .. arg1 .. &amp;#039;|ISBN &amp;#039; .. arg1 .. &amp;#039;]]&amp;#039;&lt;br /&gt;
		local copy = arg&lt;br /&gt;
		copy = copy:gsub( &amp;#039;[^0-9X]&amp;#039;, &amp;#039;&amp;#039;)       -- remove everything that is not a digit or X in order to avoid Lua error) − &lt;br /&gt;
		local length = copy:len()&lt;br /&gt;
		if length == 10 then&lt;br /&gt;
			local t = {}&lt;br /&gt;
			for i = 1, length do&lt;br /&gt;
				if copy:sub( i, i ) == &amp;#039;X&amp;#039; then&lt;br /&gt;
					t[ i ] = 10&lt;br /&gt;
				else&lt;br /&gt;
					t[ i ] = copy:sub( i, i )&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			local t2 = {}&lt;br /&gt;
			local multiplier = 10&lt;br /&gt;
			for i = 1, #t do&lt;br /&gt;
				t2[ i ] = t[ i ] * multiplier&lt;br /&gt;
				multiplier = multiplier -1&lt;br /&gt;
			end&lt;br /&gt;
			local sum = 0&lt;br /&gt;
			for i = 1, #t2 do&lt;br /&gt;
				sum = sum + t2[ i ]&lt;br /&gt;
			end&lt;br /&gt;
			local remainder = sum % 11&lt;br /&gt;
			if remainder ~= 0 then&lt;br /&gt;
				return link ..  &amp;#039; &amp;#039; .. frame:preprocess(&amp;#039;{{error|(Felaktigt ISBN-10-nummer)}}&amp;#039;) .. &amp;#039;[[Kategori:Sidor med felaktigt ISBN]]&amp;#039;&lt;br /&gt;
			end&lt;br /&gt;
		elseif length == 13 then&lt;br /&gt;
			local t = {}&lt;br /&gt;
			for i = 1, length do&lt;br /&gt;
				if copy:sub( i, i ) == &amp;#039;X&amp;#039; then&lt;br /&gt;
					t[ i ] = 10                    -- just to avoid Lua error if someone gives a ISBN-13 containing a &amp;#039;X&amp;#039;&lt;br /&gt;
				else&lt;br /&gt;
					t[ i ] = copy:sub( i, i )&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			local t2 = {}&lt;br /&gt;
			for i = 1, #t do&lt;br /&gt;
				if i % 2 == 0 then&lt;br /&gt;
					t2[ i ] = t[ i ] * 3&lt;br /&gt;
				else&lt;br /&gt;
					t2[ i ] = t[ i ]&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			local sum = 0&lt;br /&gt;
			for i = 1, #t2 do&lt;br /&gt;
				sum = sum + t2[ i ]&lt;br /&gt;
			end&lt;br /&gt;
			local remainder = sum % 10&lt;br /&gt;
			if remainder ~= 0 then&lt;br /&gt;
				return link .. &amp;#039; &amp;#039; .. frame:preprocess(&amp;#039;{{error|(Felaktigt ISBN-13-nummer)}}&amp;#039;) .. &amp;#039;[[Kategori:Sidor med felaktigt ISBN]]&amp;#039;&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			return link .. &amp;#039; &amp;#039; .. frame:preprocess(&amp;#039;{{error|(Felaktig längd på ISBN-nummer)}}&amp;#039;) .. &amp;#039;[[Kategori:Sidor med felaktigt ISBN]]&amp;#039;&lt;br /&gt;
		end&lt;br /&gt;
		return link&lt;br /&gt;
	else&lt;br /&gt;
		return &amp;#039;&amp;lt;span class=&amp;quot;error&amp;quot;&amp;gt;[[Mall:ISBN]] anropad utan argument&amp;lt;/span&amp;gt;[[Kategori:Sidor som anropar Mall:ISBN utan argument]]&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>sv&gt;Nirmos</name></author>
	</entry>
</feed>