<?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%2FRexxS%2FImages</id>
	<title>Module:Sandbox/RexxS/Images - 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%2FRexxS%2FImages"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/RexxS/Images&amp;action=history"/>
	<updated>2026-05-27T10:36:55Z</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/RexxS/Images&amp;diff=146087&amp;oldid=prev</id>
		<title>imported&gt;RexxS: set value for no image</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/RexxS/Images&amp;diff=146087&amp;oldid=prev"/>
		<updated>2014-09-03T18:15:38Z</updated>

		<summary type="html">&lt;p&gt;set value for no image&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;
-- This is used to return an image filename from Wikidata (property p18), or &amp;quot;Noimage.svg&amp;quot; if none exists&lt;br /&gt;
p.getImage = function(frame)&lt;br /&gt;
	local ent = mw.wikibase.getEntityObject()&lt;br /&gt;
	local props = ent:formatPropertyValues(&amp;#039;P18&amp;#039;)&lt;br /&gt;
	local out = {}&lt;br /&gt;
	for k, v in pairs(props) do&lt;br /&gt;
		if k == &amp;#039;value&amp;#039; then&lt;br /&gt;
			out[#out + 1] = v&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	ret = table.concat(out, &amp;quot;, &amp;quot;)&lt;br /&gt;
	if #ret == 0 then&lt;br /&gt;
		ret = &amp;quot;Noimage.svg&amp;quot;&lt;br /&gt;
	end&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;RexxS</name></author>
	</entry>
</feed>