<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mywikibiz.com/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://mywikibiz.com/index.php?action=history&amp;feed=atom&amp;title=Module%3ATemplateDataGenerator%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Module:TemplateDataGenerator/doc&amp;action=history"/>
	<updated>2026-07-14T21:46:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.3</generator>
	<entry>
		<id>https://mywikibiz.com/index.php?title=Module:TemplateDataGenerator/doc&amp;diff=479726&amp;oldid=prev</id>
		<title>Zoran: Pywikibot 6.4.0</title>
		<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Module:TemplateDataGenerator/doc&amp;diff=479726&amp;oldid=prev"/>
		<updated>2021-07-16T07:35:10Z</updated>

		<summary type="html">&lt;p&gt;Pywikibot 6.4.0&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''&amp;lt;code&amp;gt;Module:TemplateDataGenerator&amp;lt;/code&amp;gt;''' – 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: '''sort''' alias&amp;amp;nbsp;'''1'''&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 '''f''' but from Lua call.&lt;br /&gt;
:* ''about'' – string; page title related to template code on base page&lt;br /&gt;
:* ''ahead'' – string, number or nil; namespace (Template:)&lt;br /&gt;
:* ''alphabetical'' – boolean or nil; sort parameter list&lt;/div&gt;</summary>
		<author><name>Zoran</name></author>
	</entry>
</feed>