Extension:JavascriptSlideshow/pl
![]() Status wydania: stabilneCategory:Stable extensions/pl |
|
---|---|
Realizacja | ZnacznikiCategory:Tag extensions/pl, Funkcja parseraCategory:Parser function extensions/pl |
Opis | Allows to create a slideshow (using JavaScript) from multiple included div elements |
Autor(zy) |
|
Opiekun(owie) | Miraheze, Brent Laabs |
Ostatnia wersja | 2.1.0 (2025-01-13) |
MediaWiki | 1.29+Category:Extensions with manual MediaWiki version |
PHP | 5.6+ |
Zmiany w bazie danych | Nie |
Licencja | Licencja GNU General Public License 3.0 lub nowsza |
Pobieranie | GitHub: Uwaga: |
<slideshow> |
|
The JavaScriptSlideshow extension creates a slideshow that can:
- Create a "rotating" slideshow (i.e., one that changes from one picture to another)
- Create stop-action animation from multiple images or multiple pieces of text
Instalacja
- Download, extract i umieść plik(i) w katalogu o nazwie
JavascriptSlideshow
w swoim kataloguextensions/
. - Dodaj poniższy kod na dole twojego pliku LocalSettings.php :
wfLoadExtension( 'JavascriptSlideshow' );
Zrobione – Przejdź do Special:Version na twojej wiki, aby sprawdzić czy rozszerzenie zostało pomyślnie zainstalowane.
Options / attributes
- id
- The ID to be given to the div containing the content. This allows you to pre-specify the id for styling purposes. If none is specified, the id will be a randomly generated number starting with 'slideshow_' (e.g., slideshow_12345).
- refresh
- The time, in milliseconds, between transitions. The default is 1000 milliseconds (one second).
- sequence
- The sequence in which the content is displayed. It must be one of the following values:
- forward: This is the default.
- backward
- random
- transition
- How to transition (change) between content. It must be one of the following values:
- cut: A straight cut from the current content to the new content. This is the default.
- fade: A one-second fade between the current and new content.
- blindDown: The new content "rolls down" over the existing content.
- transitiontime
- The time, in milliseconds, that transitions take to complete. The default is 400 milliseconds. Increase it to make transitions slower.
- center
- If 'true', center the slideshow (it only works for slideshows of images, not text).
Examples
Tag
<slideshow sequence="random" transition="fade" refresh="1000">
<div>[[File:Tabby cat with blue eyes-3336579.jpg|thumb|300px|Cat with blue eyes.]]</div>
<div>[[File:Cat cute persian cat.jpg|300px|A cat.]]</div>
<div>This slide has no image.
It can have multiple paragraphs.
</div>
<div>[[File:Cute cat (1698598876).jpg|300px|Another cat.]]</div>
</slideshow>
This results in a div (with a randomly generated ID) that randomly changes every 1 second between the three images specified (which happen to be wiki images) and a slide that has no image (to demonstrate that this is possible).
Parser function
{{#slideshow: <div>Tick</div><div>Tock</div> |id=bar refresh=1000 }}
would result in a div (with an id of bar) that changed every second between the words Tick and Tock.
Zobacz też
![]() | To rozszerzenie jest dołączone do następujących farm/hostów wiki lub pakietów: To nie jest pełna lista. Niektóre farmy/hosty wiki lub pakiety mogą zawierać to rozszerzenie nawet jeśli nie są one tutaj wymienione. Zawsze sprawdzaj swoje farmy/hosty wiki, aby to potwierdzić. |
Category:All extensions/pl
Category:Extensions in GitHub version control/pl
Category:Extensions included in Miraheze/pl
Category:Extensions included in WikiForge/pl
Category:Extensions included in wiki.gg/pl
Category:Extensions not in ExtensionJson
Category:Extensions with manual MediaWiki version
Category:GPL licensed extensions/pl
Category:Image extensions/pl
Category:ParserFirstCallInit extensions/pl
Category:Parser function extensions/pl
Category:Stable extensions/pl
Category:Tag extensions/pl