Jump to content

Template talk:Template for discussion

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

Bolding tweak

[edit]

I propose changing the bolding on this template so that only the "its entry" is bolded, as that's really the main link people are going to want to use. {{u|Sdkb}}talk 01:55, 16 June 2021 (UTC)[reply]

I agree, but just this one? I often have to read the notice twice to remember where to click to find the discussion, because of "bolding blindness", if that is a thing. It seems like this one should be consistent with {{Article for deletion}}, {{Catfd}}, {{Cfd}}, etc. Viewed as a system, the naming and formatting of these templates is kind of a mess. – Jonesey95 (talk) 02:56, 16 June 2021 (UTC)[reply]
Yeah, good point. I'll go ahead and make the change here in the spirit of marginal improvement, but for anyone who wants to take this on as a larger project, standardizing all these notices is a task awaiting. {{u|Sdkb}}talk 04:43, 16 June 2021 (UTC)[reply]

Please document: what with protected templates?

[edit]

Please add to /documantation: how to handle with protected templates. -DePiep (talk) 12:10, 19 January 2022 (UTC)[reply]

Done, though I do note that you could have done that yourself (the /doc is not protected). Primefac (talk) 13:30, 19 January 2022 (UTC)[reply]
thx. The XfD docs & manuals are complicated, I often miss steps I need. -DePiep (talk) 13:41, 19 January 2022 (UTC)[reply]

 You are invited to join the discussion at WP:VPT § Infobox deletion discussion notice. Best, user:A smart kittenmeow 10:45, 6 December 2023 (UTC)[reply]

Type = doc page

[edit]

I think it would be helpful to have a new param value |type=template doc page, so that the message could start out with "This template doc page" when nominating Template doc pages. Or maybe just |type=doc page, and then it could be used for Module doc as well. Mathglot (talk) 23:37, 5 July 2024 (UTC)[reply]

Why? I know there are certain editors that are convinced that every unused /doc needs to be sent to TFD, but really it could just be redirected or (gasp) ignored and left alone. There is zero reason to modify the template just to add an extra word to indicate that the /doc itself is being nominated. Primefac (talk) 23:39, 5 July 2024 (UTC)[reply]
For clarity. The reason is because if one sees "This template is being nominated for deletion" it could very easily be interpreted as being the template that is nominated (that's what it says; why wouldn't it mean that?). To prevent confusion, and maybe alarm in readers viewing that statement, it should say that only the doc page is being nominated for deletion. Redirecting it is still a possibility, and WP:TFD stands for "Templates for discussion", and the one-sentence lead at that page says that it is about discussing "deletion or merging", and either one may involve creation of a redirect, so that is the proper page to discuss it. (Then again, why keep a page around and provide a redirect from it for a dead doc page with no inlinks to it other than Tfd itself?) To prevent alarm or misunderstanding on the part of users seeing a big, red-bordered box at the top of their favorite template doc page saying, This template is being discussed in accordance with Wikipedia's deletion policy it would be wise, in my opinion, to add the two extra words. Mathglot (talk) 00:08, 6 July 2024 (UTC)[reply]
Documentation pages should not be deleted if they are being actively transcluded onto a template, and if they are, the TFD nomination should be put in noinclude tags or use the parameter that disables display. Primefac (talk) 00:29, 6 July 2024 (UTC)[reply]
Agreed. I am talkig about orphan doc pages transcluded nowhwere, other than Tfd itself. Sorry if I wasn't clear about that. Mathglot (talk) 00:41, 6 July 2024 (UTC)[reply]

Hide subsequent inline instances

[edit]

At Wikipedia:Village pump (technical)#Weird problem with STN Template, the problem of {{Tfd}} and {{Tfm}} templates showing up right next to each other came up. While there's no easy way to make sure that the Tfm/Tfd template shows up only once per page, we could add .tfd ~ .tfd { display: none; } to Template:Template for discussion/styles.css, which would make it so that if multiple Tfd/Tfm templates are present in a single parent element (paragraph, table cell, list item, etc.), only the first one will show up. This would largely mitigate the problem seen with templates like {{STN}} in that linked discussion.

The only downside is that if there are different templates in the same parent that are nominated for deletion/merging, only the first will show the message. However, if the alternative is to hide the Tfd/Tfm notice altogether, I think that this solution would be preferable.

I've implemented this change in Template:Template for discussion/sandbox/styles.css, which is used by {{Template for discussion/sandbox}} and {{Tfm/sandbox}}, if you want to try it out. ay objectons to adding this to the live templates? --Ahecht (TALK
PAGE
)
20:07, 10 December 2024 (UTC)[reply]

Seems reasonable. * Pppery * it has begun... 20:16, 10 December 2024 (UTC)[reply]
Support with changes. Editors only need to be notified once. Some editors only see one notification via talkpage {{Tfd_notice}} if this month they're reading articles about other topics. Most other notices occur once at the head of the article. 172.97.141.219 (talk) 16:00, 11 December 2024 (UTC)[reply]
What if the same parent is the topmost mw-parser-output? Adding * > might prevent this for navboxen and sidebars, which are unnested and singletons: * > .tfd ~ .tfd { display: none; } This leaves inline templates, oh well I guess. 172.97.141.219 (talk) 19:34, 11 December 2024 (UTC)[reply]
* > would still hide it for all navboxes/sidebars since they are direct children of the mw-parser-output <div>...</div>. You'd want :not(.mw-parser-output) > .tfd ~ .tfd, :not(.mw-parser-output) > .tfd ~ * .tfd { display: none; } --Ahecht (TALK
PAGE
)
15:40, 17 December 2024 (UTC)[reply]
I also added a |dedup=no killswitch to turn off deduplication. --Ahecht (TALK
PAGE
)
17:05, 17 December 2024 (UTC)[reply]
That also works, and I guess it's more readable. I was relying on the fact that MediaWiki CSS security features will always automatically convert my * > .tfd ~ .tfd into .mw-parser-output * > .tfd ~ tfd. 172.97.141.219 (talk) 22:51, 17 December 2024 (UTC)[reply]
 Done, with the slight change that both .mw-parser-output and .documentation classes are excluded as parent elements. --Ahecht (TALK
PAGE
)
13:43, 28 December 2024 (UTC)[reply]

Template-protected edit request on 11 December 2024 tinier tiny-type notification via inline tag style

[edit]

Tfd/sandbox, Tfm/sandbox

Readers currently find it unusual to see intrusive full-height inline links:

"The service operates in conjunction with the Sunrise Seto service to ‹See TfM›Takamatsu between Tokyo and ‹See TfM›Okayama. The combined 14-car train departs from Tokyo, and stops at ‹See TfM›Yokohama, ‹See TfM›Atami, ‹See TfM›Numazu, ‹See TfM›Fuji, ‹See TfM›Shizuoka, ‹See TfM›Hamamatsu (final evening stop), ‹See TfM›Himeji (first morning stop), and arrives at ‹See TfM›Okayama, where the train splits."

How is that "minimal"?
— User:Isaac Rabinovitch 03:12, 7 December 2024 (UTC)

The advantage of a superscript is that readers are already accustomed to skipping over blue superscript references and inline cleanup tags.

|tiny = <templatestyles src="Template:Template for discussion/sandbox/styles.css" /><span class="tfd tfd-dated tfd-tiny">[[{{{link|Wikipedia:Templates for discussion#{{{page|}}}}}}|‹See TfD›]]</span>
+
|tinier = <templatestyles src="Template:Template for discussion/sandbox/styles.css" /><sup class="noprint Inline-Template tfd tfd-dated tfd-tinier" style="white-space:nowrap;">&#91;<i>[[{{{link|Wikipedia:Templates for discussion#{{{page|}}}}}}|TfD]]</i>&#93;</sup>
|tiny = <templatestyles src="Template:Template for discussion/sandbox/styles.css" /><span class="tfd tfd-dated tfd-tiny">[[{{{link}}}|‹See TfM›]]</span>
+
|tinier = <templatestyles src="Template:Template for discussion/sandbox/styles.css" /><sup class="noprint Inline-Template tfd tfd-dated tfd-tinier" style="white-space:nowrap;">&#91;<i>[[{{{link}}}|TfM]]</i>&#93;</sup>
Old version with wrong metatemplate

Tfd/sandbox, Tfm/sandbox

|tiny = <templatestyles src="Template:Template for discussion/sandbox/styles.css" /><span class="tfd tfd-dated tfd-tiny">[[{{{link|Wikipedia:Templates for discussion#{{{page|}}}}}}|‹See TfD›]]</span>
+
|tiny = {{Fix|text=TfD|link={{{link|Wikipedia:Templates for discussion#{{{page|}}}}}}}}
|tiny = <templatestyles src="Template:Template for discussion/sandbox/styles.css" /><span class="tfd tfd-dated tfd-tiny">[[{{{link}}}|‹See TfM›]]</span>
+
|tiny = {{Fix|text=TfM|link={{{link|Wikipedia:Templates for discussion#{{{page|}}}}}}}}

Alternatives are {{r/superscript}}, templatestyles, and perhaps | for compatibility with #Hide_subsequent_inline_instances.

172.97.141.219 (talk) 14:35, 11 December 2024 (UTC)[reply]

I refactored your changes so that they don't use {{fix}} (since TfD is not cleanup), do use the tfd class (to enable hiding subsequent ones per the section above), and moved them to a new tinier keyword, keeping the existing tiny as is. --Ahecht (TALK
PAGE
)
15:28, 11 December 2024 (UTC)[reply]
Thank you for fixing my code!
Old <angle bracket idea>
Also, the alternative I wrote in the meantime for visual distinctiveness in response to "Tfm is not cleanup" is using <> instead of []: The service operates in conjunction with the Sunrise Seto service to TfMTakamatsu between Tokyo and TfMOkayama. The combined 14-car train departs from Tokyo, and stops at TfMYokohama, TfMAtami, TfMNumazu, TfMFuji, TfMShizuoka, TfMHamamatsu (final evening stop), TfMHimeji (first morning stop), and arrives at TfMOkayama, where the train splits.
172.97.141.219 (talk) 15:52, 11 December 2024 (UTC)[reply]
My expertise on Wikipedia template development is nil, but my complaint seems to be motivating this change, so let me add my perspective.
For an ordinary user, TfM is every bit as confusing and distracting as ‹See TfM›. It's an unfamiliar annotation, and if they click on it, they land into a change discussion that pure gibberish to most them. Every one of them thinks "why the actual fuck do I need to see this"?
I hope I'm not coming off as somebody who's mad at template developers. You folks do work that's absolutely essential to those of us who just edit content. But you're a relatively small community, and I don't understand why you can't find a way to notify each other of template change discussions without munging content read by millions of Wikipedia readers.
Isaac Rabinovitch (talk) 18:48, 11 December 2024 (UTC)[reply]
Ok, nevermind the <angle bracket> idea. Most readers might only know [].
a way to notify each other of template change discussions Another new default-visible and IP-inclusive idea: We can use {{topicon}}, which teleports the notice to the top right without munging content. Unfortunately that would involve more work and article-detrimental TfDs are rare, and the related attempt at Template talk:Requested move notice#Proposed revision to make this notice less disruptive fell through. Another idea moves everything to the end matter, by using display:none |group=ed <ref>, which is deduplicated. 172.97.141.219 (talk) 19:08, 11 December 2024 (UTC)[reply]
Thanks for listening to my concerns. Isaac Rabinovitch (talk) 20:43, 11 December 2024 (UTC)[reply]
In noting that #Hide subsequent inline instances above has been implemented, and thus the TFD notice will only show once for any given template on a page, is there still a strong desire to change the announcement notice? Primefac (talk) 14:22, 28 December 2024 (UTC)[reply]