:warning: This branch is unsuitable for use in production. You should switch to the "stable" branch for production wikis.
A MediaWiki extension for embedding Snap! projects
<snap project="project-name" user="user" />
<snap project="project-name" user="user" width="width" height="height" />
<snap project="project-name" user="user" width="width" taa="false" />
<snap project="project-name" user="user" edit="false" />
<snap project="project-name" user="user" pause="false" />
<snap project="project-name" user="user" hide="true" />
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.
.
βββ π .github # GitHub Configuration - Safe to delete
βββ π dependabot.yml # Dependabot configuration
βββ π workflows # GitHub Workflows
βββ π ci.yml # Continous Integration configuration
βββ π .phan # Phan configuration directory - Safe to delete
βββ π config.php # Phan configuration file
βββ π i18n # Translations for extension
βββ π bn.json # Bengali translation
βββ π en.json # English translation
βββ π eo.json # Esperanto translation
βββ π it.json # Italian translation
βββ π includes # PHP code that power the extension
βββ π EmbedSnap.php # Main extension file - The most important file of all!
βββ π .gitignore # Lists files that Git should ignore
βββ π LICENSE # License file
βββ π README.md # The file you are reading right now!
βββ π composer.json # Lists all Composer dependencies - Safe to delete
βββ π composer.lock # Lock file for Composer - Safe to delete
βββ π extension.json # Extension manifest
βββ π phpcs.xml # PHP CodeSniffer configuration - Safe to delete
git clone https://github.com/snapwiki/SnapProjectEmbed.git
wfLoadExtension( 'SnapProjectEmbed' );
A big thank you to mw-embedScratch contributors which was our original design inspiration.
SnapProjectEmbed - A MediaWiki extension that allows embedding Snap! projects.
Copyright (C) 2020-2024 Radman Siddiki and GrahamSH
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.
The current version of Snap! Project Embed is 3.x. If you would like to use an older version, please switch to its respective branch-