FANDOM



Template-info Documentação do Modelo (às vezes escondido ou invisível)

Ferramentas do modelo: purgarquais links aquio que transcreve issosubpáginas

Description

This template is used as base for a slider like {{Slider}}.

Dependencies

This template uses File:Slider arrow.png, File:Slider home.png File:Slider edit.png, the CSS on MediaWiki:Slider.css and the JS on MediaWiki:Common.js/slider.js.

Syntax

The are three modes of use:

Base template

{{Slider generator
 | slide          = container
 | content 0      = 
 | content 1      = 
 | content 2      = 
 | content 3      = 
 | content 4      = 
 | content 5      = 
}}
Parameters
  • slide= in this case container is used to create the main container of the slider.
  • content #= the single slides. Slide 0 will be the main menù where every other slides will be linked.
Exemple
{{Slider generator
 | slide          = container
 | content 0      = {{Slider/Slide 0}}
 | content 1      = {{Slider/Slide 1}}
 | content 2      = {{Slider/Slide 2}}
 | content 3      = {{Slider/Slide 3}}
 | content 4      = {{Slider/Slide 4}}
 | content 5      = {{Slider/Slide 5}}
}}

gives: {{Slider}}.

Main menù slide

{{Slider generator
 | slide          = 0
 | tab 1          = 
 | tab 1 image    = 
 | tab 2          = 
 | tab 2 image    = 
 | tab 3          = 
 | tab 3 image    = 
 | tab 4          = 
 | tab 4 image    = 
 | tab 5          = 
 | tab 5 image    = 
}}
Parameters
  • slide= in this case 0 is used to create the main menù where every other slides will be linked from.
  • tab #= displays the title of each slide. The number # matches the id number of the slide.
  • tab #= image the image used as preview of each slide. The number # matches the id number of the slide.
Example
{{Slider generator
 | slide          = 0
 | tab 1          = Sail into the World of One Piece
 | tab 1 image    = Slide 1 preview.png
 | tab 2          = The Manga
 | tab 2 image    = Slide 2 preview.png
 | tab 3          = The Anime
 | tab 3 image    = Slide 3 preview.png
 | tab 4          = Film Gold
 | tab 4 image    = Slide 4 preview.png
 | tab 5          = Animal Species
 | tab 5 image    = Slide 5 preview.png
}}

gives: {{Slider/Slide 0}}.

Normal slide

{{Slider generator
 | slide          = 
 | link           = 
 | tab 1          = 
 | tab 1 content  = 
 | tab 2          = 
 | tab 2 content  = 
 | tab 3          = 
 | tab 3 content  = 
 | tab 4          = 
 | tab 4 content  = 
 | tab 5          = 
 | tab 5 content  = 
 | tab 6          = 
 | tab 6 content  = 
 | tab 7          = 
 | tab 7 content  = 
 | tab 8          = 
 | tab 8 content  = 
 | tab 9          = 
 | tab 9 content  = 
}}
Parameters
  • slide= identification number of the slide, in this case it can be 1, 2, 3, 4 or 5. The slide #1 will be the first one and the one with the biggest preview on the main menù. The others will follow in order on the right.
  • link= the name of the page where there is the slide code. A link to edit that page will be shown on the slide.
  • tab #= the title of a tab inside the slide. There can be a maximum of 9 tabs.
  • tab # content= the content of a tab.
Examples

See also

Visite Predefinição:Slider generator/doc para editar este texto! (Como que isso funciona?) (Atualizar esse texto - porque?)


O conteúdo da comunidade está disponível sob CC-BY-SA salvo indicação em contrário.