සැකිලි සාකච්ඡාව:Wikidata image
මාතෘකාවක් එක්කරන්නEdit request: Update Template:Wikidata_image to close null operation loop
[සංස්කරණය](Apologies for posting in English)
Hello everyone,
This is a notice regarding this Template that is used in many pages. The template contains operations that have no output; despite having no result, the operation is still processed.
As this Template is used on millions of pages across the Wikimedia Projects, this creates a significant but unnecessary additional load on Wikimedia servers: we would like to reduce this.
// The change //
Currently, the template performs a series of functions, some of which have no output (known as a null operation loop). These functions can be removed without changing or harming the template’s functionality.
// What you need to do //
Please update the local template code of Template:Wikidata_image with this version we have created, available here: Suggested edit for Template:Wikidata_image, and it is also pasted below, for you convenience:
{{ #if:{{NAMESPACE}}||
{{ #if:{{{1|}}}
|
|
{{ #if:{{{2|}}}
|
| {{ #if:{{#property:P18}}
| [[Category:No local image but image on Wikidata]]
|
}}
}}
}}
}}<noinclude>
{{doc}}
</noinclude>
Note: The [[Category:No local image but image on Wikidata]] name is often locally translated, please check what is in the previous version and replace if needed.
Let me know if you have any questions about this change or need assistance to make the edit. Thank you for your help! – Danny Benjafield (WMDE) (talk) 08:38, 20 අප්රේල් 2026 (යූටීසී)
- I imported the latest code from English Wikipedia. That fixes the issue mentioned here; right? -- Lee (talk) 08:53, 21 අප්රේල් 2026 (යූටීසී)
- Hello @Lee, sorry for such a late reply. Yes the empty operation loops should be closed with the enwiki version, but please note they have included a 3rd parameter for tracking category, you can read about it here: 3rd param, thanks a lot! --Danny Benjafield (WMDE) (talk) 12:39, 9 ජූනි 2026 (යූටීසී)
- @Danny Benjafield (WMDE), thanks for the info. It seems we are already using the same tracking category, I guess everything is OK. -- Lee (talk) 12:56, 9 ජූනි 2026 (යූටීසී)
- Hello @Lee, sorry for such a late reply. Yes the empty operation loops should be closed with the enwiki version, but please note they have included a 3rd parameter for tracking category, you can read about it here: 3rd param, thanks a lot! --Danny Benjafield (WMDE) (talk) 12:39, 9 ජූනි 2026 (යූටීසී)