<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.pttlink.org/index.php?action=history&amp;feed=atom&amp;title=Module%3ASection_link%2Fsandbox%2Fdoc</id>
	<title>Module:Section link/sandbox/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.pttlink.org/index.php?action=history&amp;feed=atom&amp;title=Module%3ASection_link%2Fsandbox%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.pttlink.org/index.php?title=Module:Section_link/sandbox/doc&amp;action=history"/>
	<updated>2026-05-05T00:53:52Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.5</generator>
	<entry>
		<id>https://wiki.pttlink.org/index.php?title=Module:Section_link/sandbox/doc&amp;diff=5645&amp;oldid=prev</id>
		<title>Kg7qin: Created page with &quot;{{used in system|in MediaWiki:Abusefilter-warning-notwallofshame}} {{Module rating|protected}} This module creates links to sections, nicely formatted with the &quot;§&quot; symbol...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.pttlink.org/index.php?title=Module:Section_link/sandbox/doc&amp;diff=5645&amp;oldid=prev"/>
		<updated>2022-01-20T18:04:21Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{used in system|in &lt;a href=&quot;/index.php?title=MediaWiki:Abusefilter-warning-notwallofshame&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;MediaWiki:Abusefilter-warning-notwallofshame (page does not exist)&quot;&gt;MediaWiki:Abusefilter-warning-notwallofshame&lt;/a&gt;}} {{Module rating|protected}} This module creates links to sections, nicely formatted with the &amp;quot;§&amp;quot; symbol...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{used in system|in [[MediaWiki:Abusefilter-warning-notwallofshame]]}}&lt;br /&gt;
{{Module rating|protected}}&lt;br /&gt;
This module creates links to sections, nicely formatted with the &amp;quot;§&amp;quot; symbol instead of the default &amp;quot;#&amp;quot;.&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
=== From wikitext ===&lt;br /&gt;
&lt;br /&gt;
From wikitext, this module should be used via the template {{tl|section link}}. Please see the template page for documentation.&lt;br /&gt;
&lt;br /&gt;
=== From Lua ===&lt;br /&gt;
&lt;br /&gt;
First, load the module:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local mSectionLink = require('Module:Section link')&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can then make section links via the _main function.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
mSectionLink._main(page, sections, options, title)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Parameters:&lt;br /&gt;
* &amp;lt;var&amp;gt;page&amp;lt;/var&amp;gt; - the page name to link to. Defaults to the full page name of &amp;lt;var&amp;gt;title&amp;lt;/var&amp;gt;, or the current title if that is not specified.&lt;br /&gt;
* &amp;lt;var&amp;gt;sections&amp;lt;/var&amp;gt; - an array of section names to link to, or a string to link to just one section name.&lt;br /&gt;
* &amp;lt;var&amp;gt;options&amp;lt;/var&amp;gt; - a table of options. Accepts the following fields:&lt;br /&gt;
** &amp;lt;var&amp;gt;nopage&amp;lt;/var&amp;gt; - set this to true to avoid displaying the base page name in links.&lt;br /&gt;
* &amp;lt;var&amp;gt;title&amp;lt;/var&amp;gt; - a default [[mw:Extension:Scribunto/Lua reference manual#Title objects|mw.title object]] to use instead of the current title. Intended for testing purposes.&lt;br /&gt;
All parameters are optional.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Lua code&lt;br /&gt;
! Wikitext code&lt;br /&gt;
! Result&lt;br /&gt;
|-&lt;br /&gt;
| {{code|mSectionLink('Paris')|lua}}&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{section link|Paris}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
| {{section link|Paris}}&lt;br /&gt;
|-&lt;br /&gt;
| {{code|mSectionLink('Paris', 'Architecture')|lua}}&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{section link|Paris|Architecture}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
| {{section link|Paris|Architecture}}&lt;br /&gt;
|-&lt;br /&gt;
| {{code|mSectionLink('Paris', {'Architecture', 'Culture'})|lua}}&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{section link|Paris|Architecture|Culture}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
| {{section link|Paris|Architecture|Culture}}&lt;br /&gt;
|-&lt;br /&gt;
| {{code|mSectionLink('Paris', {'Architecture', 'Culture', 'Sport'})|lua}}&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{section link|Paris|Architecture|Culture|Sport}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
| {{section link|Paris|Architecture|Culture|Sport}}&lt;br /&gt;
|-&lt;br /&gt;
| {{code|1=mSectionLink('Paris', {'Architecture', 'Culture', 'Sport'}, {nopage = true})|2=lua}}&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{section link|Paris|Architecture|Culture|Sport|nopage=yes}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
| {{section link|Paris|Architecture|Culture|Sport|nopage=yes}}&lt;br /&gt;
|}&lt;br /&gt;
== See also ==&lt;br /&gt;
*The character used is {{unichar|00A7|name=|html=|nlink=Section sign}}&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;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kg7qin</name></author>
	</entry>
</feed>