Extension:SimpleEmbed

From Linux Web Expert

Revision as of 21:42, 29 March 2023 by imported>Pppery (... shocked that people write non-registration code in 2023)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

MediaWiki extensions manual
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
<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.