snapwiki / SnapProjectEmbed

MediaWiki extension for embedding Snap! projects
https://www.mediawiki.org/wiki/Extension:Snap!_Project_Embed
GNU General Public License v3.0
7 stars 3 forks source link
mediawiki mediawiki-extension php snap snapwiki

Build Status code style: prettier

:warning: This branch is unsuitable for use in production. You should switch to the "stable" branch for production wikis.

Snap! Project Embed

A MediaWiki extension for embedding Snap! projects

Usage

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.

Filesystem

.
└── πŸ“‚ .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

Installation

  1. Clone this repository with Git into your "Extensions" folder using the following command:
git clone https://github.com/snapwiki/SnapProjectEmbed.git
  1. Update LocalSettings.php to add the following line:
wfLoadExtension( 'SnapProjectEmbed' );
  1. Go to Special:Version in your wiki and look at the "Installed extensions" section. It should now list SnapProjectEmbed and its version, license and contributors.

Credits

A big thank you to mw-embedScratch contributors which was our original design inspiration.

Legal

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/.

Old Versions

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-