Fandom Developers Wiki
(will complete this soon)
Tags: rollback sourceedit
 
(Replaced content with "Add me on MYSpace!")
Tag: apiedit
Line 1: Line 1:
  +
Add me on MYSpace!
{{Languages}}{{Infobox JavaScript
 
|Image file = GameSlider Preview PL.gif
 
|Author = [[User:Luqgreg|Luqgreg]]<br />[[User:Vuh|Vuh]] <small>([[w:c:pl.tes:MediaWiki:Slider.js|Slider.js]])</small><br />[[User:Tierrie|Tierre]] <small>([[w:c:dragonage:MediaWiki:Common.js|"sliders using jquery"]])</small>
 
|Code = [[MediaWiki:GameSlider/code.js|code.js]]<br />[[MediaWiki:GameSlider/code.css|code.css]]
 
|Using code by = Created for polish [[w:c:pl.nfs|NFS Wiki]]
 
|Skins = Oasis<br />Monobook
 
|Scope = Site-wide
 
|Status = experimental}}
 
 
'''GameSlider''' - script, that allows to show multiple images (like game covers) in slider and asigns to them boxes with content, that are shown after clicking them.
 
 
== Installation ==
 
{{Script Install/ImportJS|Use=S}}
 
{{Clear}}
 
 
== Usage ==
 
To show the slider you need to insert div with "game-slider" class and with images that will be shown in slider, like shown below:
 
{{#tag:syntaxhighlight|
 
<div class="game-slider" data-template="GameSlider/Content">
 
[[Plik:Game1_BoxartSlider.png|x200px|link=#G1|Game 1]]
 
[[Plik:Game2_BoxartSlider.png|x200px|link=#G2|Game 2]]
 
</div>|lang="html5"}}
 
 
When one of the images in slider will be clicked, script will parse defined template (<tt>Template:GameSlider/Content</tt> by default) with image link as parameter and it will be shown below slider.
 

Revision as of 08:40, 19 September 2017

Add me on MYSpace!