<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://htyp.org/mw/index.php?action=history&amp;feed=atom&amp;title=User%3AWoozle%2FMoreBoxes</id>
	<title>User:Woozle/MoreBoxes - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://htyp.org/mw/index.php?action=history&amp;feed=atom&amp;title=User%3AWoozle%2FMoreBoxes"/>
	<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=User:Woozle/MoreBoxes&amp;action=history"/>
	<updated>2026-09-27T20:45:56Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://htyp.org/mw/index.php?title=User:Woozle/MoreBoxes&amp;diff=15772&amp;oldid=prev</id>
		<title>Woozle: example usage</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=User:Woozle/MoreBoxes&amp;diff=15772&amp;oldid=prev"/>
		<updated>2011-08-26T19:01:24Z</updated>

		<summary type="html">&lt;p&gt;example usage&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:01, 26 August 2011&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-l5&quot;&gt;Line 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&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;==About==&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;==About==&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;&amp;#039;&amp;#039;&amp;#039;MoreBoxes&amp;#039;&amp;#039;&amp;#039; is a quick extension to allow adding additional dynamic content to a MediaWiki skin. I originally created it so I could add [[MediaWiki/Flattr|Flattr]] and [[Kachingle]] buttons to [[Issuepedia]], but discontinued that after a few months; I am not currently using the extension, so I don&amp;#039;t know if it works with more recent MediaWiki versions. (It&amp;#039;s simple enough, though, so it should.)&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;&amp;#039;&amp;#039;&amp;#039;MoreBoxes&amp;#039;&amp;#039;&amp;#039; is a quick extension to allow adding additional dynamic content to a MediaWiki skin. I originally created it so I could add [[MediaWiki/Flattr|Flattr]] and [[Kachingle]] buttons to [[Issuepedia]], but discontinued that after a few months; I am not currently using the extension, so I don&amp;#039;t know if it works with more recent MediaWiki versions. (It&amp;#039;s simple enough, though, so it should.)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;==Example Usage==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;...where $txtHdr is already defined (see [[MediaWiki/Flattr]] for an example):&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;php&amp;gt;$wxgMoreBoxes = array (&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    &#039;head&#039; =&amp;gt; array (&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;      array (&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	&#039;html&#039; =&amp;gt; $txtHdr&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;      )&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    ),&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    &#039;foot&#039; =&amp;gt; array (	// &quot;foot&quot; to put it in the footer, &quot;side&quot; to put it in the control sidebar&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;      array (&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	&#039;title&#039;	=&amp;gt; &#039;support free sites&#039;,&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	&#039;html&#039;	=&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	  &#039;&amp;lt;table&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&#039;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	  .&quot;&amp;lt;!-- BEGIN KACHINGLE MEDALLION --&amp;gt;&amp;lt;script type=\&quot;text/javascript\&quot;&amp;gt;if (!window.kachingle_loaded) {var _protocol = &#039;http&#039;+(window.location.protocol == &#039;https:&#039; ? &#039;s&#039; : &#039;&#039;);document.writeln(unescape(\&quot;%3Cscript type=&#039;text/javascript&#039; src=&#039;\&quot;+_protocol+\&quot;://medallion.kachingle.com/kachingle_controls_revb.js&#039;&amp;gt;%3C/script&amp;gt;\&quot;));}&amp;lt;/script&amp;gt;&amp;lt;div class=&#039;kmedallioncontainer&#039; style=&#039;height:74px;&#039;&amp;gt;&amp;lt;iframe site=&#039;1376&#039; stylename=&#039;wide&#039; style=&#039;display:none;&#039; allowtransparency=&#039;true&#039; scrolling=&#039;no&#039; frameborder=&#039;0&#039;&amp;gt;Upgrade your browser to support the sites you love with &amp;lt;a href=&quot;.&#039;&quot;http://www.kachingle.com/&quot;&amp;gt;Kachingle&amp;lt;/a&amp;gt;!&amp;lt;/iframe&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;!-- END KACHINGLE MEDALLION --&amp;gt;&#039;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	  .&#039;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&#039;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	  .&#039;&amp;lt;a class=&quot;FlattrButton&quot; style=&quot;display:none;&quot; href=&quot;http://issuepedia.org&quot;&amp;gt;&amp;lt;/a&amp;gt;&#039;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	  .&#039;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;&#039;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;      )&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    ),&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;  );&amp;lt;/php&amp;gt;&lt;/ins&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;==Code==&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;==Code==&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;&amp;lt;php&amp;gt;&amp;lt;?php&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;&amp;lt;php&amp;gt;&amp;lt;?php&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Woozle</name></author>
	</entry>
	<entry>
		<id>https://htyp.org/mw/index.php?title=User:Woozle/MoreBoxes&amp;diff=15762&amp;oldid=prev</id>
		<title>Woozle: Created page with &quot;&lt;hide&gt; page type::article thing type::MediaWiki extension &lt;/hide&gt; ==About== &#039;&#039;&#039;MoreBoxes&#039;&#039;&#039; is a quick extension to allow adding additional dynamic content to a MediaWiki...&quot;</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=User:Woozle/MoreBoxes&amp;diff=15762&amp;oldid=prev"/>
		<updated>2011-08-24T13:42:06Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;hide&amp;gt; &lt;a href=&quot;/mw/index.php?title=page_type::article&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;page type::article (page does not exist)&quot;&gt;page type::article&lt;/a&gt; &lt;a href=&quot;/mw/index.php?title=thing_type::MediaWiki_extension&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;thing type::MediaWiki extension (page does not exist)&quot;&gt;thing type::MediaWiki extension&lt;/a&gt; &amp;lt;/hide&amp;gt; ==About== &amp;#039;&amp;#039;&amp;#039;MoreBoxes&amp;#039;&amp;#039;&amp;#039; is a quick extension to allow adding additional dynamic content to a MediaWiki...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;hide&amp;gt;&lt;br /&gt;
[[page type::article]]&lt;br /&gt;
[[thing type::MediaWiki extension]]&lt;br /&gt;
&amp;lt;/hide&amp;gt;&lt;br /&gt;
==About==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;MoreBoxes&amp;#039;&amp;#039;&amp;#039; is a quick extension to allow adding additional dynamic content to a MediaWiki skin. I originally created it so I could add [[MediaWiki/Flattr|Flattr]] and [[Kachingle]] buttons to [[Issuepedia]], but discontinued that after a few months; I am not currently using the extension, so I don&amp;#039;t know if it works with more recent MediaWiki versions. (It&amp;#039;s simple enough, though, so it should.)&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;php&amp;gt;&amp;lt;?php&lt;br /&gt;
/*&lt;br /&gt;
  FILE: MoreBoxes.php&lt;br /&gt;
  PURPOSE: Allows admin-configurable arbitrary HTML to be displayed below toolboxes&lt;br /&gt;
  HISTORY:&lt;br /&gt;
    2010-08-13 0.1 First generally-usable version: supports multiple boxes in sidebar; supports footer and header HTML.&lt;br /&gt;
      Need a tag for inserting boxes within wikitext.&lt;br /&gt;
*/&lt;br /&gt;
 &lt;br /&gt;
# Confirm MW environment (huge wrapper)&lt;br /&gt;
if (defined(&amp;#039;MEDIAWIKI&amp;#039;)) {&lt;br /&gt;
&lt;br /&gt;
# Credits&lt;br /&gt;
$wgExtensionCredits[&amp;#039;parserhook&amp;#039;][] = array(&lt;br /&gt;
    &amp;#039;name&amp;#039;=&amp;gt;&amp;#039;MoreBoxes&amp;#039;,&lt;br /&gt;
    &amp;#039;author&amp;#039;=&amp;gt;&amp;#039;Woozle Staddon&amp;#039;,&lt;br /&gt;
    //&amp;#039;url&amp;#039;=&amp;gt;&amp;#039;http://jimbojw.com/wiki/index.php?title=ShareThis&amp;#039;,&lt;br /&gt;
    &amp;#039;description&amp;#039;=&amp;gt;&amp;#039;Allows admin-configurable arbitrary HTML to be displayed below toolboxes&amp;#039;,&lt;br /&gt;
    &amp;#039;version&amp;#039;=&amp;gt;&amp;#039;0.1&amp;#039;&lt;br /&gt;
);&lt;br /&gt;
&lt;br /&gt;
# Add Extension Functions&lt;br /&gt;
$wgExtensionFunctions[] = &amp;#039;wfMoreBoxesExtensionSetup&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
# Sets up the parser hook and global messages&lt;br /&gt;
function wfMoreBoxesExtensionSetup() {&lt;br /&gt;
    global $wgMessageCache; //, $wgParser, $wxgMoreBoxesTitle;&lt;br /&gt;
// start a sequence of one or more toolboxes:&lt;br /&gt;
    $wgMessageCache-&amp;gt;addMessage(&amp;#039;more-boxes-toolbox-escape-html&amp;#039;,&lt;br /&gt;
        &amp;quot;\n\t\t\t&amp;lt;/ul&amp;gt;\n\t\t&amp;lt;/div&amp;gt;\n\t&amp;lt;/div&amp;gt;&amp;quot;&lt;br /&gt;
    );&lt;br /&gt;
// start an individual toolbox:&lt;br /&gt;
    $wgMessageCache-&amp;gt;addMessage(&amp;#039;more-boxes-toolbox-open-html&amp;#039;,&lt;br /&gt;
        &amp;quot;\n\t&amp;lt;div class=\&amp;quot;portlet\&amp;quot; id=\&amp;quot;p-moreboxes-$2\&amp;quot;&amp;gt;&amp;quot;.&lt;br /&gt;
        &amp;quot;\n\t\t&amp;lt;h5&amp;gt;$1&amp;lt;/h5&amp;gt;&amp;quot;.&lt;br /&gt;
        &amp;quot;\n\t\t&amp;lt;div class=\&amp;quot;pBody\&amp;quot;&amp;gt;&amp;quot;&lt;br /&gt;
    );&lt;br /&gt;
// close an individual toolbox:&lt;br /&gt;
    $wgMessageCache-&amp;gt;addMessage(&amp;#039;more-boxes-toolbox-shut-html&amp;#039;,&amp;quot;\n\t&amp;lt;/div&amp;gt;&amp;quot;);&lt;br /&gt;
// finish a sequence of one or more toolboxes - open empty tags for skin code to close, so everything is balanced:&lt;br /&gt;
    $wgMessageCache-&amp;gt;addMessage(&amp;#039;more-boxes-toolbox-return-html&amp;#039;,&amp;quot;\n\t&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt;&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
/**&lt;br /&gt;
 * Parser hook for the &amp;lt;moreboxes /&amp;gt; tag extension.&lt;br /&gt;
 */&lt;br /&gt;
/*&lt;br /&gt;
function wfMoreBoxesParserHook($text, $params, &amp;amp;$parser) {&lt;br /&gt;
&lt;br /&gt;
    global $wgMoreBoxesHTML, $wgTitle, $wgStylePath;&lt;br /&gt;
    &lt;br /&gt;
    $output = $wgMoreBoxesHTML;&lt;br /&gt;
  &lt;br /&gt;
    return $output;&lt;br /&gt;
}&lt;br /&gt;
*/&lt;br /&gt;
# Add hook for Monobook sidebar integration&lt;br /&gt;
$wgHooks[&amp;#039;MonoBookTemplateToolboxEnd&amp;#039;][] = &amp;#039;wxfInsertMoreBoxesSidebar&amp;#039;;&lt;br /&gt;
$wgHooks[&amp;#039;SkinAfterBottomScripts&amp;#039;][] = &amp;#039;wxfInsertMoreBoxesFooter&amp;#039;;&lt;br /&gt;
$wgHooks[&amp;#039;BeforePageDisplay&amp;#039;][] = &amp;#039;wxfInsertMoreBoxesHeader&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
/**&lt;br /&gt;
 * Injects MoreBoxes code into the sidebar (hooks MonoBookTemplateToolboxEnd).&lt;br /&gt;
 * Note: This must be activiated by setting $wgShowMoreBoxesSidebar = true in Localsettings&lt;br /&gt;
 */&lt;br /&gt;
function wxfInsertMoreBoxesSidebar($template) {&lt;br /&gt;
    global $wxgMoreBoxes;&lt;br /&gt;
&lt;br /&gt;
    if (is_array($wxgMoreBoxes)) {&lt;br /&gt;
	if (is_array($wxgMoreBoxes[&amp;#039;side&amp;#039;])) {&lt;br /&gt;
	    $arHere = $wxgMoreBoxes[&amp;#039;side&amp;#039;];&lt;br /&gt;
	    $out = NULL;&lt;br /&gt;
	    # Close out the MonoBook toolbox and create a new &amp;quot;moreboxes&amp;quot; portlet&lt;br /&gt;
	    $out .= wfMsgForContent(&amp;#039;more-boxes-toolbox-escape-html&amp;#039;,nz($box[&amp;#039;title&amp;#039;]));&lt;br /&gt;
	    $idx = 0;&lt;br /&gt;
	    foreach ($arHere as $id =&amp;gt; $box) {&lt;br /&gt;
		$idx++;&lt;br /&gt;
		$strTitle = nz($box[&amp;#039;title&amp;#039;]);&lt;br /&gt;
		$out .= wfMsgForContent(&amp;#039;more-boxes-toolbox-open-html&amp;#039;,$strTitle,$idx);&lt;br /&gt;
		$out .= nz($box[&amp;#039;html&amp;#039;]);&lt;br /&gt;
		$out .= wfMsgForContent(&amp;#039;more-boxes-toolbox-shut-html&amp;#039;);&lt;br /&gt;
	    }&lt;br /&gt;
	    $out .= wfMsgForContent(&amp;#039;more-boxes-toolbox-return-html&amp;#039;);&lt;br /&gt;
	    # Output the code and close the final box:&lt;br /&gt;
	    echo($out);&lt;br /&gt;
	}&lt;br /&gt;
    }&lt;br /&gt;
    return true;&lt;br /&gt;
}&lt;br /&gt;
function wxfInsertMoreBoxesFooter( $skin, &amp;amp;$text ) {&lt;br /&gt;
    global $wxgMoreBoxes;&lt;br /&gt;
&lt;br /&gt;
    if (is_array($wxgMoreBoxes)) {&lt;br /&gt;
	if (is_array($wxgMoreBoxes[&amp;#039;foot&amp;#039;])) {&lt;br /&gt;
	    $arHere = $wxgMoreBoxes[&amp;#039;foot&amp;#039;];&lt;br /&gt;
	    $out = NULL;&lt;br /&gt;
	    foreach ($arHere as $id =&amp;gt; $box) {&lt;br /&gt;
		$out .= nz($box[&amp;#039;html&amp;#039;]);&lt;br /&gt;
	    }&lt;br /&gt;
	    $text .= $out;&lt;br /&gt;
	}&lt;br /&gt;
    }&lt;br /&gt;
    return TRUE;&lt;br /&gt;
}&lt;br /&gt;
function wxfInsertMoreBoxesHeader( &amp;amp;$objOut, &amp;amp;$objSkin ) {&lt;br /&gt;
    global $wxgMoreBoxes;&lt;br /&gt;
&lt;br /&gt;
    if (is_array($wxgMoreBoxes)) {&lt;br /&gt;
	if (is_array(nz($wxgMoreBoxes[&amp;#039;head&amp;#039;]))) {&lt;br /&gt;
	    $out = NULL;&lt;br /&gt;
	    $arHere = $wxgMoreBoxes[&amp;#039;head&amp;#039;];&lt;br /&gt;
	    foreach ($arHere as $id =&amp;gt; $box) {&lt;br /&gt;
		$out .= nz($box[&amp;#039;html&amp;#039;]);&lt;br /&gt;
	    }&lt;br /&gt;
	    $objOut-&amp;gt;addScript($out);&lt;br /&gt;
	}&lt;br /&gt;
    }&lt;br /&gt;
    return TRUE;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
} # Closing MW Environment wrapper&lt;br /&gt;
&amp;lt;/php&amp;gt;&lt;/div&gt;</summary>
		<author><name>Woozle</name></author>
	</entry>
</feed>