<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.stiles.casa/index.php?action=history&amp;feed=atom&amp;title=Module%3ATemplateDataGenerator%2Fdoc</id>
	<title>Module:TemplateDataGenerator/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.stiles.casa/index.php?action=history&amp;feed=atom&amp;title=Module%3ATemplateDataGenerator%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.stiles.casa/index.php?title=Module:TemplateDataGenerator/doc&amp;action=history"/>
	<updated>2026-05-07T17:36:41Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.2</generator>
	<entry>
		<id>https://wiki.stiles.casa/index.php?title=Module:TemplateDataGenerator/doc&amp;diff=6475&amp;oldid=prev</id>
		<title>Maxwells: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.stiles.casa/index.php?title=Module:TemplateDataGenerator/doc&amp;diff=6475&amp;oldid=prev"/>
		<updated>2022-06-11T21:07:02Z</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;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 15:07, 11 June 2022&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key wikidb:diff::1.12:old-6474:rev-6475 --&gt;
&lt;/table&gt;</summary>
		<author><name>Maxwells</name></author>
	</entry>
	<entry>
		<id>https://wiki.stiles.casa/index.php?title=Module:TemplateDataGenerator/doc&amp;diff=6474&amp;oldid=prev</id>
		<title>en&gt;Pppery: Attempt to fix</title>
		<link rel="alternate" type="text/html" href="https://wiki.stiles.casa/index.php?title=Module:TemplateDataGenerator/doc&amp;diff=6474&amp;oldid=prev"/>
		<updated>2019-02-24T04:22:21Z</updated>

		<summary type="html">&lt;p&gt;Attempt to fix&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;&amp;lt;code&amp;gt;Module:TemplateDataGenerator&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039; – Module for generation of a skeleton for TemplateData from the parameter usage within template programming.&lt;br /&gt;
	&lt;br /&gt;
== From wikitext ==&lt;br /&gt;
; f&lt;br /&gt;
: Trigger analysis of template around (base page).&lt;br /&gt;
:* No parameters on &amp;lt;code&amp;gt;#invoke&amp;lt;/code&amp;gt;.&lt;br /&gt;
:* Yields block to be inserted by copy&amp;amp;paste.&lt;br /&gt;
&lt;br /&gt;
=== Template wrapping ===&lt;br /&gt;
The module is supposed to be wrapped for convenience into something like a template&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{#invoke:TemplateDataGenerator|f}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 Documentation&lt;br /&gt;
That template may be transcluded with one parameter: &amp;#039;&amp;#039;&amp;#039;sort&amp;#039;&amp;#039;&amp;#039; alias&amp;amp;nbsp;&amp;#039;&amp;#039;&amp;#039;1&amp;#039;&amp;#039;&amp;#039;&amp;amp;nbsp;– if that is provided with the value &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt;, parameter list will be sorted in alphabetical order.&lt;br /&gt;
&lt;br /&gt;
=== Productive usage ===&lt;br /&gt;
When editing a template (documentation) page, users are supposed to insert the following line, where TemplateData shall appear:&lt;br /&gt;
 &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{subst:#invoke:TemplateDataGenerator|f}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
After click on [Preview], the generated lines are displayed and can be inserted by copy &amp;amp; paste to replace the temporary transclusion.&lt;br /&gt;
&lt;br /&gt;
If forgotten to remove on saving, &amp;lt;code&amp;gt;subst&amp;lt;/code&amp;gt; comes into effect and the plain lines are stored into source text. Next time someone will do the cleanup.&lt;br /&gt;
&lt;br /&gt;
== Functions for Lua modules ==&lt;br /&gt;
; getBlock( about, ahead, alphabetical )&lt;br /&gt;
: Trigger analysis of template like &amp;#039;&amp;#039;&amp;#039;f&amp;#039;&amp;#039;&amp;#039; but from Lua call.&lt;br /&gt;
:* &amp;#039;&amp;#039;about&amp;#039;&amp;#039; – string; page title related to template code on base page&lt;br /&gt;
:* &amp;#039;&amp;#039;ahead&amp;#039;&amp;#039; – string, number or nil; namespace (Template:)&lt;br /&gt;
:* &amp;#039;&amp;#039;alphabetical&amp;#039;&amp;#039; – boolean or nil; sort parameter list&lt;/div&gt;</summary>
		<author><name>en&gt;Pppery</name></author>
	</entry>
</feed>