Шаблон:Image/storeinfo: различия между версиями
(обновление данных) |
|||
(не показаны 2 промежуточные версии этого же участника) | |||
Строка 2: | Строка 2: | ||
Note: |
Note: |
||
− | + | Since #ifexist is an expensive function, it will return false directly when expansive call limit exceeded. |
|
− | + | So when we get false result from #ifexist, we don't know if it really doesn't exist. Therefore, we can't cache its result into cargo table. |
|
+ | |||
+ | Note2: |
||
+ | On wikis using a shared media repository, i.e. zh/de/fr/ru/..., |
||
+ | #ifexist:Media:<filename> can be used to check if a file has been uploaded to the repository but not to the wiki itself, |
||
+ | but #ifexist:File:<filename> or {{ifexist|File:<filename>}} can't. |
||
+ | This is why we don't use inexpensive {{ifexist}} instead. |
||
-->{{#ifexist:Media:{{{1|}}}|<!-- |
-->{{#ifexist:Media:{{{1|}}}|<!-- |
||
Строка 23: | Строка 29: | ||
-->|<!-- not exist or over limit |
-->|<!-- not exist or over limit |
||
-->{{#dplvar:set<!-- |
-->{{#dplvar:set<!-- |
||
− | -->|_image_name |
+ | -->|_image_name|{{{1|}}}<!-- |
-->|_image_exist|<!-- |
-->|_image_exist|<!-- |
||
-->|_image_width|0<!-- |
-->|_image_width|0<!-- |
||
Строка 37: | Строка 43: | ||
[[Category:Templates]] |
[[Category:Templates]] |
||
[[de:Vorlage:Image/storeinfo]] |
[[de:Vorlage:Image/storeinfo]] |
||
+ | [[en:Template:Image/storeinfo]] |
||
+ | [[fr:Modèle:Image/storeinfo]] |
||
</noinclude> |
</noinclude> |
Версия 04:05, 12 июля 2020
Internal sub-template. See {{image}} for documentation.