Template:comic discussion
(edit documentation)
The template {{comic discussion}} has an associated sandbox, available at {{comic discussion/sandbox}}. See also {{comic}} and {{comic/sandbox}}.
Usage
|
This template is compatible |
This template is used to embed the talk page at the bottom of every explanation. On every page other than the MediaWiki:mainpage, it prints three quick action buttons (add a comment, start a new topic, and refresh), a "Discussion" heading, and a box transcluding the page's talk page, or a prompt to start one.
Explanation Improvement Project tracking
This template also records the outcome of a page's nomination for This Week's Explanation for Improvement (twefi), using the following optional parameters:
twefi, eitheryes(the nomination went ahead and this page was featured) orno(the nomination did not go ahead).date, a month and year if the nomination, such asSeptember 2026, matching a section anchor on the project page. Bothtwefianddateare expected to be set once a nominated explanation has either been selected or failed.oldandnew, optional permanent revision IDs shown as a link in the talk page banner to illustrate how much the explanation changed. Any combination works: if both are given, a diff link between the two revisions is shown; if only one is given, a permanent link to that revision is shown instead.|1=through|10=, optional improvement suggestions shown as a collapsible iconed list inside both talk page banners, in the same format as {{incomplete}}. The list is collapsed by default. At least|1=must be given for the list to appear.
This tracking is currently limited, on purpose, to the single test page 172: Skateboarding is Not a Crime, so the feature can be checked before being rolled out to every comic. On that page only:
- if
twefi=yesanddateare both given, the discussion box turns green, a green, borderless notice recording the successful week is added below it, the page is added to Category:Successful nominations for This Week's Explanation for Improvement, and a small star indicator linking to explain xkcd:Explanation Improvement Project#Past successful nominations Is added next to the page title. - if
twefi=noanddateare both given, the discussion box stays its normal blue, a grey, borderless notice is added below it instead, the page is added to Category:Unsuccessful nominations for This Week's Explanation for Improvement, and the star indicator links to explain xkcd:Explanation Improvement Project#Unsuccessful nominations Instead. - if only 1 parameter is given or
twefiis anything other thanyesorno, a red warning asks the editor to fix the template parameters. - If the page is currently the TWEFI and these parameters aren't given, a red warning asks the editor to add them.
- Otherwise, nothing happens.
Examples
See an example of how it works in explain xkcd:This Week's Explanation for Improvement: 172: Skateboarding is Not a Crime. And see how it works on a previous successful (380: Emoticon) or unsuccessful (unixkcd) nomination.
=== Current TWEFI ===
{{:{{TWEFI}}}}
=== Past successful TWEFI ===
{{:380: Emoticon}}
=== Past successful TWEFI===
{{:1975: Right Click}}
Add comment
Create topic (use sparingly)
Refresh
Discussion
The template eats whitespace, compare Talk:1101: Sketchiness and 1101: Sketchiness. --Kronf (talk) 20:58, 30 August 2012 (UTC)
- Nope. In most cases it performs fine. Here's just a few examples:
- 1094: Interview vs. Talk:1094: Interview
- 1093: Forget vs. Talk:1093: Forget
- 1092: Michael Phelps vs. Talk:1092: Michael Phelps (last 2 comments)
- 1091: Curiosity vs. Talk:1091: Curiosity (at least the first 2 comments)
- 1090: Formal Languages vs. Talk:1090: Formal Languages
- etc.
- I don't know what is wrong with that talk page, but it appears to be happening only for that comic.
New topic for testing purposes
Just testing what the TOC looks like... Mark Hurd (talk) 11:01, 14 April 2013 (UTC)
FYI I've mentioned my change to "add a topic!" here for a wider audience. Mark Hurd (talk) 11:33, 14 April 2013 (UTC)
Switched to level-1 header
I was just on 1110 and I noticed that all the talk page sections were showing up as the same level as content sections... leaving a "Discussion" section with nothing actually in it. While level-1 is normally reserved for article titles, it doesn't really bother people usually, and I think it's preferable to the alternative... it's also somewhat fitting, since we are transcluding another page after all. (Another option would be configuring the "new section" button to create a level-3 header on talk pages... if that's possible.) PinkAmpersand (talk) 14:33, 30 April 2013 (UTC)
- Thanks. This actually had been done before. Please see this discussion and add your thoughts :) Waldir (talk) 16:48, 1 May 2013 (UTC)
"add a comment!" button
I noticed that the link appended onto the "add a comment!" button is {{fullurl:{{TALKPAGENAME}}|action=edit}}. Wouldn't it make more sense to have it as {{fullurl:{{TALKPAGENAME}}|action=edit§ion=new}}, as to create a new section by clicking that button? Schiffy (Speak to me|What I've done) 15:48, 12 July 2013 (UTC)
- If someone just wants to add a comment without making a new section, the current add a comment button serves them well. Plus, headers and transclusion do not mix well, and we tend to avoid them in discussion pages unless we're not transcluding; see Time and its respective talk page. Davidy²²[talk] 16:39, 12 July 2013 (UTC)
TOC
Is there a way to keep the discussion in the TOC, but not show it on the main page?--17jiangz1 (talk) 14:35, 20 April 2015 (UTC)
- Given our new comic descriptions are added by a bot, it wouldn't be too hard to add <noinclude>{{comic discussion}}</noinclude> instead of just {{comic discussion}}. Mark Hurd (talk) 03:05, 21 April 2015 (UTC)
- Aren't comic descriptions added manually?--17jiangz1 (talk) 04:42, 22 April 2015 (UTC)
Error in empty comments logic?
I could be wrong, but I believe there is an error in the empty comments logic added by User:Artyer in this revision. It looks like the template currently takes the magic word TALKPAGENAME and compares it to the "Please sign your posts with..." comment. Of course, TALKPAGENAME will never be equivalent to that and I suspect it should be looking at the content of the page pointed to by TALKPAGENAME instead. I believe that instead of:
{{#ifeq:{{TALKPAGENAME}}|<!--Please sign your posts with ~~~~--> |''No comments yet!''|{{#ifeq:{{TALKPAGENAME}}|<!--Empty-->
it should be:
{{#ifeq:{{:{{TALKPAGENAME}}}}|<!--Please sign your posts with ~~~~--> |''No comments yet!''|{{#ifeq:{{:{{TALKPAGENAME}}}}|<!--Empty-->
Note the addition of the colons, which seems to force expanding the content of the talk page. 162.158.214.82 01:30, 20 May 2019 (UTC)
Add Class to template
Could someone add a class to the template (more specifically, change it to something like <div class="disctemp" style="border:1px solid grey; background:#eee; padding:1em;">? I've been working on a dark mode for the wiki to hopefully release publicly at some point, but this template and the Main Page are the only things in my way that i know of so far someone, i guess (talk) 01:57, 18 October 2023 (UTC)
- ✓ Done Does it work now? --FaviFake (talk) 09:49, 1 March 2025 (UTC)
Add comment