Release status: beta | |
|---|---|
| Implementation | Hook |
| Description | Can prevent inclusion of thumbnails on non-allowed pages |
| Author(s) | Edward Chernenko |
| Latest version | 0.0.1 |
| Compatibility policy | Snapshots releases along with MediaWiki. Master is not backward compatible. |
| MediaWiki | 1.34+ |
| Database changes | No |
| License | GNU General Public License 2.0 or later |
| Download | |
| |
| Translate the AControlImageLink extension if it is available at translatewiki.net | |
With theAControlImageLink extension, you can configure someuploaded image to be includable (via[[File:Name.png|thumb]]) only into the pages where you allow this image to be.
Possible uses:
How this works:
File:Something.pdf has<accesscontrol>HasSpoilers</accesscontrol>, then articles without this exactly the sameaccesscontrol tag won't render[[File:Something.pdf]] syntax. (a link to image description page is shown instead of thumbnail)accesscontrol tag are not restricted.$wgAControlImageLinkRestrictedExtensions array (default: empty) are restricted.wfLoadExtension('AControlImageLink');$wgAControlImageLinkRestrictedExtensions=['pdf'];
AControlImageLink folder to yourextensions/ directory.cdextensions/gitclonehttps://gerrit.wikimedia.org/r/mediawiki/extensions/AControlImageLinkwfLoadExtension('AControlImageLink');