<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://www.verzauberte-welten.de/index.php?action=history&amp;feed=atom&amp;title=Modul%3AMain%2Fdoc</id>
	<title>Modul:Main/doc - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://www.verzauberte-welten.de/index.php?action=history&amp;feed=atom&amp;title=Modul%3AMain%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://www.verzauberte-welten.de/index.php?title=Modul:Main/doc&amp;action=history"/>
	<updated>2026-04-05T20:33:50Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Verzauberte Welten e.V.</subtitle>
	<generator>MediaWiki 1.39.8</generator>
	<entry>
		<id>https://www.verzauberte-welten.de/index.php?title=Modul:Main/doc&amp;diff=423&amp;oldid=prev</id>
		<title>mw&gt;Oetterer am 11. Oktober 2014 um 07:23 Uhr</title>
		<link rel="alternate" type="text/html" href="https://www.verzauberte-welten.de/index.php?title=Modul:Main/doc&amp;diff=423&amp;oldid=prev"/>
		<updated>2014-10-11T07:23:56Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{documentation subpage}}&lt;br /&gt;
{{module rating|release}}&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;
&lt;br /&gt;
This module cannot be used 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;
&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(options, ...)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The parameters following &amp;lt;var&amp;gt;options&amp;lt;/var&amp;gt; are a list of link/display tables, used to generate the links. The first value in each table is the link, and is required. The second value in each table is the display value, and is optional. 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 &amp;lt;var&amp;gt;options&amp;lt;/var&amp;gt; table can be used to configure the function's output. At current, 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 snippet|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(nil, {'A'})&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Produces:&lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;div class=&amp;quot;hatnote relarticle mainarticle&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;
Displays as:&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(nil, {'Wikipedia:Categorization'}, {'Help:Category'}, {'Category:Wikipedia categories'})&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Produces:&lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;div class=&amp;quot;hatnote relarticle mainarticle&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;
Displays as:&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(nil, {'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;
Produces:&lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;div class=&amp;quot;hatnote relarticle mainarticle&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;
Displays as:&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({selfref = true}, {'Wikipedia:Verifiability#Burden'})&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Produces:&lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;div class=&amp;quot;hatnote relarticle mainarticle 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;
Displays as:&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(nil, {'A'})&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Produces:&lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;div class=&amp;quot;hatnote relarticle mainarticle&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;
Displays as:&lt;br /&gt;
&amp;lt;div class=&amp;quot;hatnote relarticle mainarticle&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;
&lt;br /&gt;
This module uses [[Module:Hatnote]] to format the hatnote text, [[Module:TableTools]] 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;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>mw&gt;Oetterer</name></author>
	</entry>
</feed>