<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.filipefonseca.pt/index.php?action=history&amp;feed=atom&amp;title=Template%3ASection_link%2Fdoc</id>
	<title>Template:Section link/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.filipefonseca.pt/index.php?action=history&amp;feed=atom&amp;title=Template%3ASection_link%2Fdoc"/>
	<link rel="alternate" type="text/html" href="http://wiki.filipefonseca.pt/index.php?title=Template:Section_link/doc&amp;action=history"/>
	<updated>2026-04-21T09:35:16Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.1</generator>
	<entry>
		<id>http://wiki.filipefonseca.pt/index.php?title=Template:Section_link/doc&amp;diff=973&amp;oldid=prev</id>
		<title>FilipeFonseca: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="http://wiki.filipefonseca.pt/index.php?title=Template:Section_link/doc&amp;diff=973&amp;oldid=prev"/>
		<updated>2021-07-08T07:21:39Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{documentation subpage}}&lt;br /&gt;
{{Redirect|Template:Slink|the template that links to search results|Template:Search link}}&lt;br /&gt;
{{template shortcuts|seclink|slink|§l}}&lt;br /&gt;
{{lua|Module:Section link}}&lt;br /&gt;
{{Bot use warning|bots=[[Wikipedia:Bots/Requests for approval/Cewbot 6|cewbot]]}}&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
This template is appropriate for use in [[Wikipedia:Hatnote|hatnotes]] and [[Wikipedia:Manual of Style/Layout#&amp;quot;See also&amp;quot; section|See also]] sections, or to reference sections within the same article.  When using in article body text, consider whether an overt link to a specific section in another article may be confusing to readers who cannot follow links, such as those viewing a printed version of the material, or a version republished without links (see [[WP:LINKSTYLE]]).&lt;br /&gt;
&lt;br /&gt;
=== Syntax (overview) ===&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{section link|Article|Section}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{section link|Article#Section}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, link to section of other article. → Example: {{section link|Albert Einstein|Scientific career}}&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{section link|Article|Section|nopage=y}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, link to section of other article, only displaying the section's title → Example: {{section link|Albert Einstein|Scientific career|nopage=y}}&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{section link||Section}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, for usage within the same page, supply an empty first parameter → Example: {{section link||Scientific career}}&lt;br /&gt;
&lt;br /&gt;
=== Single section ===&lt;br /&gt;
This template, {{tl|section link}}, or its shortcut, {{tl|slink}}, is used to generate a link to a certain section of a local wiki page and render an appropriate section mark ([[§]]).&lt;br /&gt;
&lt;br /&gt;
Instead of:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Albert Einstein#Scientific career]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Albert Einstein#Scientific career]]&lt;br /&gt;
&lt;br /&gt;
...you can write:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{section link|Albert Einstein|Scientific career}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{section link|Albert Einstein|Scientific career}}&lt;br /&gt;
&lt;br /&gt;
...or&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{section link|Albert Einstein#Scientific career}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{section link|Albert Einstein#Scientific career}}&lt;br /&gt;
&lt;br /&gt;
=== Multiple sections ===&lt;br /&gt;
&lt;br /&gt;
This template may generate consecutive links to several sections of the same page. You can write:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=moin&amp;gt;{{section link|History of IBM|1880s–1924: The origin of IBM|1969: Antitrust, the Unbundling of software and services|1993–present: IBM's near disaster and rebirth}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
:{{section link|History of IBM|1880s–1924: The origin of IBM|1969: Antitrust, the Unbundling of software and services|1993–present: IBM's near disaster and rebirth}}&lt;br /&gt;
&lt;br /&gt;
...or:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=moin&amp;gt;{{section link|History of IBM#1880s–1924: The origin of IBM|1969: Antitrust, the Unbundling of software and services|1993–present: IBM's near disaster and rebirth}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
:{{section link|History of IBM#1880s–1924: The origin of IBM|1969: Antitrust, the Unbundling of software and services|1993–present: IBM's near disaster and rebirth}}&lt;br /&gt;
&lt;br /&gt;
===Suppressing page name===&lt;br /&gt;
Sometimes the page name needs not to appear, e.g. to avoid redundancy and wordiness. For the page on which the template is used, not specifying a page name creates a section link only. The following:&lt;br /&gt;
&amp;lt;pre&amp;gt;{{Section link||Suppressing page name}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
...is the equivalent of:&lt;br /&gt;
&amp;lt;pre&amp;gt;[[#Suppressing page name|§&amp;amp;amp;nbsp;Suppressing page name]]&amp;lt;/pre&amp;gt;&lt;br /&gt;
...and renders as:&lt;br /&gt;
:{{section link||Suppressing page name}}&lt;br /&gt;
&lt;br /&gt;
Use {{para|nopage|y}} for the same visual effect. &lt;br /&gt;
&lt;br /&gt;
When discussing an article from its talk page, {{tlx|Article link}}—or its alias, {{tlx|alink}}—is preferable to the longer {{tlc|Section link|{&amp;lt;nowiki/&amp;gt;{[[Help:Magic_words#Variables|ARTICLEPAGENAME]]}&amp;lt;nowiki/&amp;gt;}|Section|4=nopage=y}}.&lt;br /&gt;
&lt;br /&gt;
Comparison of displayed results:&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{section link|WP:Manual of Style|Quotations}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{section link|WP:Manual of Style|Quotations}}&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{section link|WP:Manual of Style|Quotations|nopage=y}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{section link|WP:Manual of Style|Quotations|nopage=y}}&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{section link|WP:Manual of Style|Quotations|Quotation marks|Commas}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{section link|WP:Manual of Style|Quotations|Quotation marks|Commas}}&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{section link|WP:Manual of Style|Quotations|Quotation marks|Commas|nopage=y}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{section link|WP:Manual of Style|Quotations|Quotation marks|Commas|nopage=y}}&lt;br /&gt;
&lt;br /&gt;
=== Styling page name ===&lt;br /&gt;
For some page names (e.g., titles of films or short stories) we're [[MOS:DABPIPING|always]] supposed to present the core part of the page's name (without any parenthetic disambiguation) in italics, quotation marks, or some other markup (per [[MOS:TITLES]]).  The {{para|display}} parameter can be used for this purpose:&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{section link|The Last Temptation of Christ (film)|General controversy|display=''The Last Temptation of Christ'' (film)}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{section link|The Last Temptation of Christ (film)|General controversy|display=''The Last Temptation of Christ'' (film)}}&lt;br /&gt;
&lt;br /&gt;
=== Underscores ===&lt;br /&gt;
It is common practice to copy article and section name from the browser's address bar.  When doing that, the article and section names may contain underscores:&lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;Albert_Einstein#Scientific_career&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
This template automatically replaces the underscores with space characters:&lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{section link|Albert_Einstein#Scientific_career}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{section link|Albert_Einstein#Scientific_career}}&lt;br /&gt;
There are articles that have underscores (see {{cl|Articles with underscores in the title}}).  To retain the underscores in the rendered output, use {{para|keep-underscores|yes}}:&lt;br /&gt;
::article and section copied from browser address bar:&lt;br /&gt;
:::&amp;lt;code&amp;gt;Dual_EC_DRBG#Timeline_of_Dual_EC_DRBG&amp;lt;/code&amp;gt;&lt;br /&gt;
::manual removal of extraneous underscores:&lt;br /&gt;
:::&amp;lt;code&amp;gt;Dual_EC_DRBG#Timeline of Dual_EC_DRBG&amp;lt;/code&amp;gt;&lt;br /&gt;
::::&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{section link|Dual_EC_DRBG#Timeline of Dual_EC_DRBG|keep-underscores=yes}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{section link|Dual_EC_DRBG#Timeline of Dual_EC_DRBG|keep-underscores=yes}}&lt;br /&gt;
&lt;br /&gt;
==TemplateData==&lt;br /&gt;
{{TemplateDataHeader}}&lt;br /&gt;
&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;description&amp;quot;: &amp;quot;This template is used to generate a link to a certain section of a local wiki page and render an appropriate section mark (§). This template may generate consecutive links to several sections of the same page.&amp;quot;,&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;1&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Page name&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Name of the page to which the link must be created. Leave empty to link to the current page. Doing so causes no page name to appear.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;wiki-page-name&amp;quot;,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;2&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Section name 1&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Name of the (first) section to which the link must be created. This parameter is mandatory.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;3&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Section name 2&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;This template can link to additional sections within one page. You can supply another section name in this field.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;4&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Section name 3&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;This template can link to additional sections within one page. You can supply another section name in this field.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;5&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Section name 4&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;This template can link to additional sections within one page. You can supply another section name in this field.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;nopage&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Hide page name&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;If set to \&amp;quot;yes\&amp;quot;, \&amp;quot;y\&amp;quot; or \&amp;quot;true\&amp;quot;, hides the page name (only section names are displayed).&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;boolean&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;keep-underscores&amp;quot; : {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Keep underscores&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;If set to \&amp;quot;yes\&amp;quot;, \&amp;quot;y\&amp;quot; or \&amp;quot;true\&amp;quot;, doesn't replace underscores with spaces in the page name and section names.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;boolean&amp;quot;                       &lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;display&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Displayed page name&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;If the page name must be displayed differently (e.g. in italics), enter it here.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*{{tl|article link}}{{snd}}for linking to a mainspace section from its talk page&lt;br /&gt;
*{{tl|Multi-section link}}{{snd}}for linking to a section listing nested section names&lt;br /&gt;
*{{tl|Pslink}}{{snd}}for linking to a section without displaying the section sign (§)&lt;br /&gt;
*{{tl|Anchor}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- CATEGORIES HERE, THANKS --&amp;gt;&lt;br /&gt;
[[Category:Section and anchor link formatting templates]]&lt;br /&gt;
[[Category:Wikipedia section templates]]&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>FilipeFonseca</name></author>
	</entry>
</feed>