<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.caricature.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AMain%2Fdoc</id>
	<title>Module:Main/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.caricature.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AMain%2Fdoc"/>
	<link rel="alternate" type="text/html" href="http://wiki.caricature.org/wiki/index.php?title=Module:Main/doc&amp;action=history"/>
	<updated>2026-05-11T14:50:00Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>http://wiki.caricature.org/wiki/index.php?title=Module:Main/doc&amp;diff=3261&amp;oldid=prev</id>
		<title>TheChairman: 1 revision imported: Modules from InfoboxPerson</title>
		<link rel="alternate" type="text/html" href="http://wiki.caricature.org/wiki/index.php?title=Module:Main/doc&amp;diff=3261&amp;oldid=prev"/>
		<updated>2020-05-17T00:29:22Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported: Modules from InfoboxPerson&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&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: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 00:29, 17 May 2020&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>TheChairman</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.caricature.org/wiki/index.php?title=Module:Main/doc&amp;diff=3260&amp;oldid=prev</id>
		<title>en&gt;Pppery: Undid revision 876242274 by Pppery (talk) How ironic that I tried to withdraw a nomination because I made it too quickly -- to quickly. In any case, tfd was withdrawn</title>
		<link rel="alternate" type="text/html" href="http://wiki.caricature.org/wiki/index.php?title=Module:Main/doc&amp;diff=3260&amp;oldid=prev"/>
		<updated>2019-01-02T03:36:02Z</updated>

		<summary type="html">&lt;p&gt;Undid revision 876242274 by &lt;a href=&quot;/wiki/index.php/Special:Contributions/Pppery&quot; title=&quot;Special:Contributions/Pppery&quot;&gt;Pppery&lt;/a&gt; (&lt;a href=&quot;/wiki/index.php?title=User_talk:Pppery&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:Pppery (page does not exist)&quot;&gt;talk&lt;/a&gt;) How ironic that I tried to withdraw a nomination because I made it too quickly -- to quickly. In any case, tfd was withdrawn&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{high-risk|228000+}}&lt;br /&gt;
{{Module rating|protected}}&lt;br /&gt;
&lt;br /&gt;
This module produces a link to a main article or articles. It implements the {{tl|main}} template. Normally, it produces a link like &amp;quot;Main article: A&amp;quot;. If used in the [[Help:Category|category]] namespace, it produces a link like &amp;quot;The main article for this category is A&amp;quot;. It is possible to specify multiple articles, and in this case plural wording is used automatically. If the first link is not an article, the module uses the wording &amp;quot;Main page&amp;quot; instead of &amp;quot;Main article&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Usage from wikitext ==&lt;br /&gt;
This module cannot be accessed directly from #invoke. Instead, it can only be used through the {{tl|main}} template. Please see the template page for documentation.&lt;br /&gt;
&lt;br /&gt;
== Usage from other Lua modules ==&lt;br /&gt;
Load the module:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local mMain = require('Module:Main')&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can then use the _main function like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
mMain._main(args, options)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;var&amp;gt;args&amp;lt;/var&amp;gt; parameter following &amp;lt;var&amp;gt;options&amp;lt;/var&amp;gt; are a list of page link strings; if they use custom display values, each string should be preprocessed into a single piped string (e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;page|display value&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;). Category or file links are automatically escaped using the [[Help:Colon trick|colon trick]]. If a link includes a section name, and no display value is set, links are automatically formatted as ''page § section'', rather than the MediaWiki default of ''page#section''.&lt;br /&gt;
&lt;br /&gt;
The optional &amp;lt;var&amp;gt;options&amp;lt;/var&amp;gt; table can be used to configure the function's output. At present, the only option available is &amp;quot;selfref&amp;quot;, which is used when the output is a self-reference to Wikipedia. to set this option, use {{code|1={selfref = true}|2=lua}}. (See the {{tl|selfref}} template for more details on self-references.)&lt;br /&gt;
&lt;br /&gt;
=== Example 1 ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
mMain._main({'A'})&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Produces:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;div role=&amp;quot;note&amp;quot; class=&amp;quot;hatnote navigation-not-searchable&amp;quot;&amp;gt;Main article: [[A]]&amp;lt;/div&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Displays as:&lt;br /&gt;
&lt;br /&gt;
{{main|A}}&lt;br /&gt;
&lt;br /&gt;
=== Example 2 ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
mMain._main({'Wikipedia:Categorization', 'Help:Category', 'Category:Wikipedia categories'})&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Produces:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;div role=&amp;quot;note&amp;quot; class=&amp;quot;hatnote navigation-not-searchable&amp;quot;&amp;gt;Main pages: [[Wikipedia:Categorization]], [[Help:Category]] and [[:Category:Wikipedia categories]]&amp;lt;/div&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Displays as:&lt;br /&gt;
&lt;br /&gt;
{{main|Wikipedia:Categorization|Help:Category|Category:Wikipedia categories}}&lt;br /&gt;
&lt;br /&gt;
=== Example 3 ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
mMain._main({'A|the letter &amp;quot;A&amp;quot;', 'B|the letter &amp;quot;B&amp;quot;', 'C|the letter &amp;quot;C&amp;quot;'})&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Produces:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;div role=&amp;quot;note&amp;quot; class=&amp;quot;hatnote navigation-not-searchable&amp;quot;&amp;gt;Main articles: [[A|the letter &amp;quot;A&amp;quot;]], [[B|the letter &amp;quot;B&amp;quot;]] and [[C|the letter &amp;quot;C&amp;quot;]]&amp;lt;/div&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Displays as:&lt;br /&gt;
&lt;br /&gt;
{{main|A|B|C|l1=the letter &amp;quot;A&amp;quot;|l2=the letter &amp;quot;B&amp;quot;|l3=the letter &amp;quot;C&amp;quot;}}&lt;br /&gt;
&lt;br /&gt;
=== Example 4 ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
mMain._main({'Wikipedia:Verifiability#Burden'}, {selfref = true})&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Produces:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;div role=&amp;quot;note&amp;quot; class=&amp;quot;hatnote navigation-not-searchable selfref&amp;quot;&amp;gt;Main article: [[Wikipedia:Verifiability#Burden|Wikipedia:Verifiability § Burden]]&amp;lt;/div&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Displays as:&lt;br /&gt;
&lt;br /&gt;
{{main|Wikipedia:Verifiability#Burden|selfref=true}}&lt;br /&gt;
&lt;br /&gt;
=== Example 5 (if used in the category namespace) ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
mMain._main({'A'})&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Produces:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;div role=&amp;quot;note&amp;quot; class=&amp;quot;hatnote navigation-not-searchable&amp;quot;&amp;gt;The main article for this [[Wikipedia:Categorization|category]] is [[A]]&amp;lt;/div&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Displays as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div role=&amp;quot;note&amp;quot; class=&amp;quot;hatnote navigation-not-searchable&amp;quot;&amp;gt;The main article for this [[Wikipedia:Categorization|category]] is [[A]]&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Technical details ==&lt;br /&gt;
This module uses [[Module:Hatnote]] to format the hatnote text, [[Module:Hatnote list]] to process the list of links, and [[Module:Arguments]] to fetch the arguments from wikitext.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{#ifeq:{{SUBPAGENAME}}|sandbox||&lt;br /&gt;
&amp;lt;!-- Categories go here and interwikis go in Wikidata. --&amp;gt;&lt;br /&gt;
[[Category:Hatnote modules]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>en&gt;Pppery</name></author>
		
	</entry>
</feed>