Difference between revisions of "Template:comic discussion/assist"

Explain xkcd: It's 'cause you're dumb.
Jump to: navigation, search
m
Line 15: Line 15:
 
DISCUSSION            -->{{#ifexist:{{TALKPAGENAME}}
 
DISCUSSION            -->{{#ifexist:{{TALKPAGENAME}}
 
     |{{#if: {{{{TALKPAGENAME}} }}<!-- Talk page exists, so we can check if it is empty -->
 
     |{{#if: {{{{TALKPAGENAME}} }}<!-- Talk page exists, so we can check if it is empty -->
         |
+
         |{{{{TALKPAGENAME}} }}<br><span class="no-link-underline" style="position: absolute; left:0; padding-top:1.3em; font-size: 105%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[File:comment.png|21x21px|link={{fullurl:{{TALKPAGENAME}}|action=edit}}]][{{fullurl:{{TALKPAGENAME}}|action=edit}} &nbsp; '''Add comment''']</span><br><!-- there was something there, so include it -->  
 
 
 
 
{{{{TALKPAGENAME}} }}<br><span class="no-link-underline" style="position: absolute; left:0; padding-top:1.3em; font-size: 105%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[File:comment.png|21x21px|link={{fullurl:{{TALKPAGENAME}}|action=edit}}]][{{fullurl:{{TALKPAGENAME}}|action=edit}} &nbsp; '''Add comment''']</span><br><!-- there was something there, so include it -->  
 
 
         |''No comments yet, [{{fullurl:{{TALKPAGENAME}}|action=edit}} add the first comment]!''}}<!-- talk page was blank, so put default prompt -->
 
         |''No comments yet, [{{fullurl:{{TALKPAGENAME}}|action=edit}} add the first comment]!''}}<!-- talk page was blank, so put default prompt -->
 
     |''No comments yet, [{{fullurl:{{TALKPAGENAME}}|action=edit}} add the first comment]!''}}<!-- talk page didn't exist, so put default prompt.
 
     |''No comments yet, [{{fullurl:{{TALKPAGENAME}}|action=edit}} add the first comment]!''}}<!-- talk page didn't exist, so put default prompt.
  
 
END DISCUSSION        --></div>__NOTOC__}}<noinclude>[[Category:Templates]]
 
END DISCUSSION        --></div>__NOTOC__}}<noinclude>[[Category:Templates]]
 +
----
 
<br><div style="clear: both"></div><span id="Discussion"></span>{{#ifeq:{{FULLPAGENAME}}|{{MediaWiki:mainpage}}|<!-- Don't display anything if this is the main page
 
<br><div style="clear: both"></div><span id="Discussion"></span>{{#ifeq:{{FULLPAGENAME}}|{{MediaWiki:mainpage}}|<!-- Don't display anything if this is the main page
  
Line 35: Line 33:
  
  
STYLING OF DISCUSSION  --><div class="disctemp" style="border:1px solid grey; background:#f5f5f5; padding:1.5em;"><!--
+
STYLING OF DISCUSSION  --><div class="disctemp" style="border:1px solid grey; background:#f6f6f6; padding:1.5em;"><!--
  
 
DISCUSSION            -->{{#ifexist:{{TALKPAGENAME}}
 
DISCUSSION            -->{{#ifexist:{{TALKPAGENAME}}
    |{{#ifeq:{{TALKPAGENAME}}|&lt;!--Please sign your posts with &#126;&#126;&#126;&#126;--&gt;
+
    |{{#if: {{{{TALKPAGENAME}} }}<!-- Talk page exists, so we can check if it is empty -->
|''No comments yet, [{{fullurl:{{TALKPAGENAME}}|action=edit}} add the first comment]!''|{{#ifeq:{{TALKPAGENAME}}|<!-- If it's empty, then...
+
        |
  
-->|''No comments yet, [{{fullurl:{{TALKPAGENAME}}|action=edit}} add the first comment]!''|
 
{{:{{TALKPAGENAME}}}}}}}}<br><span class="no-link-underline" style="position: absolute; left:0; padding-top:1.3em; font-size: 105%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[File:comment.png|21x21px|link={{fullurl:{{TALKPAGENAME}}|action=edit}}]][{{fullurl:{{TALKPAGENAME}}|action=edit}} &nbsp; '''Add comment''']</span><br>
 
 
    |''No comments yet, [{{fullurl:{{TALKPAGENAME}}|action=edit}} add the first comment]!''}}
 
 
</div>__NOTOC__}}
 
  
 +
{{{{TALKPAGENAME}} }}<br><span class="no-link-underline" style="position: absolute; left:0; padding-top:1.3em; font-size: 105%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[File:comment.png|21x21px|link={{fullurl:{{TALKPAGENAME}}|action=edit}}]][{{fullurl:{{TALKPAGENAME}}|action=edit}} &nbsp; '''Add comment''']</span><br><!-- there was something there, so include it -->
 +
        |''No comments yet, [{{fullurl:{{TALKPAGENAME}}|action=edit}} add the first comment]!''}}<!-- talk page was blank, so put default prompt -->
 +
    |''No comments yet, [{{fullurl:{{TALKPAGENAME}}|action=edit}} add the first comment]!''}}<!-- talk page didn't exist, so put default prompt.
  
 +
END DISCUSSION        --></div>__NOTOC__}}
 
</noinclude>
 
</noinclude>

Revision as of 02:48, 24 April 2025


comment.png  Add comment      new topic.png  Create topic (use sparingly)     refresh discuss.png  Refresh 

Discussion

This is a test. --FaviFake (talk) 14:21, 25 April 2025 (UTC)

Bug Fix

This template exists to fix a bug where headers will not render if they're the first thing on the discussion page.

Separate template

Does this really need its own template?

Nope! I turned it into a sandbox. --FaviFake (talk) 14:21, 25 April 2025 (UTC)
      comment.png  Add comment


comment.png  Add comment      new topic.png  Create topic (use sparingly)     refresh discuss.png  Refresh 

Discussion

This is a test. --FaviFake (talk) 14:21, 25 April 2025 (UTC)

Bug Fix

This template exists to fix a bug where headers will not render if they're the first thing on the discussion page.

Separate template

Does this really need its own template?

Nope! I turned it into a sandbox. --FaviFake (talk) 14:21, 25 April 2025 (UTC)
      comment.png  Add comment