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.)
 
(Use an image that actually exists on the test wiki. Break the test server a little. Eventually this will need to be fixed, but it's the best I can do for now. A little debug/explanation text in small print...)
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 [{{canonicalurl:{{PAGENAME}}|action=purge}} 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>

Revision as of 20:20, 15 October 2024

Template documentation[create]