<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.miranda-ng.org/index.php?action=history&amp;feed=atom&amp;title=Module%3ATOC%2Fdoc</id>
	<title>Module:TOC/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.miranda-ng.org/index.php?action=history&amp;feed=atom&amp;title=Module%3ATOC%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.miranda-ng.org/index.php?title=Module:TOC/doc&amp;action=history"/>
	<updated>2026-10-17T23:58:32Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.miranda-ng.org/index.php?title=Module:TOC/doc&amp;diff=16373&amp;oldid=prev</id>
		<title>Goraf: -</title>
		<link rel="alternate" type="text/html" href="https://wiki.miranda-ng.org/index.php?title=Module:TOC/doc&amp;diff=16373&amp;oldid=prev"/>
		<updated>2015-07-28T16:46:30Z</updated>

		<summary type="html">&lt;p&gt;-&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This module implements various table of contents (TOC) templates. At the moment, it implements {{tl|TOCyears}} and {{tl|List TOC}}.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
=== Avaiable functions ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! #invoke function&lt;br /&gt;
! Lua function&lt;br /&gt;
! Template&lt;br /&gt;
|-&lt;br /&gt;
| years&lt;br /&gt;
| _years&lt;br /&gt;
| {{tl|TOCyears}}&lt;br /&gt;
|-&lt;br /&gt;
| list&lt;br /&gt;
| _list&lt;br /&gt;
| {{tl|List TOC}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== From wikitext ===&lt;br /&gt;
&lt;br /&gt;
From wikitext this module should usually be used through one of the templates in the table above. However, it is also possible to use it with the following syntax:&lt;br /&gt;
&lt;br /&gt;
 &amp;amp;#123;&amp;amp;#123;#invoke:TOC&amp;amp;#124;&amp;#039;&amp;#039;function&amp;#039;&amp;#039;&amp;amp;#124;&amp;#039;&amp;#039;args&amp;#039;&amp;#039;&amp;amp;#125;&amp;amp;#125;&lt;br /&gt;
&lt;br /&gt;
The function names are listed in the table in the &amp;quot;#invoke function&amp;quot; column, and &amp;lt;var&amp;gt;args&amp;lt;/var&amp;gt; are the arguments that would normally be added by the template. Please see the template documentation for each template for available parameters.&lt;br /&gt;
&lt;br /&gt;
=== From Lua ===&lt;br /&gt;
&lt;br /&gt;
Load the module like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local mTOC = require(&amp;#039;Module:TOC&amp;#039;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can then use the functions with the following syntax:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
mTOC.func(args)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;func&amp;quot; should be changed to one of the Lua function names in the table above. These all start with an underscore (&amp;quot;_&amp;quot;). The &amp;lt;var&amp;gt;args&amp;lt;/var&amp;gt; variable is a table of arguments to be passed to the function. Please see the template documentation for available arguments.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{#ifeq:{{SUBPAGENAME}}|sandbox||&lt;br /&gt;
&amp;lt;!-- Categories go here. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Goraf</name></author>
	</entry>
</feed>