<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://safernicotine.wiki/mediawiki/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="https://safernicotine.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AMain%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Module:Main/doc&amp;action=history"/>
	<updated>2026-05-03T16:36:55Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://safernicotine.wiki/mediawiki/index.php?title=Module:Main/doc&amp;diff=1439&amp;oldid=prev</id>
		<title>Richardpruen: 1 revision imported: Wikipedia article on Nicotine modules needed</title>
		<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Module:Main/doc&amp;diff=1439&amp;oldid=prev"/>
		<updated>2020-12-10T19:13:50Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported: Wikipedia article on Nicotine modules needed&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-GB&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 20:13, 10 December 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key uk_vapewiki:diff:1.41:old-1438:rev-1439 --&gt;
&lt;/table&gt;</summary>
		<author><name>Richardpruen</name></author>
	</entry>
	<entry>
		<id>https://safernicotine.wiki/mediawiki/index.php?title=Module:Main/doc&amp;diff=1438&amp;oldid=prev</id>
		<title>wikipedia&gt;WOSlinker: change source to syntaxhighlight</title>
		<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Module:Main/doc&amp;diff=1438&amp;oldid=prev"/>
		<updated>2020-07-07T13:21:15Z</updated>

		<summary type="html">&lt;p&gt;change source to syntaxhighlight&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;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local mMain = require(&amp;#039;Module:Main&amp;#039;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&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;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
mMain._main(args, options)&lt;br /&gt;
&amp;lt;/syntaxhighlight&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 &amp;#039;&amp;#039;page § section&amp;#039;&amp;#039;, rather than the MediaWiki default of &amp;#039;&amp;#039;page#section&amp;#039;&amp;#039;.&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&amp;#039;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;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
mMain._main({&amp;#039;A&amp;#039;})&lt;br /&gt;
&amp;lt;/syntaxhighlight&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;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
mMain._main({&amp;#039;Wikipedia:Categorization&amp;#039;, &amp;#039;Help:Category&amp;#039;, &amp;#039;Category:Wikipedia categories&amp;#039;})&lt;br /&gt;
&amp;lt;/syntaxhighlight&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;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
mMain._main({&amp;#039;A|the letter &amp;quot;A&amp;quot;&amp;#039;, &amp;#039;B|the letter &amp;quot;B&amp;quot;&amp;#039;, &amp;#039;C|the letter &amp;quot;C&amp;quot;&amp;#039;})&lt;br /&gt;
&amp;lt;/syntaxhighlight&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;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
mMain._main({&amp;#039;Wikipedia:Verifiability#Burden&amp;#039;}, {selfref = true})&lt;br /&gt;
&amp;lt;/syntaxhighlight&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;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
mMain._main({&amp;#039;A&amp;#039;})&lt;br /&gt;
&amp;lt;/syntaxhighlight&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>wikipedia&gt;WOSlinker</name></author>
	</entry>
</feed>