Difference between revisions of "Template:comic discussion/assist"
Firestar233 (talk | contribs) (found it) |
(Commented) |
||
| Line 1: | Line 1: | ||
<noinclude>__TOC__</noinclude><br><div style="clear: both"></div><span id="Discussion"></span>{{#ifeq:{{FULLPAGENAME}}|{{MediaWiki:mainpage}}|<!-- Don't display anything if this is the main page | <noinclude>__TOC__</noinclude><br><div style="clear: both"></div><span id="Discussion"></span>{{#ifeq:{{FULLPAGENAME}}|{{MediaWiki:mainpage}}|<!-- Don't display anything if this is the main page | ||
| − | STYLING OF BUTTONS -->|<span style="position: absolute; right:0; padding-top:1.7em; font-size: 105%;"><!-- | + | STYLING OF BUTTONS -->|<span style="position: absolute; right:0; padding-top:1.7em; font-size: 105%;"><!-- |
| − | FIRST BUTTON -->[[File:comment.png|21x21px|link={{fullurl:{{TALKPAGENAME}}|action=edit}}]]<span class="no-link-underline">[{{fullurl:{{TALKPAGENAME}}|action=edit}} </span>'''Add comment'''] <!-- | + | FIRST BUTTON -->[[File:comment.png|21x21px|link={{fullurl:{{TALKPAGENAME}}|action=edit}}]]<span class="no-link-underline">[{{fullurl:{{TALKPAGENAME}}|action=edit}} </span>'''Add comment'''] <!-- |
| − | SECOND BUTTON -->[[File:new topic.png|21x21px|link={{fullurl:{{TALKPAGENAME}}|action=edit§ion=new}}]]<span class="no-link-underline">[{{fullurl:{{TALKPAGENAME}}|action=edit§ion=new}} </span>'''Create topic (use sparingly)'''] <!-- | + | SECOND BUTTON -->[[File:new topic.png|21x21px|link={{fullurl:{{TALKPAGENAME}}|action=edit§ion=new}}]]<span class="no-link-underline">[{{fullurl:{{TALKPAGENAME}}|action=edit§ion=new}} </span>'''Create topic (use sparingly)'''] <!-- |
| − | THIRD BUTTON -->[[File:refresh discuss.png|21x21px|link={{fullurl:{{FULLPAGENAME}}|action=purge}}]]<span class="no-link-underline">[{{fullurl:{{FULLPAGENAME}}|action=purge}} </span>'''Refresh'''] </span><h1>Discussion</h1><!-- | + | THIRD BUTTON -->[[File:refresh discuss.png|21x21px|link={{fullurl:{{FULLPAGENAME}}|action=purge}}]]<span class="no-link-underline">[{{fullurl:{{FULLPAGENAME}}|action=purge}} </span>'''Refresh'''] </span><h1>Discussion</h1><!-- |
| − | STYLING OF DISCUSSION --><div class="disctemp" style="border:1px solid grey; background:#f6f6f6; padding:1.5em;"> | + | STYLING OF DISCUSSION --><div class="disctemp" style="border:1px solid grey; background:#f6f6f6; padding:1.5em;"> |
<!-- | <!-- | ||
| − | DISCUSSION | + | DISCUSSION -->{{#ifexist:{{TALKPAGENAME}}<!-- |
| − | |||
| − | |||
| − | |||
| − | |||
| − | END DISCUSSION --></div>__NOTOC__}}<noinclude>[[Category:Templates]] | + | We now know the talk page exists, so we can check if it is empty --> |
| − | </noinclude> | + | |{{#if: {{{{TALKPAGENAME}} }}<!-- |
| + | |||
| + | Ok, there was something there, so transclude it! --> | ||
| + | |{{{{TALKPAGENAME}} }}<br><!-- | ||
| + | |||
| + | Now create the ADD COMMENT button at the end | ||
| + | --><span class="no-link-underline" style="position: absolute; left:0; padding-top:1.3em; font-size: 105%;"> <!-- | ||
| + | |||
| + | Start by adding the button image, then add the label | ||
| + | -->[[File:comment.png|21x21px|link={{fullurl:{{TALKPAGENAME}}|action=edit}}]][{{fullurl:{{TALKPAGENAME}}|action=edit}} '''Add comment''']</span><br><!-- | ||
| + | |||
| + | We checked and the talk page existed but was blank, so put default prompt | ||
| + | -->|''No comments yet, [{{fullurl:{{TALKPAGENAME}}|action=edit}} add the first comment]!''}}<!-- | ||
| + | |||
| + | If the talk page didn't exist, put default prompt to create it. | ||
| + | -->|''No comments yet, [{{fullurl:{{TALKPAGENAME}}|action=edit}} add the first comment]!''}} | ||
| + | |||
| + | END DISCUSSION --></div>__NOTOC__}}<noinclude>[[Category:Templates]]</noinclude> | ||
Revision as of 15:54, 24 April 2025
Contents
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)
Add comment
