<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.returnofreckoning.com/index.php?action=history&amp;feed=atom&amp;title=API%3APageWindowAddSplitableWindow</id>
	<title>API:PageWindowAddSplitableWindow - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.returnofreckoning.com/index.php?action=history&amp;feed=atom&amp;title=API%3APageWindowAddSplitableWindow"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:PageWindowAddSplitableWindow&amp;action=history"/>
	<updated>2026-10-18T08:56:34Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.returnofreckoning.com/index.php?title=API:PageWindowAddSplitableWindow&amp;diff=30621&amp;oldid=prev</id>
		<title>Maintenance script: UI Lua API import (WAR 1.4.8)</title>
		<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:PageWindowAddSplitableWindow&amp;diff=30621&amp;oldid=prev"/>
		<updated>2026-10-16T19:47:28Z</updated>

		<summary type="html">&lt;p&gt;UI Lua API import (WAR 1.4.8)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{LuaApi|group=PageWindow}}&lt;br /&gt;
Adds a window to a PageWindow&amp;#039;s list of splitable windows.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
PageWindowAddSplitableWindow(pageWindowName, windowName)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
;pageWindowName : &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; – Name of the PageWindow.&lt;br /&gt;
;windowName : &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; – Name of a window inside the PageWindow&amp;#039;s content.&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Nothing.&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* The window is added to the PageWindow&amp;#039;s splitable-window list. Nothing is laid out by this call; the list is used by [[API:PageWindowUpdatePages|PageWindowUpdatePages]].&lt;br /&gt;
* During layout, a window that starts on a page but runs past its bottom is normally moved to the next page. A window in this list is not moved. Instead the client creates a second window named &amp;#039;&amp;#039;windowName&amp;#039;&amp;#039;&amp;lt;code&amp;gt;_pgbrk&amp;lt;/code&amp;gt; from the same definition and with the same size, and lays it out as well.&lt;br /&gt;
* If &amp;lt;code&amp;gt;windowName&amp;lt;/code&amp;gt; does not exist, the call does nothing. No error is raised for it.&lt;br /&gt;
* A window that is already in the list is not added a second time.&lt;br /&gt;
* The stock UI never calls this function.&lt;br /&gt;
* The function needs at least two arguments and only reads the last two. Any extra arguments placed in front of them are ignored.&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
* &amp;lt;code&amp;gt;Error in function call &amp;#039;PageWindowAddSplitableWindow&amp;#039;: Window %s does not exist&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;Error in function call &amp;#039;PageWindowAddSplitableWindow&amp;#039;: Window %s is not a PageWindow&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
A minimal example built from the signature:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
PageWindowAddSplitableWindow( &amp;quot;MyBookPageWindow&amp;quot;, &amp;quot;MyBookBigImage&amp;quot; )&lt;br /&gt;
PageWindowUpdatePages( &amp;quot;MyBookPageWindow&amp;quot; )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:PageWindowRemoveSplitableWindow|PageWindowRemoveSplitableWindow]]&lt;br /&gt;
* [[API:PageWindowClearSplitableWindows|PageWindowClearSplitableWindows]]&lt;br /&gt;
* [[API:PageWindowUpdatePages|PageWindowUpdatePages]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>