<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wikibase.echoimages.labs.wikimedia.pt/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AStatement</id>
	<title>Module:Statement - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wikibase.echoimages.labs.wikimedia.pt/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AStatement"/>
	<link rel="alternate" type="text/html" href="https://wikibase.echoimages.labs.wikimedia.pt/w/index.php?title=Module:Statement&amp;action=history"/>
	<updated>2026-06-10T00:27:04Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.5</generator>
	<entry>
		<id>https://wikibase.echoimages.labs.wikimedia.pt/w/index.php?title=Module:Statement&amp;diff=2660&amp;oldid=prev</id>
		<title>Epìdosis: 1 revision imported: Import templates and modules from Wikidata</title>
		<link rel="alternate" type="text/html" href="https://wikibase.echoimages.labs.wikimedia.pt/w/index.php?title=Module:Statement&amp;diff=2660&amp;oldid=prev"/>
		<updated>2026-06-03T17:15:03Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported: Import templates and modules from Wikidata&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:15, 3 June 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key my_wiki:diff:1.41:old-2659:rev-2660 --&gt;
&lt;/table&gt;</summary>
		<author><name>Epìdosis</name></author>
	</entry>
	<entry>
		<id>https://wikibase.echoimages.labs.wikimedia.pt/w/index.php?title=Module:Statement&amp;diff=2659&amp;oldid=prev</id>
		<title>d&gt;Push-f: wrap qualifiers in a &lt;span&gt; and add &lt;wbr&gt; tags so that the browser knows not to break qualifiers when word wrapping</title>
		<link rel="alternate" type="text/html" href="https://wikibase.echoimages.labs.wikimedia.pt/w/index.php?title=Module:Statement&amp;diff=2659&amp;oldid=prev"/>
		<updated>2022-11-23T08:31:49Z</updated>

		<summary type="html">&lt;p&gt;wrap qualifiers in a &amp;lt;span&amp;gt; and add &amp;lt;wbr&amp;gt; tags so that the browser knows not to break qualifiers when word wrapping&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local get_label = require(&amp;#039;Module:Wikidata label&amp;#039;)._getLabel&lt;br /&gt;
local getLemmaById = require(&amp;#039;Module:Lexeme&amp;#039;).getLemmaById&lt;br /&gt;
&lt;br /&gt;
local function format_id(id)&lt;br /&gt;
	return get_label(id, nil, &amp;#039;wikidata&amp;#039;, nil, 1)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
local function format_thing (thing)&lt;br /&gt;
	if thing then&lt;br /&gt;
		if thing:match(&amp;#039;^[QP]?%d+$&amp;#039;) then&lt;br /&gt;
			return format_id(thing)&lt;br /&gt;
		elseif thing:match(&amp;#039;^L?%d+$&amp;#039;) then&lt;br /&gt;
			return &amp;#039;[[Lexeme:&amp;#039; .. thing .. &amp;#039;|&amp;#039; .. getLemmaById(thing) .. &amp;#039; &amp;lt;small&amp;gt;(&amp;#039; .. thing .. &amp;#039;)&amp;lt;/small&amp;gt;]]&amp;#039;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return thing&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function format_predicate(pred)&lt;br /&gt;
	if pred:match(&amp;#039;^[P]%d+$&amp;#039;) then&lt;br /&gt;
		return format_id(pred)&lt;br /&gt;
	elseif pred:match(&amp;#039;^%d+$&amp;#039;) then&lt;br /&gt;
		return format_id(&amp;#039;P&amp;#039; .. pred)&lt;br /&gt;
	end&lt;br /&gt;
	return pred&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function missing(i)&lt;br /&gt;
	return &amp;#039;{{{&amp;#039; .. i .. &amp;#039;}}}&amp;#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- debug with e.g. =p.main(nil, {&amp;#039;you&amp;#039;, &amp;#039;P2283&amp;#039;, &amp;#039;Q207316&amp;#039;})&lt;br /&gt;
function p.main (frame, debugArgs)&lt;br /&gt;
	local args = debugArgs or frame:getParent().args&lt;br /&gt;
	&lt;br /&gt;
	-- 1. parse arguments&lt;br /&gt;
	-- (We&amp;#039;re not using table.remove because that doesn&amp;#039;t work with MediaWiki&amp;#039;s frame object)&lt;br /&gt;
	local subject = args[1]&lt;br /&gt;
	local predicate = args[2] or missing(2)&lt;br /&gt;
	local object = args[3] or missing(3)&lt;br /&gt;
	local qualifiers = {}&lt;br /&gt;
	&lt;br /&gt;
	local i = 4&lt;br /&gt;
	-- (We&amp;#039;re not using a for loop because #args doesn&amp;#039;t work with MediaWiki&amp;#039;s frame object)&lt;br /&gt;
	while args[i] do&lt;br /&gt;
		table.insert(qualifiers, {args[i], args[i+1]})&lt;br /&gt;
		i = i + 2&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	-- 2. build HTML&lt;br /&gt;
	local stmt = mw.html.create(&amp;#039;span&amp;#039;):attr(&amp;#039;class&amp;#039;, &amp;#039;statement&amp;#039;)&lt;br /&gt;
	if subject ~= &amp;#039;&amp;#039; then&lt;br /&gt;
		stmt:tag(&amp;#039;b&amp;#039;):attr(&amp;#039;class&amp;#039;, &amp;#039;subject&amp;#039;):wikitext(format_thing(subject))&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	stmt:tag(&amp;#039;span&amp;#039;):attr(&amp;#039;class&amp;#039;, &amp;#039;predicate&amp;#039;):wikitext(format_predicate(predicate))&lt;br /&gt;
	stmt:tag(&amp;#039;span&amp;#039;):attr(&amp;#039;class&amp;#039;, &amp;#039;object&amp;#039;):wikitext(format_thing(object))&lt;br /&gt;
	&lt;br /&gt;
	for i, qual in pairs(qualifiers) do&lt;br /&gt;
		stmt:wikitext(&amp;#039;&amp;lt;wbr&amp;gt;&amp;#039;)&lt;br /&gt;
		local qual_span = stmt:tag(&amp;#039;span&amp;#039;):attr(&amp;#039;class&amp;#039;, &amp;#039;qualifier&amp;#039;)&lt;br /&gt;
		qual_span:tag(&amp;#039;span&amp;#039;):attr(&amp;#039;class&amp;#039;, &amp;#039;predicate&amp;#039;):wikitext(format_predicate(qual[1]))&lt;br /&gt;
		qual_span:tag(&amp;#039;span&amp;#039;):attr(&amp;#039;class&amp;#039;, &amp;#039;object&amp;#039;):wikitext(format_thing(qual[2]) or missing(3 + i*2))&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return tostring(stmt)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>d&gt;Push-f</name></author>
	</entry>
</feed>