<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="sv">
	<id>https://xn--jrnvgshistoria-5hbd.se/index.php?action=history&amp;feed=atom&amp;title=Modul%3AMain%2Fdoc</id>
	<title>Modul:Main/doc - Versionshistorik</title>
	<link rel="self" type="application/atom+xml" href="https://xn--jrnvgshistoria-5hbd.se/index.php?action=history&amp;feed=atom&amp;title=Modul%3AMain%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://xn--jrnvgshistoria-5hbd.se/index.php?title=Modul:Main/doc&amp;action=history"/>
	<updated>2026-04-24T09:20:31Z</updated>
	<subtitle>Versionshistorik för denna sida på wikin</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://xn--jrnvgshistoria-5hbd.se/index.php?title=Modul:Main/doc&amp;diff=60386&amp;oldid=prev</id>
		<title>Jan Karlsson: 1 version importerades</title>
		<link rel="alternate" type="text/html" href="https://xn--jrnvgshistoria-5hbd.se/index.php?title=Modul:Main/doc&amp;diff=60386&amp;oldid=prev"/>
		<updated>2021-01-05T08:11:08Z</updated>

		<summary type="html">&lt;p&gt;1 version importerades&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;sv&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Äldre version&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Versionen från 5 januari 2021 kl. 08.11&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;sv&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(Ingen skillnad)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Jan Karlsson</name></author>
	</entry>
	<entry>
		<id>https://xn--jrnvgshistoria-5hbd.se/index.php?title=Modul:Main/doc&amp;diff=60385&amp;oldid=prev</id>
		<title>jarnvagsdata&gt;WOSlinker: change source to syntaxhighlight</title>
		<link rel="alternate" type="text/html" href="https://xn--jrnvgshistoria-5hbd.se/index.php?title=Modul:Main/doc&amp;diff=60385&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;Ny sida&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('Module:Main')&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 ''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;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
mMain._main({'A'})&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({'Wikipedia:Categorization', 'Help:Category', 'Category:Wikipedia categories'})&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({'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;/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({'Wikipedia:Verifiability#Burden'}, {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({'A'})&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>jarnvagsdata&gt;WOSlinker</name></author>
	</entry>
</feed>