<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://kerbal.wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3ASize</id>
	<title>Module:Size - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://kerbal.wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3ASize"/>
	<link rel="alternate" type="text/html" href="https://kerbal.wiki/index.php?title=Module:Size&amp;action=history"/>
	<updated>2026-04-18T05:47:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://kerbal.wiki/index.php?title=Module:Size&amp;diff=1069&amp;oldid=prev</id>
		<title>KiwiShark: fixed bad function call</title>
		<link rel="alternate" type="text/html" href="https://kerbal.wiki/index.php?title=Module:Size&amp;diff=1069&amp;oldid=prev"/>
		<updated>2024-12-06T17:24:38Z</updated>

		<summary type="html">&lt;p&gt;fixed bad function call&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 19:24, 6 December 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l8&quot;&gt;Line 8:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	local args = getArgs(frame, {frameOnly = true})  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	local args = getArgs(frame, {frameOnly = true})  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	-- Pass arguments to the helper function&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	-- Pass arguments to the helper function&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	size = p.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;_getData&lt;/del&gt;(args)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	size = p.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;_getSize&lt;/ins&gt;(args)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	return size&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	return size&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;end&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key web117_wiki:diff:1.41:old-1068:rev-1069:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>KiwiShark</name></author>
	</entry>
	<entry>
		<id>https://kerbal.wiki/index.php?title=Module:Size&amp;diff=1068&amp;oldid=prev</id>
		<title>KiwiShark: New module to handle size tag display instead of parser function spaghetti in the template</title>
		<link rel="alternate" type="text/html" href="https://kerbal.wiki/index.php?title=Module:Size&amp;diff=1068&amp;oldid=prev"/>
		<updated>2024-12-06T17:23:30Z</updated>

		<summary type="html">&lt;p&gt;New module to handle size tag display instead of parser function spaghetti in the template&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;
local getArgs = require(&amp;#039;Module:Arguments&amp;#039;).getArgs&lt;br /&gt;
&lt;br /&gt;
function p.getSize(frame)&lt;br /&gt;
	-- Get arguments from the invoke&lt;br /&gt;
	-- frameOnly is used to ignore additional arguments passed when &lt;br /&gt;
	-- Template:Size is called from an infobox, for example&lt;br /&gt;
	local args = getArgs(frame, {frameOnly = true}) &lt;br /&gt;
	-- Pass arguments to the helper function&lt;br /&gt;
	size = p._getData(args)&lt;br /&gt;
	return size&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._getSize(args)&lt;br /&gt;
	-- Take the arg as the size tag label&lt;br /&gt;
	sizeTag = args[1]&lt;br /&gt;
	size = &amp;quot;&amp;quot;&lt;br /&gt;
	&lt;br /&gt;
	-- Match the tag to the proper formatted string to display&lt;br /&gt;
	if sizeTag == &amp;quot;XS&amp;quot; then size = &amp;quot;&amp;lt;code&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font color=#E04949&amp;gt;XS&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/code&amp;gt;&amp;quot; end&lt;br /&gt;
	if sizeTag == &amp;quot;SM&amp;quot; then size = &amp;quot;&amp;lt;code&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font color=#E0A400&amp;gt;SM&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/code&amp;gt;&amp;quot; end&lt;br /&gt;
	if sizeTag == &amp;quot;MD&amp;quot; then size = &amp;quot;&amp;lt;code&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font color=#93E000&amp;gt;MD&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/code&amp;gt;&amp;quot; end&lt;br /&gt;
	if sizeTag == &amp;quot;LG&amp;quot; then size = &amp;quot;&amp;lt;code&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font color=#00E0A8&amp;gt;LG&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/code&amp;gt;&amp;quot; end&lt;br /&gt;
	if sizeTag == &amp;quot;XL&amp;quot; then size = &amp;quot;&amp;lt;code&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font color=#49ABE0&amp;gt;XL&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/code&amp;gt;&amp;quot; end&lt;br /&gt;
	if sizeTag == &amp;quot;2X&amp;quot; then size = &amp;quot;&amp;lt;code&amp;gt;&amp;lt;b&amp;gt;&amp;lt;font color=#A978DA&amp;gt;2X&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/code&amp;gt;&amp;quot; end&lt;br /&gt;
	&lt;br /&gt;
	return size&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>KiwiShark</name></author>
	</entry>
</feed>