Нет описания правки |
(обновление данных) |
||
(не показана 1 промежуточная версия этого же участника) | |||
Строка 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. |
||
+ | |||
⚫ | |||
-->{{#dplvar:set<!-- |
-->{{#dplvar:set<!-- |
||
− | -->|_image_name |
+ | -->|_image_name|{{{1|}}}<!-- |
-->|_image_exist|1<!-- |
-->|_image_exist|1<!-- |
||
− | -->|_image_width|{{#imgw: |
+ | -->|_image_width|{{#imgw:{{{1|}}}}}<!-- |
− | -->|_image_height|{{#imgh: |
+ | -->|_image_height|{{#imgh:{{{1|}}}}}<!-- |
-->|_image_cached|{{#time:U}}<!-- |
-->|_image_cached|{{#time:U}}<!-- |
||
-->}}<!-- |
-->}}<!-- |
||
Строка 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.