< Template:April Fools

(Fixing.)
m (it immediately occurs to me that the template should check)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#ifexpr: {{CURRENTDAY}} = 1 and {{CURRENTMONTH}} = 4 | <!-- only display the header and joke on April Fools' Day -->
+
{{#ifexist:Scratch Wiki:April Fools/{{FULLPAGENAME}}|<indicator name="April Fools">[[File:Rage icon.png|20px|link=Scratch Wiki:April Fools/{{FULLPAGENAME}}]]</indicator>}}{{#ifexpr:{{CURRENTDAY}} = 1 and {{CURRENTMONTH}} = 4|<!-- only display the header and joke on April Fools' Day -->{{Header Template|1=[[File:Rage icon.png|75px]]|2=<span style="font-size:14px">This page has been modified for [[April Fools' Day]]. Don't take it seriously.</span><br/><span style="font-size:10px">The real article can be dropped-down at the [[#view-original|bottom]] of the page.</span>}}{{{{{1|Scratch Wiki:April Fools/{{FULLPAGENAME}}}}}}}<!-- include the joke page: either the first parameter, or what we assume to be the joke page --><div id="view-original" style="clear: both; background-color: lime; font-weight: bold; font-size: 1.1em; text-align: center; padding: 0.5em; border-radius: 5px;" class="mw-customtoggle-af">View Original Page</div><div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-af"><!-- hide the original page, but let the user uncollapse it (unclosed elements are automatically closed by MediaWiki) -->}}<!-- display nothing on other days --><noinclude>{{/doc}}[[Category:Templates]]</noinclude>
{{Header Template| 1= [[File:Rage icon.png|50px]] | 2= <span style="font-size:14px"> This page has been modified for [[April Fools' Day]]. Don't take it seriously.</span><br/><span style="font-size:10px">The real article can be dropped-down at the bottom of the page.</span>}}
 
{{ {{{ 1 | User:Scratch Wiki:April Fools/{{FULLPAGENAME}} }}} }}
 
<!-- include the joke page - either the first parameter, or what we assume to be the joke page -->
 
{{collapse top|View Original Page}}
 
<!-- hide the original page, but let the user uncollapse it (collapsible table is automatically closed in HTML) -->
 
}} <!-- display nothing on other days --><noinclude>{{/doc}}[[Category:Templates]]</noinclude>
 

Latest revision as of 04:24, 1 August 2019

[edit] [history] [purge] Documentation Template documentation

This documentation is transcluded from Template:April Fools/Apr1/doc.

Do not use this template. Use {{April Fools}} instead.

This template shows a header on April Fools' Day (April 1st), showing a link to the April Fools' version of the page here.