rEACIL/8700a219eaeemaster
rEACIL/
8700a219eaeemaster
/
/
README.md
README.md
What it does
This extension prevents [[File:Something.pdf|thumb]] from rendering on the pages if all of the following is true:
- pdf is listed in $wgAControlImageLinkRestrictedExtensions array:
$wgAControlImageLinkRestrictedExtensions = [ 'pdf' ],
- File:Something.pdf has <accesscontrol> tag,
- Article that includes [[File:]] syntax either doesn't have <accesscontrol> tag,
or its <accesscontrol> tag is different from <accesscontrol> on File:Something.pdf.
If thumbnailing was prevented, an image link will be shown instead of thumbnail.
Why is this needed
For example, a wiki might want to display a page from PDF book, but also show some disclaimers or something on the same page as PDF thumbnail.
This extension can be used to prevent including this PDF book to pages which are not marked as pages where this PDF book can be included.
(you can allow it by adding <accesscontrol> tag to File:Something.pdf and article)
Content licensed under Creative Commons Attribution-ShareAlike (CC BY-SA) 4.0 unless otherwise noted; code licensed under GNU General Public License (GPL) 2.0 or later and other open source licenses. By using this site, you agree to the Terms of Use, Privacy Policy, and Code of Conduct. · Wikimedia Foundation · Privacy Policy · Code of Conduct · Terms of Use · Disclaimer · CC-BY-SA · GPL · Credits