<?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%3AInterPro_content</id>
	<title>Module:InterPro content - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mywikibiz.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AInterPro_content"/>
	<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Module:InterPro_content&amp;action=history"/>
	<updated>2026-07-28T02:06:00Z</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:InterPro_content&amp;diff=472325&amp;oldid=prev</id>
		<title>Zoran: Pywikibot 6.4.0</title>
		<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Module:InterPro_content&amp;diff=472325&amp;oldid=prev"/>
		<updated>2021-07-15T23:23:21Z</updated>

		<summary type="html">&lt;p&gt;Pywikibot 6.4.0&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local getArgs = require('Module:Arguments').getArgs&lt;br /&gt;
&lt;br /&gt;
local beginText = 'This article incorporates text from the public domain [[Pfam]] and [[InterPro]]: '&lt;br /&gt;
local baseUrl = 'https://www.ebi.ac.uk/interpro/entry/'&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
local function interproLink(arg)&lt;br /&gt;
	-- text before first space, if any; otherwise, whole arg&lt;br /&gt;
	local accessionNumber = arg:match('^([^ ]*) ') or arg&lt;br /&gt;
&lt;br /&gt;
	-- text after first space, if any; otherwise, accessionNumber&lt;br /&gt;
	local linkText = arg:match(' (.*)') or accessionNumber&lt;br /&gt;
	&lt;br /&gt;
	return '[' .. baseUrl .. accessionNumber .. ' ' .. linkText .. ']'&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function renderList(args)&lt;br /&gt;
	local listRoot = mw.html.create('ul')&lt;br /&gt;
		:addClass('hlist hlist-separated')&lt;br /&gt;
		:css('display', 'inline')&lt;br /&gt;
		:css('margin', 0)&lt;br /&gt;
&lt;br /&gt;
    for _, a in ipairs(args) do&lt;br /&gt;
		listRoot&lt;br /&gt;
			:tag('li')&lt;br /&gt;
				:wikitext(interproLink(a))&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
	return tostring(listRoot)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
&lt;br /&gt;
	if not args[1] then&lt;br /&gt;
		return '&amp;lt;div class=&amp;quot;error&amp;quot;&amp;gt;[[Module:InterPro content]]: required argument 1 is missing&amp;lt;/div&amp;gt;'&lt;br /&gt;
    elseif not args[2] then&lt;br /&gt;
		return '&amp;lt;div role=&amp;quot;note&amp;quot; style=&amp;quot;font-style: italic;&amp;quot;&amp;gt;' .. beginText .. interproLink(args[1]) .. '&amp;lt;/div&amp;gt;'&lt;br /&gt;
	else&lt;br /&gt;
		return '&amp;lt;div role=&amp;quot;note&amp;quot; style=&amp;quot;font-style: italic;&amp;quot;&amp;gt;' .. beginText .. renderList(args) .. '&amp;lt;/div&amp;gt;'&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Zoran</name></author>
	</entry>
</feed>