Template:Required image: Difference between revisions
| en>Push-f   (change category to Category:Header templates) | 
| (No difference) | 
Revision as of 09:33, 22 October 2022
<languages/> Lua error: Cannot create process: proc_open(/dev/null): Failed to open stream: Operation not permitted{{#switch:
 {{#if: 
 | {{{demospace}}}    
 | {{#ifeq:Template|File
   | file
   | other
   }} 
 }}
| file | image = {{#if:||}}
| other | #default = }} Lua error: Cannot create process: proc_open(/dev/null): Failed to open stream: Operation not permitted{{#if:<translate>
Purpose
</translate> <translate> This template adds the above notice to the page, and places the image in <tvar name=1>Category:Required files with no apparent links</tvar> in order to stop it showing up in [[<tvar name=2>Special:Unusedimages</tvar>|the list of unused files]].</translate> <translate> Text passed as the first parameter is displayed as the reason why the image is required, and should include links where appropriate.</translate>
<translate>
Usage
</translate> {{#if:{{safesubst:#switch:
|no |n |false |0 = | = |¬ = |yes |y |true |1 = yes |#default = yes
}}|Page Template:Nowrap/styles.css has no content.}}{{[[{{#if:|{{{SISTER}}}Template|Template}}:Required image|Required image]]{{#if:REASON||REASON}}{{#if:||{{{3}}}}}{{#if:||{{{4}}}}}{{#if:||{{{5}}}}}{{#if:||{{{6}}}}}{{#if:||{{{7}}}}}{{#if:||...}}}}
<translate>
- <tvar name=1>REASON</tvar> will be displayed on the second line of the notice (in place of 'No details have been supplied.' text, above).
See also
</translate>
- {{#ifeq:Template:Linked image|
|
}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:Template|Template:}}Linked image/Page display title/en
 |{{#if:
   |{{#if:
     |
     |{{ Lua error: Cannot create process: proc_open(/dev/null): Failed to open stream: Operation not permitted | nsp = 0 }}
   }}
   |{{ Lua error: Cannot create process: proc_open(/dev/null): Failed to open stream: Operation not permitted }}
 }}
 |{{#if:
   |{{#if:Linked image
     |Linked image
     |Template:Linked image
   }}
   |Template:Linked image
 }}
}}}}{{#ifeq:Template:Linked image|
|
}}
- {{#ifeq:Template:UnusedImage|
|
}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:Template|Template:}}UnusedImage/Page display title/en
 |{{#if:
   |{{#if:
     |
     |{{ Lua error: Cannot create process: proc_open(/dev/null): Failed to open stream: Operation not permitted | nsp = 0 }}
   }}
   |{{ Lua error: Cannot create process: proc_open(/dev/null): Failed to open stream: Operation not permitted }}
 }}
 |{{#if:
   |{{#if:UnusedImage
     |UnusedImage
     |Template:UnusedImage
   }}
   |Template:UnusedImage
 }}
}}}}{{#ifeq:Template:UnusedImage|
|
}}
- {{#ifeq:Template:Historical image|
|
 |{{#if:
   |{{#if:
     |
     |{{ Lua error: Cannot create process: proc_open(/dev/null): Failed to open stream: Operation not permitted | nsp = 0 }}
   }}
   |{{ Lua error: Cannot create process: proc_open(/dev/null): Failed to open stream: Operation not permitted }}
 }}
 |{{#if:
   |{{#if:Historical image
     |Historical image
     |Template:Historical image
   }}
   |Template:Historical image
 }}
}}}}{{#ifeq:Template:Historical image|
|
}}
[[Category:Header templates{{#translation:}}|Required image]] [[Category:File namespace templates{{#translation:}}|Required image]]| [[Category:Template documentation pages{{#translation:}}]] }}
