TDG EMPIRE
☰
Features
Wiki
Gallery
Webmap
Interactive Map
Punishments
Discord
Wiki
TDG Encyclopedia
Not logged in
Talk
Contributions
Create account
Log in
Search
Module
Discussion
Read
Edit source
Add topic
View history
Editing
Module talk:Hatnote
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Spacey space == {{edit template-protected|answered=yes}} The module's <code>_formatLink</code> function adds an unnecessary space when fed just a section. E.g.: {| class="wikitable" !Input |{{Code|<nowiki>({{format linkr|#Italicize}})</nowiki>}} |- !Output (expected) |([[:#Italicize|§ Italicize]]) |- !Output (actual) |([[:#Italicize| § Italicize]]) |} Therefore please copy the sandbox to the main module. I checked that it was synced first. Test cases were also added; those who for some strange reason want the old behavior back can specify {{para|italicizePage|true}}, which will do it as a side effect of adding an empty {{tag|i}}. [[User:Psiĥedelisto|Psiĥedelisto]] ([[User talk:Psiĥedelisto|talk]] • [[Special:Contributions/Psiĥedelisto|contribs]]) <sup>please ''always'' [[Help:Notifications|ping]]!</sup> 23:36, 28 July 2020 (UTC) : {{ping|Psiĥedelisto}} {{done}} [[User:Pppery|* Pppery *]] [[User talk:Pppery|<sub style="color:#800000">it has begun...</sub>]] 00:47, 29 July 2020 (UTC) :: {{ping|Psiĥedelisto}} Thanks for spotting this and for making the fix. Having section-only links that add an empty {{tag|i}} also sounds like a bug to me, so I [[Special:Diff/970053730/970133728|added another test case]] and made a [[Special:Diff/970133456|fix in the sandbox]]. Do you think this would be a good addition to the module? Best — '''''[[User:Mr. Stradivarius|<span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span>]]''''' <sup>[[User talk:Mr. Stradivarius|♪ talk ♪]]</sup> 13:29, 29 July 2020 (UTC) :::{{re|Mr. Stradivarius}} I certainly do, I only didn't fix it myself so that there would be a way to get the old behavior back, no matter how broken; some TP ER implementers care about that sort of thing quite a lot, and I never know who I'm gonna end up with when I make my requests. {{=3|8}} [[User:Psiĥedelisto|Psiĥedelisto]] ([[User talk:Psiĥedelisto|talk]] • [[Special:Contributions/Psiĥedelisto|contribs]]) <sup>please ''always'' [[Help:Notifications|ping]]!</sup> 16:14, 29 July 2020 (UTC) ::::{{re|Psiĥedelisto}} It looks like the extra initial space for section-only links has been in the template for a long time, so I suppose it's possible that some people might have come to rely on that behaviour. This seems unexpected enough to me, though, that such people are probably in a small minority, if indeed they exist. I say we go ahead and fix it, and then see if anyone complains. We can work out any next steps to take after that. Best — '''''[[User:Mr. Stradivarius|<span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span>]]''''' <sup>[[User talk:Mr. Stradivarius|♪ talk ♪]]</sup> 13:43, 30 July 2020 (UTC) :::::I've gone ahead and put my fix up live. — '''''[[User:Mr. Stradivarius|<span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span>]]''''' <sup>[[User talk:Mr. Stradivarius|♪ talk ♪]]</sup> 13:48, 30 July 2020 (UTC) :Why is it <code>[[:#Section|…</code> and not just <code>[[#Section|…</code>? :With a colon, it links to the Main Page via https://en.wikipedia.org/wiki/#…: [[:#Spacey space|§ Spacey space]] (except in the reply preview, apparently...). Without a colon, it links to the relevant section of the current page: [[#Spacey space|§ Spacey space]]. :If for some reason I want the former, I can explicitly add <code>Main Page</code> before the <code>#</code>. However, I pretty much always want the latter, such as to link between related sections of a disambiguation page. :There is a workaround for this, but it's somewhat ugly, and avoids using this module: https://en.wikipedia.org/w/index.php?title=E_(disambiguation)&diff=1366588289&oldid=1366583972 :Is the current behavior intended, and could it be changed? :[[User:Sollyucko|Solomon Ucko]] ([[User talk:Sollyucko|talk]]) 16:37, 3 September 2026 (UTC)
Summary:
Please note that all contributions to TDG Encyclopedia may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
TDG Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)