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.


See also: Help:Including additional CSS and JS, Help:Advanced CSS and JS
  • For site-wide use, an administrator can add the line below to the wiki's MediaWiki:ImportJS page.


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:

<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]]

When one of the images in slider is clicked, script will parse defined template (Template:GameSlider/Content by default) with image link as parameter and it will be shown below slider.