<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.ekatrafoundation.org/index.php?action=history&amp;feed=atom&amp;title=Module%3AOptional_CSS_attribute</id>
	<title>Module:Optional CSS attribute - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ekatrafoundation.org/index.php?action=history&amp;feed=atom&amp;title=Module%3AOptional_CSS_attribute"/>
	<link rel="alternate" type="text/html" href="https://wiki.ekatrafoundation.org/index.php?title=Module:Optional_CSS_attribute&amp;action=history"/>
	<updated>2026-07-23T12:46:09Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.0</generator>
	<entry>
		<id>https://wiki.ekatrafoundation.org/index.php?title=Module:Optional_CSS_attribute&amp;diff=63044&amp;oldid=prev</id>
		<title>Meghdhanu: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.ekatrafoundation.org/index.php?title=Module:Optional_CSS_attribute&amp;diff=63044&amp;oldid=prev"/>
		<updated>2023-08-09T01:30:42Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&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;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 01:30, 9 August 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&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;/table&gt;</summary>
		<author><name>Meghdhanu</name></author>
	</entry>
	<entry>
		<id>https://wiki.ekatrafoundation.org/index.php?title=Module:Optional_CSS_attribute&amp;diff=63043&amp;oldid=prev</id>
		<title>enws&gt;CalendulaAsteraceae at 06:57, 27 February 2023</title>
		<link rel="alternate" type="text/html" href="https://wiki.ekatrafoundation.org/index.php?title=Module:Optional_CSS_attribute&amp;diff=63043&amp;oldid=prev"/>
		<updated>2023-02-27T06:57:50Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;--[=[&lt;br /&gt;
Simple module to construct a CSS attribute with an undefined number (including zero) of CSS properties&lt;br /&gt;
]=]&lt;br /&gt;
require(&amp;#039;strict&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
local p = {} --p stands for package&lt;br /&gt;
local getArgs = require(&amp;#039;Module:Arguments&amp;#039;).getArgs&lt;br /&gt;
&lt;br /&gt;
--[=[&lt;br /&gt;
Construct the string from the given table of property:values&lt;br /&gt;
]=]&lt;br /&gt;
function p.make_attribute_string(attribute, properties)&lt;br /&gt;
	if not attribute or not properties or mw.text.trim(attribute) == &amp;#039;&amp;#039; or properties == {} then&lt;br /&gt;
		return &amp;#039;&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	attribute = mw.text.trim(attribute)&lt;br /&gt;
	&lt;br /&gt;
	local out  = &amp;#039;&amp;#039;&lt;br /&gt;
	for p, v in pairs(properties) do&lt;br /&gt;
		local property = mw.text.trim(p)&lt;br /&gt;
		local value = mw.text.trim(v)&lt;br /&gt;
		if property ~= attribute and property ~= &amp;#039;&amp;#039; and value ~= &amp;#039;&amp;#039; then&lt;br /&gt;
			out = out .. property .. &amp;#039;:&amp;#039; .. value .. &amp;#039;;&amp;#039;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if properties[attribute] then&lt;br /&gt;
		out = out .. mw.text.trim(properties[attribute])&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if out == &amp;#039;&amp;#039; then&lt;br /&gt;
		return &amp;#039;&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	return attribute .. &amp;#039;=&amp;quot;&amp;#039; .. out .. &amp;#039;&amp;quot;&amp;#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--[=[&lt;br /&gt;
The main entry function from templates&lt;br /&gt;
&lt;br /&gt;
Arguments are taken from both frame and parent argument lists&lt;br /&gt;
]=]&lt;br /&gt;
function p.optional_CSS_attribute(frame)&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	local attribute = args[1] or args.attribute&lt;br /&gt;
	args[1] = nil&lt;br /&gt;
	args.attribute = nil&lt;br /&gt;
	return p.make_attribute_string(attribute, args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>enws&gt;CalendulaAsteraceae</name></author>
	</entry>
</feed>