Extension:YouTube/pl
Status wydania: stabilne |
|
|---|---|
| Realizacja | Znaczniki, Media |
| Opis | Allows to embed YouTube and Niconico movies, as well as Archive.org audio and video |
| Autor(zy) | Przemek Piotrowski |
| Ostatnia wersja | 1.9.4 |
| MediaWiki | >= 1.34.0 |
| Zmiany w bazie danych | Nie |
| Licencja | Licencja GNU General Public License 2.0 lub nowsza |
| Pobieranie | |
| Przykład | Any ShoutWiki site |
|
|
| Przetłumacz rozszerzenie YouTube jeżeli jest dostępne na translatewiki.net | |
| Rola Vagrant | youtube |
The YouTube extension allows users to embed YouTube and Niconico movies, as well as Archive.org audio and video.
Originally made by and for Fandom, though Fandom no longer uses this extension.
Instalacja
- Pobierz i umieść plik(i) w katalogu o nazwie
YouTubew folderzeextensions/.
Developers and code contributors should install the extension from Git instead, using:cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/YouTube
- Dodaj poniższy kod na dole twojego pliku LocalSettings.php:
wfLoadExtension( 'YouTube' );
Zrobione – Przejdź do Special:Version na twojej wiki, aby sprawdzić czy rozszerzenie zostało pomyślnie zainstalowane.
Użycie
To embed a YouTube video:
<youtube>foo</youtube>
where foo is the video ID from the URL. i.e. if the video's URL is https://www.youtube.com/watch?v=VyBSS48E4xI, then the embed code would be:
<youtube>VyBSS48E4xI</youtube>
Other supported services
See ShoutWiki's help page on using the YouTube extension for more information, such as using alternate, non-YouTube providers to embed content.
The YouTube extension allows also to embed content from these services:
| Archive.org video | <aovideo>
|
| Archive.org audio | <aoaudio>
|
| Nicovideo | <nicovideo>
|
Setting width and height
Example:
<youtube width="200" height="120">CCz1kmfqL7g</youtube>
You can change the width and height of the video box
- Width is controlled with
width="xxx", wherexxxis the number of pixels.
The default is 640 pixels.
- Height is controlled in the same way with
height="xxx".
The default is 385 pixels.
| To rozszerzenie jest dołączone do następujących farm/hostów wiki lub pakietów: |
- Stable extensions/pl
- Tag extensions/pl
- Media handling extensions/pl
- GPL licensed extensions/pl
- Extensions in Wikimedia version control/pl
- ParserFirstCallInit extensions/pl
- All extensions/pl
- Extensions available as Debian packages/pl
- Extensions included in ShoutWiki/pl
- YouTube extensions/pl
- Video player extensions/pl
- Extensions by Fandom/pl
