Extension:SimpleEmbed
From Linux Web Expert
SimpleEmbed Release status: stable |
|
---|---|
Implementation | Tag , Media |
Description | Allows for embedding files on a page |
Author(s) | |
Latest version | 0.2 (2023-01-18) |
MediaWiki | >= 1.35 |
Database changes | No |
License | Public domain |
Download | GitHub:
<translate> Note:</translate> |
<embed> |
|
Quarterly downloads | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Public wikis using | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
The SimpleEmbed extension adds the <embed> tag for embedding files. It supports remote and local (uploaded to MediaWiki) files.
This extension is based on the EmbedAll extension.
Installation
- <translate> Download and place the file(s) in a directory called <tvar name=name>
SimpleEmbed
</tvar> in your <tvar name=ext>extensions/
</tvar> folder.</translate> - <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
require_once "$IP/extensions/SimpleEmbed/SimpleEmbed.php";
- File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
Usage
<embed>http://some.site.com/with/a/document.pdf</embed>
<embed width="250">Your_uploaded_document.pdf</embed>
- Options
- width
- height
You can embed all types of "embeddable" files, not just PDF's.
Categories:
- Pages with script errors
- Pages with broken file links
- Stable extensions
- Extensions without an image
- Tag extensions
- Media handling extensions
- Extensions without a compatibility policy
- Extensions with manual MediaWiki version
- Public domain licensed extensions
- Extensions in GitHub version control
- All extensions
- Extensions not in ExtensionJson
- Extensions not using extension registration