Difference between revisions of "Template:Purge"

From Zero-K
Jump to navigation Jump to search
(This may help with the errors in images until it gets fixed on the server.)
 
(oops...)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ifeq:{{#invoke:String|find|{{filepath:Commshare.png}}|test}}|0||
+
{{#ifeq:{{#invoke:String|find|{{filepath:Selection.png}}|test.zero}}|0||
{{ombox|type=content|text=The images and links on this page may be broken at the moment. The cache on this page incorrectly points to the '''test wiki''', likely because the cache is corrupted.
+
{{ombox|type=content|text=The images and links on this page may be broken at the moment. The cache on this page points to the '''test wiki'''.
  
Please [{{canonicalurl:{{PAGENAME}}|action=purge}} purge the cache] to try to restore images and fix those links.
+
Please [{{#invoke:String|replace|{{canonicalurl:{{PAGENAME}}|action=purge}}|test.||1}} purge the cache] to try to restore images and fix those links.
}}|}}<noinclude>
+
<small>This will work ''only if'' the page is '''not''' on the test server (where this box should appear for now even when cache purging is not needed), which may lack the actual images. This page ''thinks'' that it resides on '''{{SERVERNAME}}''' right now.<small>
 +
}}
 +
|}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
 
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
 
</noinclude>
 
</noinclude>

Latest revision as of 19:31, 15 October 2024

Template documentation[create]