Jump to content

Template talk:Format link

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Template-protected edit request on 18 August 2025

[edit]

Please add {{subst:Tfm|type=inline|Format link}} ad it has been nominated for merging. FaviFake (talk) 15:27, 18 August 2025 (UTC)[reply]

 Done * Pppery * it has begun... 02:32, 19 August 2025 (UTC)[reply]
@Pppery Can we please fix this so it doesn't break templates like {{Please see}}??? —Locke Coletc 15:46, 21 August 2025 (UTC)[reply]
See Special:Diff/1307108412. —Locke Coletc 15:47, 21 August 2025 (UTC)[reply]
Huh, this is weird. Maybe the easiest fix would be to change {{Please see}} so that it only uses {{Format link}} instead, since so far there seems to be a consensus to merge the other into {{Format link}}. FaviFake (talk) 15:51, 21 August 2025 (UTC)[reply]
{{Please see}} is using {{format link}}...? What is there to change at {{please see}}? —Locke Coletc 15:58, 21 August 2025 (UTC)[reply]
Crap you're right. I struck my comment. FaviFake (talk) 16:18, 21 August 2025 (UTC)[reply]
I re-opened the ER in case Pppery is offline. FaviFake (talk) 15:52, 21 August 2025 (UTC)[reply]
Looks like Jonesey95 already dealt with this. (I did see the ping, but responding to it fell off my plate, sorry). * Pppery * it has begun... 19:38, 21 August 2025 (UTC)[reply]
Well, that disables the notification altogether, even on pages that transclude this, making it only appear on the template page. At least it won't cause problems. Aaron Liu (talk) 20:02, 21 August 2025 (UTC)[reply]
I've checked WP:TFD, this does seem to be the standard practive for substituted templates. FaviFake (talk) 20:21, 21 August 2025 (UTC)[reply]
But this is the opposite of a substituted template, given how it's predominantly transcluded and has a warning against substitution for some reason. Aaron Liu (talk) 21:01, 21 August 2025 (UTC)[reply]
I think the warning might be out of date, hoping Nardog (who added the WP:SAFESUBST changes) can shed some light on this. —Locke Coletc 21:03, 21 August 2025 (UTC)[reply]
Oh, right. I have no idea what to do then, the original edit by Pppery was justified. FaviFake (talk) 21:53, 21 August 2025 (UTC)[reply]
I do not know how to test this, but it looks like unsafesubsting the noinclude module invocation should work? That means replacing with the following:
{{safesubst:<noinclude />#ifeq:{{safesubst:<noinclude />issubst}}<noinclude>yes</noinclude>|yes
 |{{Tfm/dated<noinclude>|demo=yes|bigbox=yes</noinclude>|page={{safesubst:<noinclude />PAGENAME:{{safesubst:<noinclude />#if:{{{page|}}}|{{{page}}}|{{safesubst:<noinclude />PAGENAME}}}}}}|otherpage={{{otherpage|{{{1|{{{2|}}}}}}}}}|link=Wikipedia:Templates for discussion/Log/{{safesubst:<noinclude />#time: Y F j|{{safesubst:<noinclude />CURRENTTIMESTAMP}}}}#{{safesubst:<noinclude />#if:{{{heading|}}}{{{header|}}}|{{{heading|{{{header}}}}}}|{{safesubst:<noinclude />#ifeq:{{{type}}}|module|Module|Template}}:{{safesubst:<noinclude />PAGENAME:{{safesubst:<noinclude />#if:{{{page|}}}|{{{page}}}|{{safesubst:<noinclude />{{safesubst:<noinclude />#ifeq:{{{type|}}}|module|BASE}}PAGENAME}}}}}}}}{{safesubst:<noinclude />#if:{{{type|}}}|{{safesubst:<noinclude />!}}type={{{type}}}}}{{safesubst:<noinclude />#if:{{{help|}}}|{{safesubst:<noinclude />!}}help={{{help}}}}}<includeonly>|bigbox={{safesubst:#ifeq:{{{type|}}}|module|yes|{{#invoke:Noinclude|noinclude|text=yes}}</includeonly>}}
 |{{error
  |message=This template must be [[Wikipedia:Substitution|substituted]].
 }}[[Category:Templates for merging|*{{PAGENAME}}]]
}}<noinclude>
{{documentation}}
</noinclude>
Note the change from {{safesubst:((}}#invoke:Noinclude{{safesubst:!}}noinclude{{safesubst:!}}text=yes{{safesubst:))}} Aaron Liu (talk) 17:18, 21 August 2025 (UTC)[reply]
Looking into this further, why is tm:format link safesubst-ed by tm:please see? This template explicitly says it should not be substituted: This template doesn't work with subst. I couldn't find an explanation on the tm:Please see talk page either. Aaron Liu (talk) 17:24, 21 August 2025 (UTC)[reply]
Maybe it doesn't work in certain circumstances but it clearly did work prior to the TFD coming in like a wrecking ball. —Locke Coletc 18:03, 21 August 2025 (UTC)[reply]
@Nardog Is this template substituteable since you added safesubst? —Locke Coletc 19:06, 21 August 2025 (UTC)[reply]
@Hairy Dude, as you're the one who updated the docs in 2014 to say the template can't be WP:SUBST'd can you shed some light on that? —Locke Coletc 21:56, 21 August 2025 (UTC)[reply]
I don't remember. I see I wrote "doesn't work" which suggests a technical limitation. Maybe subst didn't work with Lua-based templates 11 years ago? Hairy Dude (talk) 18:46, 24 August 2025 (UTC)[reply]
It's all good, it was a longshot that you'd remember after all this time anyways. =) Thanks for replying. —Locke Coletc 04:05, 25 August 2025 (UTC)[reply]