<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.randombell.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AHatnote_list%2Fdoc</id>
	<title>Module:Hatnote list/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.randombell.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AHatnote_list%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.randombell.com/index.php?title=Module:Hatnote_list/doc&amp;action=history"/>
	<updated>2026-04-11T01:51:03Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://wiki.randombell.com/index.php?title=Module:Hatnote_list/doc&amp;diff=2282&amp;oldid=prev</id>
		<title>Randombell: Created page with &quot;&lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --&gt; {{Lua|Module:Format link|Module:Hatnote|Module:Arguments}} == Usage from wikitext == This module is not designed to be used directly from wikitext even though &lt;code&gt;forSee&lt;/code&gt; does take an initial &lt;code&gt;frame&lt;/code&gt; argument and could potentially be used from wikitext, e.g.: *&lt;code&gt;&lt;nowiki&gt;{{hatnote|PREFIX {{#invoke:Hatnote list|forSee|{{...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.randombell.com/index.php?title=Module:Hatnote_list/doc&amp;diff=2282&amp;oldid=prev"/>
		<updated>2025-10-03T16:11:54Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see &lt;a href=&quot;https://en.wikipedia.org/wiki/Wikidata&quot; class=&quot;extiw&quot; title=&quot;wikipedia:Wikidata&quot;&gt;Wikipedia:Wikidata&lt;/a&gt;) --&amp;gt; {{Lua|Module:Format link|Module:Hatnote|Module:Arguments}} == Usage from wikitext == This module is not designed to be used directly from wikitext even though &amp;lt;code&amp;gt;forSee&amp;lt;/code&amp;gt; does take an initial &amp;lt;code&amp;gt;frame&amp;lt;/code&amp;gt; argument and could potentially be used from wikitext, e.g.: *&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{hatnote|PREFIX {{#invoke:Hatnote list|forSee|{{...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --&amp;gt;&lt;br /&gt;
{{Lua|Module:Format link|Module:Hatnote|Module:Arguments}}&lt;br /&gt;
== Usage from wikitext ==&lt;br /&gt;
This module is not designed to be used directly from wikitext even though &amp;lt;code&amp;gt;forSee&amp;lt;/code&amp;gt; does take an initial &amp;lt;code&amp;gt;frame&amp;lt;/code&amp;gt; argument and could potentially be used from wikitext, e.g.:&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{hatnote|PREFIX {{#invoke:Hatnote list|forSee|{{tl|For}}|Module:For|{{tl|About}}|Module:About}} POSTFIX}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{hatnote|PREFIX {{#invoke:Hatnote list|forSee|{{tl|For}}|Module:For|{{tl|About}}|Module:About}} POSTFIX}}&lt;br /&gt;
&lt;br /&gt;
== Usage from Lua ==&lt;br /&gt;
&lt;br /&gt;
To call the module, use &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local mHatList = require(&amp;#039;Module:Hatnote list&amp;#039;)&amp;lt;/syntaxhighlight&amp;gt; or similar, then access its methods through the &amp;lt;code&amp;gt;mHatList&amp;lt;/code&amp;gt; variable (or whatever was used).&lt;br /&gt;
&lt;br /&gt;
===andList===&lt;br /&gt;
&amp;lt;code&amp;gt;andList&amp;lt;/code&amp;gt; takes a list in table form, and returns a string with the list separated with &amp;quot;and&amp;quot; and commas as appropriate.&lt;br /&gt;
&lt;br /&gt;
===orList===&lt;br /&gt;
&amp;lt;code&amp;gt;orList&amp;lt;/code&amp;gt; takes a list in table form, and returns a string with the list separated with &amp;quot;or&amp;quot; and commas as appropriate.&lt;br /&gt;
&lt;br /&gt;
===forSee===&lt;br /&gt;
&amp;lt;code&amp;gt;_forSee&amp;lt;/code&amp;gt; takes three arguments: a table of trimmed arguments with blanks removed, a &amp;quot;from&amp;quot; number with the index to start at, and an options table, and returns a string with a number of &amp;quot;&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;For X, see [[Y]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;quot; sentences. The links are formatted using the methods from [[Module:Hatnote]].&lt;br /&gt;
&lt;br /&gt;
As a convenience, the &amp;lt;code&amp;gt;forSee&amp;lt;/code&amp;gt; method (without the leading underscore) takes the same arguments except with a frame instead of an args table, using &amp;lt;code&amp;gt;getArgs()&amp;lt;/code&amp;gt; from [[Module:Arguments]] to preprocess the arguments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{#ifeq:{{SUBPAGENAME}}|sandbox | |&lt;br /&gt;
&amp;lt;!-- Categories below this line, please; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
[[Category:Hatnote modules| ]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Module documentation pages]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Randombell</name></author>
	</entry>
</feed>