<?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=MediaWiki%3AGadget-newPage.js</id>
	<title>MediaWiki:Gadget-newPage.js - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.runerealm.org/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3AGadget-newPage.js"/>
	<link rel="alternate" type="text/html" href="https://wiki.runerealm.org/index.php?title=MediaWiki:Gadget-newPage.js&amp;action=history"/>
	<updated>2026-04-20T14:25:31Z</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=MediaWiki:Gadget-newPage.js&amp;diff=39073&amp;oldid=prev</id>
		<title>Alex at 16:15, 17 October 2024</title>
		<link rel="alternate" type="text/html" href="https://wiki.runerealm.org/index.php?title=MediaWiki:Gadget-newPage.js&amp;diff=39073&amp;oldid=prev"/>
		<updated>2024-10-17T16:15:17Z</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 18:15, 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 11:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 11:&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;			var page = pagenameInput.getValue();&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;			var page = pagenameInput.getValue();&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 (page == &#039;&#039;) return;&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 (page == &#039;&#039;) return;&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;			var url = &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;mw.&lt;/del&gt;mw.util.getUrl(page, {action: &#039;edit&#039;});&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;			var url = mw.util.getUrl(page, {action: &#039;edit&#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;			window.location.assign(url);&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;			window.location.assign(url);&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;!-- diff cache key mediawiki:diff:1.41:old-34638:rev-39073: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=MediaWiki:Gadget-newPage.js&amp;diff=34638&amp;oldid=prev</id>
		<title>Alex at 23:10, 16 October 2024</title>
		<link rel="alternate" type="text/html" href="https://wiki.runerealm.org/index.php?title=MediaWiki:Gadget-newPage.js&amp;diff=34638&amp;oldid=prev"/>
		<updated>2024-10-16T23:10:29Z</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:10, 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 11:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 11:&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;			var page = pagenameInput.getValue();&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;			var page = pagenameInput.getValue();&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 (page == &#039;&#039;) return;&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 (page == &#039;&#039;) return;&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;			var url = mw.util.getUrl(page, {action: &#039;edit&#039;});&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;			var url = &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;mw.&lt;/ins&gt;mw.util.getUrl(page, {action: &#039;edit&#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;			window.location.assign(url);&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;			window.location.assign(url);&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;!-- diff cache key mediawiki:diff:1.41:old-909:rev-34638: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=MediaWiki:Gadget-newPage.js&amp;diff=909&amp;oldid=prev</id>
		<title>Alex: Created page with &quot;$(function () { 	var $button, $window; 	 	function createWindow(modal){ 		modal.content =  new OO.ui.PanelLayout({ padded: true, expanded: false }); 		var pagenameInput = new OO.ui.TextInputWidget({placeholder: &#039;Full page name including namespace&#039;, type: &#039;text&#039;, id: &#039;gadget-newpage-pagename&#039;}); 		var submitButton = new OO.ui.ButtonInputWidget({ label: &#039;Create&#039;, flags: [&#039;primary&#039;, &#039;progressive&#039;]}); 		var cancelButton = new OO.ui.ButtonInputWidget({ label: &#039;Cancel&#039;, flags:...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.runerealm.org/index.php?title=MediaWiki:Gadget-newPage.js&amp;diff=909&amp;oldid=prev"/>
		<updated>2024-10-13T00:57:26Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;$(function () { 	var $button, $window; 	 	function createWindow(modal){ 		modal.content =  new OO.ui.PanelLayout({ padded: true, expanded: false }); 		var pagenameInput = new OO.ui.TextInputWidget({placeholder: &amp;#039;Full page name including namespace&amp;#039;, type: &amp;#039;text&amp;#039;, id: &amp;#039;gadget-newpage-pagename&amp;#039;}); 		var submitButton = new OO.ui.ButtonInputWidget({ label: &amp;#039;Create&amp;#039;, flags: [&amp;#039;primary&amp;#039;, &amp;#039;progressive&amp;#039;]}); 		var cancelButton = new OO.ui.ButtonInputWidget({ label: &amp;#039;Cancel&amp;#039;, flags:...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;$(function () {&lt;br /&gt;
	var $button, $window;&lt;br /&gt;
	&lt;br /&gt;
	function createWindow(modal){&lt;br /&gt;
		modal.content =  new OO.ui.PanelLayout({ padded: true, expanded: false });&lt;br /&gt;
		var pagenameInput = new OO.ui.TextInputWidget({placeholder: &amp;#039;Full page name including namespace&amp;#039;, type: &amp;#039;text&amp;#039;, id: &amp;#039;gadget-newpage-pagename&amp;#039;});&lt;br /&gt;
		var submitButton = new OO.ui.ButtonInputWidget({ label: &amp;#039;Create&amp;#039;, flags: [&amp;#039;primary&amp;#039;, &amp;#039;progressive&amp;#039;]});&lt;br /&gt;
		var cancelButton = new OO.ui.ButtonInputWidget({ label: &amp;#039;Cancel&amp;#039;, flags: &amp;#039;destructive&amp;#039;});&lt;br /&gt;
		&lt;br /&gt;
		var submitAction = function(modal) {&lt;br /&gt;
			var page = pagenameInput.getValue();&lt;br /&gt;
			if (page == &amp;#039;&amp;#039;) return;&lt;br /&gt;
			var url = mw.util.getUrl(page, {action: &amp;#039;edit&amp;#039;});&lt;br /&gt;
			window.location.assign(url);&lt;br /&gt;
		};&lt;br /&gt;
		&lt;br /&gt;
		submitButton.on(&amp;#039;click&amp;#039;, submitAction);&lt;br /&gt;
		pagenameInput.on(&amp;#039;enter&amp;#039;, submitAction);&lt;br /&gt;
		&lt;br /&gt;
		cancelButton.on(&amp;#039;click&amp;#039;, function(modal){window.OOUIWindowManager.closeWindow(modal);}, [modal]);&lt;br /&gt;
		&lt;br /&gt;
		var fieldset = new OO.ui.FieldsetLayout({});&lt;br /&gt;
		fieldset.addItems([&lt;br /&gt;
			new OO.ui.FieldLayout(pagenameInput, { label: &amp;#039;Page name&amp;#039;, help: &amp;#039;Full page name of the page to created, including namespace&amp;#039; })&lt;br /&gt;
		]);&lt;br /&gt;
		modal.content.$element.append(fieldset.$element, &amp;#039;&amp;lt;br&amp;gt;&amp;#039;, cancelButton.$element, submitButton.$element);&lt;br /&gt;
		modal.$body.append(modal.content.$element);&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
	function openWindow(e){&lt;br /&gt;
		e.preventDefault();&lt;br /&gt;
		if ($window == undefined) {&lt;br /&gt;
			rswiki.createOOUIWindow(&amp;#039;gadget-newpage-window&amp;#039;, &amp;#039;Create new page&amp;#039;, {}, createWindow, true).then(function(w){&lt;br /&gt;
				$window = w;&lt;br /&gt;
			});&lt;br /&gt;
		} else {&lt;br /&gt;
			window.OOUIWindowManager.openWindow(&amp;#039;gadget-newpage-window&amp;#039;);&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
	function init(){&lt;br /&gt;
		$button = $(&amp;#039;&amp;lt;li&amp;gt;&amp;#039;).attr(&amp;#039;id&amp;#039;, &amp;#039;t-gadget-newpage&amp;#039;).append($(&amp;#039;&amp;lt;a&amp;gt;&amp;#039;).attr(&amp;#039;href&amp;#039;, &amp;#039;#&amp;#039;).text(&amp;#039;Make new page&amp;#039;));&lt;br /&gt;
		&lt;br /&gt;
		$button.click(openWindow);&lt;br /&gt;
		&lt;br /&gt;
		$(&amp;#039;#p-tb .vector-menu-content ul&amp;#039;).append($button);&lt;br /&gt;
	}&lt;br /&gt;
	init();&lt;br /&gt;
})&lt;/div&gt;</summary>
		<author><name>Alex</name></author>
	</entry>
</feed>