<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.adamworkingtitle.com/index.php?action=history&amp;feed=atom&amp;title=Module_talk%3AFormat_link</id>
	<title>Module talk:Format link - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.adamworkingtitle.com/index.php?action=history&amp;feed=atom&amp;title=Module_talk%3AFormat_link"/>
	<link rel="alternate" type="text/html" href="https://wiki.adamworkingtitle.com/index.php?title=Module_talk:Format_link&amp;action=history"/>
	<updated>2026-09-26T03:33:31Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://wiki.adamworkingtitle.com/index.php?title=Module_talk:Format_link&amp;diff=879&amp;oldid=prev</id>
		<title>imported&gt;SilverLocust: /* Section links within same page */ new section</title>
		<link rel="alternate" type="text/html" href="https://wiki.adamworkingtitle.com/index.php?title=Module_talk:Format_link&amp;diff=879&amp;oldid=prev"/>
		<updated>2026-08-06T14:36:30Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Section links within same page: &lt;/span&gt; new section&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==+{{para|target}}==&lt;br /&gt;
{{edit template-protected|answered=yes}}&lt;br /&gt;
&lt;br /&gt;
I request the module be edited to reflect the changes in [[Special:PermaLink/1062625990]], which add a {{para|target}} parameter. The intention of this parameter is mostly for humor (to look like a fancy link to one thing but really be a link to another thing) in talk and project space. It also has some use in {{tl|format linkr}} as it can allow users to link to pages which would be URL-encoding converted right now. Tests were added in [[Special:PermaLink/1061891226]]. &lt;br /&gt;
&lt;br /&gt;
{{small|1=FYI, {{u|Nihiltres}}, sorry I keep pinging you, I just have found a lot of issues with your recent update slowly at different times is all, otherwise I would&amp;#039;ve combined them, but you [https://en.wikipedia.org/w/index.php?title=Template:Format_link/sandbox&amp;amp;type=revision&amp;amp;diff=1062620489&amp;amp;oldid=1061136558&amp;amp;diffmode=source forgot to update the sandbox of &amp;lt;nowiki&amp;gt;{{format link}}&amp;lt;/nowiki&amp;gt; to point to the sandbox(!)] when you updated the module&amp;#039;s name, boy was that an annoying bug to track down while writing this diff, easily accounts for 75% of time spent. I&amp;#039;m not that bright, though, a sharper student would&amp;#039;ve gotten it quickly.}} {{=3|8}} [[User:Psiĥedelisto|Psiĥedelisto]] ([[User talk:Psiĥedelisto|talk]] • [[Special:Contributions/Psiĥedelisto|contribs]]) &amp;lt;sup&amp;gt;please &amp;#039;&amp;#039;always&amp;#039;&amp;#039; [[Help:Notifications|ping]]!&amp;lt;/sup&amp;gt; 16:04, 29 December 2021 (UTC)&lt;br /&gt;
&lt;br /&gt;
:I don&amp;#039;t see the benefit of this change given that the first positional parameter &amp;#039;&amp;#039;already&amp;#039;&amp;#039; specifies the target, and the second already specifies the display. It seems like it complicates the code needlessly, especially as implemented (I&amp;#039;d override the &amp;#039;&amp;#039;output&amp;#039;&amp;#039; of &amp;lt;code&amp;gt;parseLink&amp;lt;/code&amp;gt; rather than integrate a second parameter to it). That said, perhaps I&amp;#039;m not interpreting the use-case quite right. What does this add that the template/module can&amp;#039;t already do? &amp;lt;span style=&amp;quot;white-space:nowrap;&amp;quot;&amp;gt;{&amp;amp;#123;[[User:Nihiltres|&amp;lt;span style=&amp;quot;color:#233D7A;&amp;quot;&amp;gt;Nihiltres&amp;lt;/span&amp;gt;]]&amp;amp;#8202;&amp;amp;#124;[[User talk:Nihiltres|talk]]&amp;amp;#8202;&amp;amp;#124;[[Special:Contributions/Nihiltres|edits]]}&amp;amp;#125;&amp;lt;/span&amp;gt; 18:21, 29 December 2021 (UTC)&lt;br /&gt;
::{{re|Nihiltres}} I don&amp;#039;t mind reimplementing, but we should probably agree it&amp;#039;s useful before I bother. So, consider e.g. {{code|&amp;lt;nowiki&amp;gt;{{format linkr|:ja:%E5%A1%A9#原料||:ja:%E3%82%B3%E3%82%B7%E3%83%A7%E3%82%A6}}&amp;lt;/nowiki&amp;gt;}} which would create {{format linkr/sandbox|:ja:%E5%A1%A9#原料||:ja:%E3%82%B3%E3%82%B7%E3%83%A7%E3%82%A6}}. It is intended mostly for use with {{tl|format linkr}}, mostly where you rely heavily on that template&amp;#039;s auto-formatting to remove underscores, URL encoding, etc., and is useless when &amp;lt;code&amp;gt;display&amp;lt;/code&amp;gt; is given. All three should never be given. [[User:Psiĥedelisto|Psiĥedelisto]] ([[User talk:Psiĥedelisto|talk]] • [[Special:Contributions/Psiĥedelisto|contribs]]) &amp;lt;sup&amp;gt;please &amp;#039;&amp;#039;always&amp;#039;&amp;#039; [[Help:Notifications|ping]]!&amp;lt;/sup&amp;gt; 19:55, 30 December 2021 (UTC)&lt;br /&gt;
:::{{re|Psiĥedelisto}} I think I might still not understand—in particular, the double pipe in your example really complicates it (is it an error?)—but translating to a functional goal, my guess is that you essentially want the option of applying the link formatting to the &amp;#039;&amp;#039;display&amp;#039;&amp;#039;, so that e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{format link|Display#Section|target=Target}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; would resolve to &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[:Target|Display §&amp;amp;amp;nbsp;Section]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. Is that a reasonable interpretation? I&amp;#039;m concerned that it&amp;#039;s over-specialized, but if it isn&amp;#039;t awful to implement and doesn&amp;#039;t introduce edge-cases to extant uses, I don&amp;#039;t see why not. &amp;lt;span style=&amp;quot;white-space:nowrap;&amp;quot;&amp;gt;{&amp;amp;#123;[[User:Nihiltres|&amp;lt;span style=&amp;quot;color:#233D7A;&amp;quot;&amp;gt;Nihiltres&amp;lt;/span&amp;gt;]]&amp;amp;#8202;&amp;amp;#124;[[User talk:Nihiltres|talk]]&amp;amp;#8202;&amp;amp;#124;[[Special:Contributions/Nihiltres|edits]]}&amp;amp;#125;&amp;lt;/span&amp;gt; 21:27, 30 December 2021 (UTC)&lt;br /&gt;
::::{{re|Nihiltres}} Not an error. It skips {{para|display}}, which is also possible. Your example, byte for byte, already works with my sandbox version: {{format link/sandbox|Display#Section|target=Target}}. Now, whether or not this is marginal use is somewhat debatable…I think more people would use {{tl|format linkr}} if they knew about it, because it really speeds up section linking, &amp;#039;&amp;#039;especially&amp;#039;&amp;#039; on foreign-language wikis (I bet this is why it was so quickly copied to Vietnamese Wikipedia). URL encoding and underlines really slow me down. {{=3|8}} [[User:Psiĥedelisto|Psiĥedelisto]] ([[User talk:Psiĥedelisto|talk]] • [[Special:Contributions/Psiĥedelisto|contribs]]) &amp;lt;sup&amp;gt;please &amp;#039;&amp;#039;always&amp;#039;&amp;#039; [[Help:Notifications|ping]]!&amp;lt;/sup&amp;gt; 22:24, 30 December 2021 (UTC)&lt;br /&gt;
::::{{re|Nihiltres}} I thought of another use for the feature, which I just used on [[Talk:Furry fandom]]—often I want to link to a section &amp;#039;&amp;#039;in the article&amp;#039;&amp;#039; but write it &amp;#039;&amp;#039;on talk&amp;#039;&amp;#039;. So I subst&amp;#039;d the /sandbox form of {{tl|format linkr}} with args {{code|&amp;lt;nowiki&amp;gt;{{format linkr/sandbox|#BDSM||Furry fandom#BDSM}}&amp;lt;/nowiki&amp;gt;}} to get [[:Furry fandom#BDSM|§&amp;amp;nbsp;BDSM]]. That&amp;#039;s actually very useful in practice, so I hope you&amp;#039;ll reconsider this feature&amp;#039;s utility. [[User:Psiĥedelisto|Psiĥedelisto]] ([[User talk:Psiĥedelisto|talk]] • [[Special:Contributions/Psiĥedelisto|contribs]]) &amp;lt;sup&amp;gt;please &amp;#039;&amp;#039;always&amp;#039;&amp;#039; [[Help:Notifications|ping]]!&amp;lt;/sup&amp;gt; 02:20, 31 December 2021 (UTC)&lt;br /&gt;
&lt;br /&gt;
{{undent}} {{re|Psiĥedelisto}} I think you&amp;#039;ve made the case for including the feature, but I&amp;#039;d like to see a sandbox version that doesn&amp;#039;t pollute &amp;lt;var&amp;gt;parseLink&amp;lt;/var&amp;gt;, so as to uphold the [[single-responsibility principle]]. I&amp;#039;ll poke at making a version like that; the main annoyance is that I&amp;#039;ll probably need to extract the functionality that does the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;formatting §nbsp;for display&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; to separate it from the part that makes a &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[:link]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. I&amp;#039;ll probably work on that, oh, next year (remember the current date). ;) &amp;lt;span style=&amp;quot;white-space:nowrap;&amp;quot;&amp;gt;{&amp;amp;#123;[[User:Nihiltres|&amp;lt;span style=&amp;quot;color:#233D7A;&amp;quot;&amp;gt;Nihiltres&amp;lt;/span&amp;gt;]]&amp;amp;#8202;&amp;amp;#124;[[User talk:Nihiltres|talk]]&amp;amp;#8202;&amp;amp;#124;[[Special:Contributions/Nihiltres|edits]]}&amp;amp;#125;&amp;lt;/span&amp;gt; 20:31, 31 December 2021 (UTC)&lt;br /&gt;
: Deactivating edit request since I see no need for an uninvolved template editor to do anything here (Nihiltres is an admin and can make then change themselves once they are satisfied) [[User:Pppery|* Pppery *]] [[User talk:Pppery|&amp;lt;sub style=&amp;quot;color:#800000&amp;quot;&amp;gt;it has begun...&amp;lt;/sub&amp;gt;]] 05:16, 1 January 2022 (UTC)&lt;br /&gt;
::{{small|Thanks. [[User:Psiĥedelisto|Psiĥedelisto]] ([[User talk:Psiĥedelisto|talk]] • [[Special:Contributions/Psiĥedelisto|contribs]]) &amp;lt;sup&amp;gt;please &amp;#039;&amp;#039;always&amp;#039;&amp;#039; [[Help:Notifications|ping]]!&amp;lt;/sup&amp;gt; 10:11, 4 January 2022 (UTC)}}&lt;br /&gt;
:{{re|Psiĥedelisto}} I&amp;#039;ve implemented a version that&amp;#039;s a bit cleaner. Would you please review it? It passes extant tests, but I think that we could probably add a few more to make certain edge-case behaviours more explicit. &amp;lt;span style=&amp;quot;white-space:nowrap;&amp;quot;&amp;gt;{&amp;amp;#123;[[User:Nihiltres|&amp;lt;span style=&amp;quot;color:#233D7A;&amp;quot;&amp;gt;Nihiltres&amp;lt;/span&amp;gt;]]&amp;amp;#8202;&amp;amp;#124;[[User talk:Nihiltres|talk]]&amp;amp;#8202;&amp;amp;#124;[[Special:Contributions/Nihiltres|edits]]}&amp;amp;#125;&amp;lt;/span&amp;gt; 22:53, 1 January 2022 (UTC)&lt;br /&gt;
::{{re|Nihiltres}} Only had one suggestion, to use [[Module:Error]]. [https://en.wikipedia.org/w/index.php?title=Module%3AFormat_link%2Fsandbox&amp;amp;type=revision&amp;amp;diff=1063683884&amp;amp;oldid=1063220129]. Looks good!~ [[User:Psiĥedelisto|Psiĥedelisto]] ([[User talk:Psiĥedelisto|talk]] • [[Special:Contributions/Psiĥedelisto|contribs]]) &amp;lt;sup&amp;gt;please &amp;#039;&amp;#039;always&amp;#039;&amp;#039; [[Help:Notifications|ping]]!&amp;lt;/sup&amp;gt; 10:11, 4 January 2022 (UTC)&lt;br /&gt;
:::{{re|Psiĥedelisto}} Great, I&amp;#039;ll make the update as soon as I&amp;#039;ve got the time to also update the documentation with all the new stuff. :) &amp;lt;span style=&amp;quot;white-space:nowrap;&amp;quot;&amp;gt;{&amp;amp;#123;[[User:Nihiltres|&amp;lt;span style=&amp;quot;color:#233D7A;&amp;quot;&amp;gt;Nihiltres&amp;lt;/span&amp;gt;]]&amp;amp;#8202;&amp;amp;#124;[[User talk:Nihiltres|talk]]&amp;amp;#8202;&amp;amp;#124;[[Special:Contributions/Nihiltres|edits]]}&amp;amp;#125;&amp;lt;/span&amp;gt; 18:07, 4 January 2022 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Section links within same page ==&lt;br /&gt;
&lt;br /&gt;
When used with a section without a page, this is linking to the main page instead of the current page. &lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[#Section links within same page]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; produces the {{xt|correct}} link [[#Section links within same page]]&lt;br /&gt;
* {{tlx|format link|#Section links within same page}} produces the {{!xt|incorrect}} link {{format link|#Section links within same page}}&lt;br /&gt;
Noticed this at [[Wikipedia:Manual of Style#Possessives]]&amp;#039;s hatnote to § Apostrophes. ~ Jenson ([[User:SilverLocust|SilverLocust]] [[User talk:SilverLocust|💬]]) 14:36, 6 August 2026 (UTC)&lt;/div&gt;</summary>
		<author><name>imported&gt;SilverLocust</name></author>
	</entry>
</feed>