<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.runerealm.org/index.php?action=history&amp;feed=atom&amp;title=Module%3AExchangeData</id>
	<title>Module:ExchangeData - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.runerealm.org/index.php?action=history&amp;feed=atom&amp;title=Module%3AExchangeData"/>
	<link rel="alternate" type="text/html" href="https://wiki.runerealm.org/index.php?title=Module:ExchangeData&amp;action=history"/>
	<updated>2026-05-03T11:49:21Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://wiki.runerealm.org/index.php?title=Module:ExchangeData&amp;diff=38379&amp;oldid=prev</id>
		<title>Alex at 10:22, 17 October 2024</title>
		<link rel="alternate" type="text/html" href="https://wiki.runerealm.org/index.php?title=Module:ExchangeData&amp;diff=38379&amp;oldid=prev"/>
		<updated>2024-10-17T10:22:42Z</updated>

		<summary type="html">&lt;p&gt;&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 12:22, 17 October 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 14:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 14:&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;--&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;--&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;function p._main( args, baseExcgPage )&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;function p._main( args, baseExcgPage )&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;    -- prefer args[1] but that&#039;ll break on exchange /data &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;mw.&lt;/del&gt;pages due to the data being the first positional arg&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;    -- prefer args[1] but that&#039;ll break on exchange /data pages due to the data being the first positional arg&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;    -- @todo change the order of these when data is removed fom there&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;    -- @todo change the order of these when data is removed fom there&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;    local item = args.name or args[1]&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 item = args.name or args[1]&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 38:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 38:&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;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;br /&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;br /&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;        -- some extra formatting for non exchange &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;mw.&lt;/del&gt;pages&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;        -- some extra formatting for non exchange pages&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;        local div3 = div2:tag(&#039;div&#039;):addClass(&#039;GEdatachart&#039;)&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 div3 = div2:tag(&#039;div&#039;):addClass(&#039;GEdatachart&#039;)&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;        if baseExcgPage then&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;        if baseExcgPage then&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 197:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 197:&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;--&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;--&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;-- A stripped down version of ExcgData&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;-- A stripped down version of ExcgData&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;-- Intended for more general usage and avoiding stuff specific to Exchange /Data &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;mw.&lt;/del&gt;pages&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;-- Intended for more general usage and avoiding stuff specific to Exchange /Data pages&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;--&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;--&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;function p.data( frame )&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;function p.data( frame )&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;!-- diff cache key mediawiki:diff:1.41:old-34921:rev-38379:wikidiff2=table:1.13.0:bc2a06be --&gt;
&lt;/table&gt;</summary>
		<author><name>Alex</name></author>
	</entry>
	<entry>
		<id>https://wiki.runerealm.org/index.php?title=Module:ExchangeData&amp;diff=34921&amp;oldid=prev</id>
		<title>Alex at 23:12, 16 October 2024</title>
		<link rel="alternate" type="text/html" href="https://wiki.runerealm.org/index.php?title=Module:ExchangeData&amp;diff=34921&amp;oldid=prev"/>
		<updated>2024-10-16T23:12:02Z</updated>

		<summary type="html">&lt;p&gt;&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 01:12, 17 October 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 14:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 14:&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;--&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;--&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;function p._main( args, baseExcgPage )&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;function p._main( args, baseExcgPage )&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;    -- prefer args[1] but that&#039;ll break on exchange /data pages due to the data being the first positional arg&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;    -- prefer args[1] but that&#039;ll break on exchange /data &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;mw.&lt;/ins&gt;pages due to the data being the first positional arg&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;    -- @todo change the order of these when data is removed fom there&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;    -- @todo change the order of these when data is removed fom there&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;    local item = args.name or args[1]&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 item = args.name or args[1]&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 38:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 38:&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;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;br /&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;br /&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;        -- some extra formatting for non exchange pages&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;        -- some extra formatting for non exchange &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;mw.&lt;/ins&gt;pages&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;        local div3 = div2:tag(&#039;div&#039;):addClass(&#039;GEdatachart&#039;)&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 div3 = div2:tag(&#039;div&#039;):addClass(&#039;GEdatachart&#039;)&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;        if baseExcgPage then&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;        if baseExcgPage then&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 197:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 197:&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;--&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;--&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;-- A stripped down version of ExcgData&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;-- A stripped down version of ExcgData&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;-- Intended for more general usage and avoiding stuff specific to Exchange /Data pages&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;-- Intended for more general usage and avoiding stuff specific to Exchange /Data &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;mw.&lt;/ins&gt;pages&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;--&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;--&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;function p.data( frame )&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;function p.data( frame )&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;!-- diff cache key mediawiki:diff:1.41:old-454:rev-34921:wikidiff2=table:1.13.0:bc2a06be --&gt;
&lt;/table&gt;</summary>
		<author><name>Alex</name></author>
	</entry>
	<entry>
		<id>https://wiki.runerealm.org/index.php?title=Module:ExchangeData&amp;diff=454&amp;oldid=prev</id>
		<title>Alex: Created page with &quot;-- &lt;pre&gt; -- Implements {{ExcgData}} --  local p = {}  -- required modules local excg = require( &#039;Module:Exchange&#039; )  -- -- @param args {table} -- @param baseExcgPage {boolean} Shouldn&#039;t be used by any method here, --                               only used by Module:ExchangeDefault -- function p._main( args, baseExcgPage )     -- prefer args[1] but that&#039;ll break on exchange /data pages due to the data being the first positional arg     -- @todo change the order of th...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.runerealm.org/index.php?title=Module:ExchangeData&amp;diff=454&amp;oldid=prev"/>
		<updated>2024-10-11T22:12:51Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;-- &amp;lt;pre&amp;gt; -- Implements {{ExcgData}} --  local p = {}  -- required modules local excg = require( &amp;#039;Module:Exchange&amp;#039; )  -- -- @param args {table} -- @param baseExcgPage {boolean} Shouldn&amp;#039;t be used by any method here, --                               only used by &lt;a href=&quot;/w/Module:ExchangeDefault&quot; title=&quot;Module:ExchangeDefault&quot;&gt;Module:ExchangeDefault&lt;/a&gt; -- function p._main( args, baseExcgPage )     -- prefer args[1] but that&amp;#039;ll break on exchange /data pages due to the data being the first positional arg     -- @todo change the order of th...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- &amp;lt;pre&amp;gt;&lt;br /&gt;
-- Implements {{ExcgData}}&lt;br /&gt;
--&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
-- required modules&lt;br /&gt;
local excg = require( &amp;#039;Module:Exchange&amp;#039; )&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
-- @param args {table}&lt;br /&gt;
-- @param baseExcgPage {boolean} Shouldn&amp;#039;t be used by any method here,&lt;br /&gt;
--                               only used by [[Module:ExchangeDefault]]&lt;br /&gt;
--&lt;br /&gt;
function p._main( args, baseExcgPage )&lt;br /&gt;
    -- prefer args[1] but that&amp;#039;ll break on exchange /data pages due to the data being the first positional arg&lt;br /&gt;
    -- @todo change the order of these when data is removed fom there&lt;br /&gt;
    local item = args.name or args[1]&lt;br /&gt;
    local div2, div3, div4&lt;br /&gt;
&lt;br /&gt;
    if not item then&lt;br /&gt;
        error( &amp;#039;&amp;quot;name&amp;quot; argument is not specified&amp;#039;, 0 )&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    item = mw.text.trim( item )&lt;br /&gt;
&lt;br /&gt;
    if args.size ~= &amp;#039;data&amp;#039; then&lt;br /&gt;
        div2 = mw.html.create( &amp;#039;div&amp;#039; )&lt;br /&gt;
            :addClass( &amp;#039;GEChartBox&amp;#039; )&lt;br /&gt;
&lt;br /&gt;
        if args.moreItems then&lt;br /&gt;
            div2&lt;br /&gt;
                :tag( &amp;#039;div&amp;#039; )&lt;br /&gt;
                    :addClass( &amp;#039;addGEChartItems&amp;#039; )&lt;br /&gt;
                    :css( &amp;#039;display&amp;#039;, &amp;#039;none&amp;#039; )&lt;br /&gt;
                    :wikitext( args.moreItems )&lt;br /&gt;
                    :done()&lt;br /&gt;
        end&lt;br /&gt;
&lt;br /&gt;
        -- some extra formatting for non exchange pages&lt;br /&gt;
        local div3 = div2:tag(&amp;#039;div&amp;#039;):addClass(&amp;#039;GEdatachart&amp;#039;)&lt;br /&gt;
        if baseExcgPage then&lt;br /&gt;
        	div2:addClass(&amp;#039;GEPage&amp;#039;)&lt;br /&gt;
                :css( {&lt;br /&gt;
                    padding = &amp;#039;0&amp;#039;,&lt;br /&gt;
                } )&lt;br /&gt;
        	div3:css({&lt;br /&gt;
        		[&amp;#039;min-width&amp;#039;] = &amp;#039;250px&amp;#039;,&lt;br /&gt;
        		[&amp;#039;max-height&amp;#039;] = &amp;#039;350px&amp;#039;,&lt;br /&gt;
        		width = &amp;#039;100%&amp;#039;,&lt;br /&gt;
        		height = &amp;#039;100%&amp;#039;,&lt;br /&gt;
        	})&lt;br /&gt;
        	div3:addClass(&amp;#039;mediumChart&amp;#039;)&lt;br /&gt;
        else&lt;br /&gt;
            div3:css( {&lt;br /&gt;
                        [&amp;#039;padding-left&amp;#039;] = &amp;#039;1px&amp;#039;&lt;br /&gt;
                    } )&lt;br /&gt;
&lt;br /&gt;
            if args.size == &amp;#039;small&amp;#039; then&lt;br /&gt;
                div3&lt;br /&gt;
                    :addClass( &amp;#039;smallChart&amp;#039; )&lt;br /&gt;
                    :css( {&lt;br /&gt;
                        margin = &amp;#039;5px&amp;#039;,&lt;br /&gt;
                        float = &amp;#039;left&amp;#039;,&lt;br /&gt;
                        width = &amp;#039;258px&amp;#039;,&lt;br /&gt;
                        height = &amp;#039;160px&amp;#039;&lt;br /&gt;
                    } )&lt;br /&gt;
            else&lt;br /&gt;
                div3&lt;br /&gt;
                    :css( {&lt;br /&gt;
                        margin = &amp;#039;5px 0 25px 0&amp;#039;,&lt;br /&gt;
                        [&amp;#039;min-width&amp;#039;] = &amp;#039;600px&amp;#039;,&lt;br /&gt;
                        height = &amp;#039;500px&amp;#039;&lt;br /&gt;
                    } )&lt;br /&gt;
            end&lt;br /&gt;
&lt;br /&gt;
            div2 = div3&lt;br /&gt;
                :tag( &amp;#039;div&amp;#039; )&lt;br /&gt;
                    :css( {&lt;br /&gt;
                        [&amp;#039;text-align&amp;#039;] = &amp;#039;center&amp;#039;,&lt;br /&gt;
                        [&amp;#039;font-size&amp;#039;] = &amp;#039;.9em&amp;#039;,&lt;br /&gt;
                        opacity = &amp;#039;.75&amp;#039;,&lt;br /&gt;
                        [&amp;#039;user-select&amp;#039;] = &amp;#039;none&amp;#039;&lt;br /&gt;
                    } )&lt;br /&gt;
                    :wikitext( &amp;#039;Loading...&amp;#039; )&lt;br /&gt;
                    :done()&lt;br /&gt;
                :done()&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    -- for [[GEMW/C]]&lt;br /&gt;
    if mw.ustring.lower( item ) == &amp;#039;blank&amp;#039; then&lt;br /&gt;
    else&lt;br /&gt;
        -- make sure first letter is upper case&lt;br /&gt;
        item = mw.text.split( item, &amp;#039;&amp;#039; )&lt;br /&gt;
        item[1] = mw.ustring.upper( item[1] )&lt;br /&gt;
        item = table.concat( item, &amp;#039;&amp;#039; )&lt;br /&gt;
    end&lt;br /&gt;
    &lt;br /&gt;
    div4 = mw.html.create( &amp;#039;div&amp;#039; )&lt;br /&gt;
        :addClass( &amp;#039;GEdataprices&amp;#039; )&lt;br /&gt;
        :attr( &amp;#039;data-item&amp;#039;, item )&lt;br /&gt;
        :css( &amp;#039;display&amp;#039;, &amp;#039;none&amp;#039; )&lt;br /&gt;
&lt;br /&gt;
    if item and mw.ustring.match( item, &amp;#039;Index&amp;#039; ) == nil and mw.ustring.lower( item ) ~= &amp;#039;blank&amp;#039; then&lt;br /&gt;
        div4&lt;br /&gt;
            :attr( {&lt;br /&gt;
                [&amp;#039;data-value&amp;#039;] = tostring( excg._value( item ) ),&lt;br /&gt;
                [&amp;#039;data-itemId&amp;#039;] = tostring( excg._itemId( item ) ),&lt;br /&gt;
                [&amp;#039;data-limit&amp;#039;] = tostring( excg._limit( item ) )&lt;br /&gt;
            } )&lt;br /&gt;
    end&lt;br /&gt;
	&lt;br /&gt;
    if args.size == &amp;#039;data&amp;#039; then&lt;br /&gt;
        div2 = div4&lt;br /&gt;
    else&lt;br /&gt;
        div2:node( div4:done() )&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    return tostring( div2 )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._chart(args)&lt;br /&gt;
    local items = args[1] or args.items&lt;br /&gt;
&lt;br /&gt;
    if items == nil then&lt;br /&gt;
        return&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    items = mw.text.trim( items )&lt;br /&gt;
    items = mw.text.split( items, &amp;#039;,&amp;#039; )&lt;br /&gt;
&lt;br /&gt;
    if mw.text.trim( items[1] ) == &amp;#039;&amp;#039; then&lt;br /&gt;
        return args[&amp;#039;else&amp;#039;] or &amp;#039;&amp;#039;&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    local div = mw.html.create( &amp;#039;div&amp;#039; )&lt;br /&gt;
        :addClass( &amp;#039;GEChartBox&amp;#039; )&lt;br /&gt;
        :tag( &amp;#039;div&amp;#039; )&lt;br /&gt;
            :addClass( &amp;#039;GEChartItems&amp;#039; )&lt;br /&gt;
            :css( &amp;#039;display&amp;#039;, &amp;#039;none&amp;#039; )&lt;br /&gt;
            :wikitext( table.concat( items, &amp;#039;,&amp;#039;, 2 ) )&lt;br /&gt;
            :done()&lt;br /&gt;
&lt;br /&gt;
    local div2 = mw.html.create( &amp;#039;div&amp;#039; )&lt;br /&gt;
        :addClass( &amp;#039;GEdatachart&amp;#039; )&lt;br /&gt;
&lt;br /&gt;
    if args.size == &amp;#039;small&amp;#039; then&lt;br /&gt;
        div2&lt;br /&gt;
            :addClass( &amp;#039;smallChart&amp;#039; )&lt;br /&gt;
            :css( {&lt;br /&gt;
                width = &amp;#039;258px&amp;#039;,&lt;br /&gt;
                height = &amp;#039;160px&amp;#039;,&lt;br /&gt;
                margin = &amp;#039;0 auto&amp;#039;&lt;br /&gt;
            } )&lt;br /&gt;
    else&lt;br /&gt;
        div2&lt;br /&gt;
            :css( {&lt;br /&gt;
                margin = &amp;#039;5px 0 25px 0&amp;#039;,&lt;br /&gt;
                height = &amp;#039;500px&amp;#039;,&lt;br /&gt;
                [&amp;#039;min-width&amp;#039;] = &amp;#039;600px&amp;#039;&lt;br /&gt;
            } )&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    div2&lt;br /&gt;
        :tag( &amp;#039;div&amp;#039; )&lt;br /&gt;
            :css( {&lt;br /&gt;
				[&amp;#039;text-align&amp;#039;] = &amp;#039;center&amp;#039;,&lt;br /&gt;
				[&amp;#039;font-size&amp;#039;] = &amp;#039;.9em&amp;#039;,&lt;br /&gt;
				opacity = &amp;#039;.75&amp;#039;,&lt;br /&gt;
				[&amp;#039;user-select&amp;#039;] = &amp;#039;none&amp;#039;&lt;br /&gt;
            } )&lt;br /&gt;
            :wikitext( &amp;#039;Loading...&amp;#039; )&lt;br /&gt;
            :done()&lt;br /&gt;
        :done()&lt;br /&gt;
&lt;br /&gt;
    div&lt;br /&gt;
        :node( div2 )&lt;br /&gt;
&lt;br /&gt;
    div&lt;br /&gt;
        :wikitext( p._main{items[1], size=&amp;#039;data&amp;#039;} )&lt;br /&gt;
        :done()&lt;br /&gt;
&lt;br /&gt;
    return tostring( div )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
-- {{GEChart}}&lt;br /&gt;
--&lt;br /&gt;
function p.chart( frame )&lt;br /&gt;
    local args = frame:getParent().args&lt;br /&gt;
    return p._chart(args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
-- {{GEData}}&lt;br /&gt;
--&lt;br /&gt;
-- A stripped down version of ExcgData&lt;br /&gt;
-- Intended for more general usage and avoiding stuff specific to Exchange /Data pages&lt;br /&gt;
--&lt;br /&gt;
function p.data( frame )&lt;br /&gt;
    local args = frame:getParent().args&lt;br /&gt;
    return p._main( args )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
-- {{ExcgData}}&lt;br /&gt;
--&lt;br /&gt;
function p.main( frame )&lt;br /&gt;
    local args = frame:getParent().args&lt;br /&gt;
    -- get title parts, as the exchange ns doesn&amp;#039;t actually have subpages enabled&lt;br /&gt;
    local title = mw.title.getCurrentTitle()&lt;br /&gt;
    local parts = mw.text.split( title.text, &amp;#039;/&amp;#039; )&lt;br /&gt;
    local ns, base, sub = title.nsText, parts[1], parts[2]&lt;br /&gt;
&lt;br /&gt;
    -- it&amp;#039;ll throw an error later if this isn&amp;#039;t supplied&lt;br /&gt;
    -- so default to an empty string for now&lt;br /&gt;
    local item = args.name or args[1] or &amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
    local div1, cats = &amp;#039;&amp;#039;, &amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
    -- fake &amp;quot;back to main page&amp;quot; link&lt;br /&gt;
    if sub == &amp;#039;Data&amp;#039; and ns == &amp;#039;Exchange&amp;#039; then&lt;br /&gt;
        div1 = mw.html.create( &amp;#039;div&amp;#039; )&lt;br /&gt;
            :attr( &amp;#039;id&amp;#039;, &amp;#039;contentSub&amp;#039; )&lt;br /&gt;
            :css( {&lt;br /&gt;
                [&amp;#039;line-height&amp;#039;] = &amp;#039;0.8em&amp;#039;,&lt;br /&gt;
                margin = &amp;#039;-0.75em 0 1.5em 1em&amp;#039;&lt;br /&gt;
            } )&lt;br /&gt;
            :tag( &amp;#039;span&amp;#039; )&lt;br /&gt;
                :addClass( &amp;#039;subpages&amp;#039; )&lt;br /&gt;
                :wikitext( &amp;#039;&amp;amp;lt; [[&amp;#039; .. ns .. &amp;#039;:&amp;#039; .. base .. &amp;#039;]]&amp;#039; )&lt;br /&gt;
                :done()&lt;br /&gt;
            :done()&lt;br /&gt;
        div1 = tostring( div1 )&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    -- categories&lt;br /&gt;
    if sub == &amp;#039;Data&amp;#039; then&lt;br /&gt;
        if ns == &amp;#039;Exchange&amp;#039; then&lt;br /&gt;
            cats = cats .. &amp;#039;[[Category:GEMW data|&amp;#039; .. item .. &amp;#039;]]&amp;#039;&lt;br /&gt;
        elseif mw.ustring.match( item, &amp;#039;Index&amp;#039; ) ~= nil then&lt;br /&gt;
            cats = cats .. &amp;#039;[[Category:GEMW data|*]]&amp;#039;&lt;br /&gt;
        end&lt;br /&gt;
&lt;br /&gt;
        if ns == &amp;#039;Exchange&amp;#039; and item ~= base then&lt;br /&gt;
            cats = cats .. &amp;#039;[[Category:Exchange names that needs checking]]&amp;#039;&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    return div1 .. p._main( args ) .. cats&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Alex</name></author>
	</entry>
</feed>