Difference between revisions of "Template:comic discussion"

Explain xkcd: It's 'cause you're dumb.
Jump to: navigation, search
(the last two changes have included a full stop at the end of all discussions. If this has any effect then please find another way to do it.)
(Experimental, please review)
Line 3: Line 3:
 
</noinclude>
 
</noinclude>
 
<span id="Discussion"></span>{{#ifeq:{{FULLPAGENAME}}|{{MediaWiki:mainpage}}|<!-- Don't display anything if this is the main page -->
 
<span id="Discussion"></span>{{#ifeq:{{FULLPAGENAME}}|{{MediaWiki:mainpage}}|<!-- Don't display anything if this is the main page -->
|<span style="position:absolute; right:0; padding-top:1em;">[[File:comment.png|link=]]&nbsp;[{{fullurl:{{TALKPAGENAME}}|action=edit}} '''add a comment!''']&nbsp;&sdot;&nbsp;[[File:Icons-mini-action refresh blue.gif|link=]]&nbsp;[{{fullurl:{{FULLPAGENAME}}|action=purge}} '''refresh comments!''']</span><h1>Discussion</h1><!--
+
|<span style="position:absolute; right:0; padding-top:1em;">[[File:comment.png|link=]]&nbsp;[{{fullurl:{{TALKPAGENAME}}|action=edit}} '''add a comment!''']&nbsp;&sdot;&nbsp;[[File:comment.png|link=]]&nbsp;[{{fullurl:{{TALKPAGENAME}}|action=edit&section=new}} '''add a topic!''']&nbsp;&sdot;&nbsp;[[File:Icons-mini-action refresh blue.gif|link=]]&nbsp;[{{fullurl:{{FULLPAGENAME}}|action=purge}} '''refresh comments!''']</span><h1>Discussion</h1><!--
 
--><div style="border:1px solid grey; background:#eee; padding:1em;"><!--
 
--><div style="border:1px solid grey; background:#eee; padding:1em;"><!--
 
-->
 
-->

Revision as of 04:26, 21 March 2016

comment.png add a comment! ⋅ comment.png add a topic! ⋅ Icons-mini-action refresh blue.gif refresh comments!

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:
I don't know what is wrong with that talk page, but it appears to be happening only for that comic.
lcarsos (talk) 22:19, 30 August 2012 (UTC)

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&section=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)
I agree with Davidy22. Most replies should not start a new section because users are just replying to an existing one. If some likes to open a new section it's still easy.--Dgbrt (talk) 17:26, 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)