Extension:Snap! Project Embed
SnapProjectEmbed Release status: stable |
|
---|---|
File:SnapProjectEmbed example.png | |
Implementation | Parser function |
Description | An extension to embed Snap! Projects into MediaWiki pages |
Author(s) |
|
Latest version | 3.2.0 |
MediaWiki | 1.35+ |
PHP | 7.0+ |
Database changes | No |
License | GNU General Public License 3.0 or later |
Download | GitHub:
<translate> Note:</translate> |
Example | Snap! Wiki |
snap, snap-project |
|
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 Snap! Project Embed extension adds a system for embedding Snap! projects. It uses <snap> tags.
Installation
- <translate> <tvar name=1>Download, extract</tvar> and place the file(s) in a directory called <tvar name=name>
SnapProjectEmbed
</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>
wfLoadExtension( 'SnapProjectEmbed' );
- 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
- Loading a project with Snap!'s default width and height:
<snap project="project-name" user="user" />
- Loading a project with custom width and height:
<snap project="project-name" user="user" width="width" height="height" />
- Loading a project without showing the title and author of the project (defaults to true):
<snap project="project-name" user="user" width="width" taa="false" />
- Loading a project without the edit button (defaults to true):
<snap project="project-name" user="user" pause="false" />
- Loading a project without the pause button (defaults to true):
<snap project="project-name" user="user" pause="false" />
You can also use the extension like this- <snap project="project-name" user="user"></snap>
. Additionally, instead of using the <snap>
tag, you can also use the <snap-project>
tag.
If you get a error message, you probably forgot the project name or the username. Error: Username Missing means that you forgot the username, and Error: Project Name Missing means that the project name is missing.
Compatibility
The development of Snap! Project Embed occurs on the main
branch. Once a new version is ready to be released, the new code is pushed to the stable
branch. These two branches always have support for the latest LTS version of MediaWiki and newer versions.
See also
File:OOjs UI icon information-progressive.svg | <translate> This extension is included in the following wiki farms/hosts and/or packages:</translate>
<translate> This is not an authoritative list.</translate> <translate> Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here.</translate> <translate> Always check with your wiki farms/hosts or bundle to confirm.</translate> |
- Pages with script errors
- Pages with broken file links
- Stable extensions
- Parser function extensions
- Extensions without a compatibility policy
- Extensions with manual MediaWiki version
- GPL licensed extensions
- Extensions in GitHub version control
- ParserFirstCallInit extensions
- All extensions
- Extensions not in ExtensionJson