Template:Editnotice load: Difference between revisions

From TEPwiki, Urth's Encyclopedia
Jump to navigation Jump to search
Content added Content deleted
(temporarily load from both Template:Editnotices/{{FULLPAGENAME}} and Template:Editnotices/Page/{{FULLPAGENAME}})
m (16 revisions imported from wikipedia:Template:Editnotice_load)
 
(13 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{#if: {{Editnotice load/content
{{#ifexist:Template:Editnotices/{{FULLPAGENAME}}|
| notice action = {{{notice action|}}}
<div class="editnotice editnotice-single-page">{{Editnotices/{{FULLPAGENAME}}}}</div>
}} | <!--
}}{{#ifexist:Template:Editnotices/Page/{{FULLPAGENAME}}|
We unfortunately have to call /content twice so that the editnotice-area and clear elements
<div class="editnotice editnotice-single-page">{{Editnotices/Page/{{FULLPAGENAME}}}}</div>
are only output if there is at least one actual edit notice. This ensures the software can determine
whether or not a page has edit notices (for the API, WikiEditor, VisualEditor and others). And to ensure
MediaWiki:Editnotice-notext gets shown when appropiate.
--><div id="editnotice-area" class="editnotice-area mw-parser-output" style="clear: both; width: 100%;">{{Editnotice load/content
| notice action = {{{notice action|}}}
}}<div style="clear: both;"></div></div>
}}<noinclude>
}}<noinclude>

{{pp-template|small=yes}}
{{documentation}}
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Latest revision as of 20:42, 8 August 2023