< Template:April Fools

m (whitespace brings nothing but trouble with MW syntax)
(on pages with AF versions, add link to AF version in indicator. It's small, but it's there.)
Line 1: Line 1:
{{#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>
+
<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>

Revision as of 04:23, 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.