<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://2d4chan.org/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Widget%3AArticleSpawner%2Fdoc</id>
	<title>Widget:ArticleSpawner/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://2d4chan.org/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Widget%3AArticleSpawner%2Fdoc"/>
	<link rel="alternate" type="text/html" href="http://2d4chan.org/mediawiki/index.php?title=Widget:ArticleSpawner/doc&amp;action=history"/>
	<updated>2026-05-06T21:21:55Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>http://2d4chan.org/mediawiki/index.php?title=Widget:ArticleSpawner/doc&amp;diff=1003081&amp;oldid=prev</id>
		<title>2d4fag: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="http://2d4chan.org/mediawiki/index.php?title=Widget:ArticleSpawner/doc&amp;diff=1003081&amp;oldid=prev"/>
		<updated>2025-02-14T01:38:45Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 01:38, 14 February 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>2d4fag</name></author>
	</entry>
	<entry>
		<id>http://2d4chan.org/mediawiki/index.php?title=Widget:ArticleSpawner/doc&amp;diff=1003080&amp;oldid=prev</id>
		<title>PathfinderWiki&gt;Oznogon: Tweak</title>
		<link rel="alternate" type="text/html" href="http://2d4chan.org/mediawiki/index.php?title=Widget:ArticleSpawner/doc&amp;diff=1003080&amp;oldid=prev"/>
		<updated>2017-07-07T04:25:32Z</updated>

		<summary type="html">&lt;p&gt;Tweak&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;[[Widget:ArticleSpawner|&amp;lt;nowiki&amp;gt;{{#widget: ArticleSpawner}}&amp;lt;/nowiki&amp;gt;]]&amp;#039;&amp;#039;&amp;#039; creates a form or button that preloads wikitext from [[:Category:preload templates|preload templates]] into the edit window of a new page, and populates the preload template with custom content. This extends (and potentially replaces) the functionality of the [[mediawikiwiki:InputBox|InputBox]]-driven {{tl|ArticleSpawner}} template.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{#widget: ArticleSpawner&lt;br /&gt;
| type      = &lt;br /&gt;
| summary   = &lt;br /&gt;
| title     = &lt;br /&gt;
| showtitle = &lt;br /&gt;
&lt;br /&gt;
| param.A Key       = &lt;br /&gt;
| param.Another Key = &lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
| hiddenparam = &lt;br /&gt;
| hiddenparam =&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
| submit = &lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
All fields are optional.&lt;br /&gt;
&lt;br /&gt;
; type &amp;#039;&amp;#039;(optional)&amp;#039;&amp;#039;: Hidden parameter that defines the preload templates to load into the edit window and content above it. Default is blank.&lt;br /&gt;
:: See {{tl|ArticleSpawner/doc}} for details on PathfinderWiki preload templates and content.&lt;br /&gt;
; summary &amp;#039;&amp;#039;(optional)&amp;#039;&amp;#039;: Hidden parameter that sets the text to preload in the editing tool&amp;#039;s summary field. Default is blank.&lt;br /&gt;
; title &amp;#039;&amp;#039;(optional)&amp;#039;&amp;#039;: Name of the article to edit or create. Default is blank.&lt;br /&gt;
:: If you enter a &amp;#039;&amp;#039;&amp;#039;title&amp;#039;&amp;#039;&amp;#039; value and &amp;#039;&amp;#039;&amp;#039;showtitle&amp;#039;&amp;#039;&amp;#039; is not passed, this parameter&amp;#039;s value fills the ArticleSpawner form&amp;#039;s &amp;quot;Article Title&amp;quot; field.&lt;br /&gt;
:: If you enter a &amp;#039;&amp;#039;&amp;#039;title&amp;#039;&amp;#039;&amp;#039; value and &amp;#039;&amp;#039;&amp;#039;showtitle&amp;#039;&amp;#039;&amp;#039; is {{xt|no}}, the value is passed as a hidden parameter; there&amp;#039;s no Article Title field, and clicking Submit creates the article using this value as the title.&lt;br /&gt;
; showtitle &amp;#039;&amp;#039;(optional)&amp;#039;&amp;#039;: If {{xt|no}}, hides the Article Title field. Set to {{xt|no}} to create a standalone ArticleSpawner button.&lt;br /&gt;
; param.(key name) &amp;#039;&amp;#039;(optional; can declare multiple times)&amp;#039;&amp;#039;: Creates a form field with the {{xt|(key name)}} as the field&amp;#039;s label and fills the field with the parameter&amp;#039;s value. The value can be blank; if you don&amp;#039;t pass a key name, it defaults to an integer.&lt;br /&gt;
:: All &amp;#039;&amp;#039;&amp;#039;param&amp;#039;&amp;#039;&amp;#039;s are declared in the order you pass them, but before any &amp;#039;&amp;#039;&amp;#039;hiddenparams&amp;#039;&amp;#039;&amp;#039; regardless of the order they appear in the template&amp;amp;mdash;this is important as the preload template applies values in sequential order, so {{xt|$1}} on the preload template is the first &amp;#039;&amp;#039;&amp;#039;param&amp;#039;&amp;#039;&amp;#039; declared in the widget, {{xt|$2}} is the second, etc., and then the first &amp;#039;&amp;#039;&amp;#039;hiddenparam&amp;#039;&amp;#039;&amp;#039; declared in the widget follows in the preload template&amp;#039;s numeric sequence.&lt;br /&gt;
; hiddenparam &amp;#039;&amp;#039;(optional; can declare multiple times)&amp;#039;&amp;#039;: Passes a value as a preload parameter without creating a form field.&lt;br /&gt;
; submit &amp;#039;&amp;#039;(optional)&amp;#039;&amp;#039;: Changes the text that appears on the submit button. Default is {{xt|submit}}.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
=== No parameters ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{#widget: ArticleSpawner}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{#widget: ArticleSpawner}}&lt;br /&gt;
&lt;br /&gt;
An ArticleSpawner widget with no parameters displays an Article Title field and Submit button; filling the field and clicking submit is equivalent to clicking a link for an article with the same title.&lt;br /&gt;
&lt;br /&gt;
=== Basic parameters ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{#widget: ArticleSpawner&lt;br /&gt;
| title     = Squealy Nord&lt;br /&gt;
| submit    = Create an article&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{#widget: ArticleSpawner&lt;br /&gt;
| title     = Squealy Nord&lt;br /&gt;
| submit    = Create an article&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
You can fill the Article Title field and Submit button with custom text. Note that the user can still edit the title.&lt;br /&gt;
&lt;br /&gt;
=== Button with no fields ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{#widget: ArticleSpawner&lt;br /&gt;
| title     = Squealy Nord&lt;br /&gt;
| showtitle = no&lt;br /&gt;
| submit    = Create the &amp;quot;Squealy Nord&amp;quot; article now!&lt;br /&gt;
| summary   = Finally created the Squealy Nord article&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{#widget: ArticleSpawner&lt;br /&gt;
| title     = Squealy Nord&lt;br /&gt;
| showtitle = no&lt;br /&gt;
| submit    = Create the &amp;quot;Squealy Nord&amp;quot; article now!&lt;br /&gt;
| summary   = Finally created the Squealy Nord article&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
This button creates an article using [[Squealy Nord]] as the tile, and fills in the edit summary.&lt;br /&gt;
&lt;br /&gt;
=== Preload template ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{#widget: ArticleSpawner&lt;br /&gt;
| type    = Biography&lt;br /&gt;
| summary = New real-world person article&lt;br /&gt;
| submit  = New biography&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{#widget: ArticleSpawner&lt;br /&gt;
| type    = Biography&lt;br /&gt;
| summary = New real-world person article&lt;br /&gt;
| submit  = New biography&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
When the user fills in a title and clicks the &amp;quot;New biography&amp;quot; button, it takes them to the article page, applies the {{tl|ArticleSpawner/Biography}} preload template to the edit box, and displays the {{tl|ArticleSpawner/Biography/doc}} content above the edit box.&lt;br /&gt;
&lt;br /&gt;
=== Parameterized preload template ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{#widget: ArticleSpawner&lt;br /&gt;
| type        = Biography&lt;br /&gt;
| summary     = New real-world freelancer article&lt;br /&gt;
&lt;br /&gt;
| param.Name          = &lt;br /&gt;
| param.Navbox target = freelance&lt;br /&gt;
| param.Role category = [[Category:Authors]]&lt;br /&gt;
&lt;br /&gt;
| hiddenparam = [[Category:Freelance contributors]]&lt;br /&gt;
| hiddenparam = Freelancer&lt;br /&gt;
&lt;br /&gt;
| submit = New biography&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{#widget: ArticleSpawner&lt;br /&gt;
| type        = Biography&lt;br /&gt;
| summary     = New real-world freelancer article&lt;br /&gt;
&lt;br /&gt;
| param.Name          = &lt;br /&gt;
| param.Navbox target = freelance&lt;br /&gt;
| param.Role category = [[Category:Authors]]&lt;br /&gt;
&lt;br /&gt;
| hiddenparam = [[Category:Freelance contributors]]&lt;br /&gt;
| hiddenparam = Freelancer&lt;br /&gt;
&lt;br /&gt;
| submit = Freelancer biography&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
For preload templates with preload parameters ({{xt|$1}}, {{xt|$2}}, {{xt|$3}}, etc.), clicking the &amp;quot;Freelancer biography&amp;quot; button opens the article page, preloads the {{tl|ArticleSpawner/Biography}} template and fills the preload parameters with the &amp;#039;&amp;#039;&amp;#039;param&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;hiddenparam&amp;#039;&amp;#039;&amp;#039; values in order (&amp;#039;&amp;#039;&amp;#039;param.Name&amp;#039;&amp;#039;&amp;#039; replaces {{xt|$1}}, &amp;#039;&amp;#039;&amp;#039;param.Navbox target&amp;#039;&amp;#039;&amp;#039; replaces {{xt|$2}}, &amp;#039;&amp;#039;&amp;#039;param.Role category&amp;#039;&amp;#039;&amp;#039; replaces {{xt|$3}}, the first &amp;#039;&amp;#039;&amp;#039;hiddenparam&amp;#039;&amp;#039;&amp;#039; replaces {{xt|$4}}, etc.), and displays the {{tl|ArticleSpawner/Biography/doc}} content above the edit box.&lt;br /&gt;
&lt;br /&gt;
Note that if the &amp;#039;&amp;#039;&amp;#039;hiddenparam&amp;#039;&amp;#039;&amp;#039;s were placed before the &amp;#039;&amp;#039;&amp;#039;param&amp;#039;&amp;#039;&amp;#039;s, they would &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;not&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; be applied before the &amp;#039;&amp;#039;&amp;#039;param&amp;#039;&amp;#039;&amp;#039;s. The widget processes all &amp;#039;&amp;#039;&amp;#039;param&amp;#039;&amp;#039;&amp;#039;s in order first, &amp;#039;&amp;#039;then&amp;#039;&amp;#039; all &amp;#039;&amp;#039;&amp;#039;hiddenparam&amp;#039;&amp;#039;&amp;#039;s in order.&lt;br /&gt;
&lt;br /&gt;
== TODO ==&lt;br /&gt;
&lt;br /&gt;
* Handle labels more semantically.&lt;br /&gt;
* Allow for dropdown options.&lt;br /&gt;
* Provide field validation options.&lt;br /&gt;
* Relax param/hiddenparam ordering.&lt;/div&gt;</summary>
		<author><name>PathfinderWiki&gt;Oznogon</name></author>
	</entry>
</feed>