![]() | This is the template test cases page for the sandbox of Template:Switcher. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
{{Switcher}}
<div class="switcher-container"><div>A<span class="switcher-label" style="display:none">1</span></div><div> B <span class="switcher-label" style="display:none">2</span></div><div>C<span class="switcher-label" style="display:none">3</span></div><div>D<span class="switcher-label" data-switcher-default="" style="display:none">4</span></div><div>E<span class="switcher-label" style="display:none">5</span></div><div>F<span class="switcher-label" style="display:none">6</span></div><div>G<span class="switcher-label" style="display:none">7</span></div><div>H<span class="switcher-label" style="display:none">8</span></div><div>I<span class="switcher-label" style="display:none">9</span></div><div>J<span class="switcher-label" style="display:none">10</span></div><div>K<span class="switcher-label" style="display:none">11</span></div><div>L<span class="switcher-label" style="display:none">12</span></div><div>M<span class="switcher-label" style="display:none">13</span></div><div>N<span class="switcher-label" style="display:none">14</span></div><div>O<span class="switcher-label" style="display:none">15</span></div><div>P<span class="switcher-label" style="display:none">16</span></div><div>Q<span class="switcher-label" style="display:none">17</span></div><div>R<span class="switcher-label" style="display:none">18</span></div><div>S<span class="switcher-label" style="display:none">19</span></div><div>T<span class="switcher-label" style="display:none">20</span></div></div>
{{Switcher/sandbox}}
<div class="switcher-container"><div>A<span class="switcher-label" style="display:none">1</span></div><div> B <span class="switcher-label" style="display:none">2</span></div><div>C<span class="switcher-label" style="display:none">3</span></div><div>D<span class="switcher-label" data-switcher-default="" style="display:none">4</span></div><div>E<span class="switcher-label" style="display:none">5</span></div><div>F<span class="switcher-label" style="display:none">6</span></div><div>G<span class="switcher-label" style="display:none">7</span></div><div>H<span class="switcher-label" style="display:none">8</span></div><div>I<span class="switcher-label" style="display:none">9</span></div><div>J<span class="switcher-label" style="display:none">10</span></div><div>K<span class="switcher-label" style="display:none">11</span></div><div>L<span class="switcher-label" style="display:none">12</span></div><div>M<span class="switcher-label" style="display:none">13</span></div><div>N<span class="switcher-label" style="display:none">14</span></div><div>O<span class="switcher-label" style="display:none">15</span></div><div>P<span class="switcher-label" style="display:none">16</span></div><div>Q<span class="switcher-label" style="display:none">17</span></div><div>R<span class="switcher-label" style="display:none">18</span></div><div>S<span class="switcher-label" style="display:none">19</span></div><div>T<span class="switcher-label" style="display:none">20</span></div></div>
To find all the prime numbers less than or equal to 30, proceed as follows.
First generate a list of integers from 2 to 30:
Start with all numbers above 1:
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30.Start with all numbers above 1
Strike multiples of 2:
2 3Strike multiples of 2456789101112131415161718192021222324252627282930.
Strike multiples of 2 and 3:
2 3Strike multiples of 2 and 3456789101112131415161718192021222324252627282930.
Strike multiples of 2, 3 and 5 (includes 25):
2 3Strike multiples of 2, 3 and 5 (includes 25)456789101112131415161718192021222324252627282930.
Remove multiples of 2, 3 and 5:
2 3 5 7 11 13 17 19 23 29.Remove multiples of 2, 3 and 5
Two images in an infobox
edit{{infobox |above=Switcher |image={{Switcher |[[Image:PNG transparency demonstration 1.png|center|100px]]|Dice |[[Image:White Stars 3.svg|center|100px]]|Stars }}}}
{{Switcher}}
Switcher | |
---|---|
{{Switcher/sandbox}}
Switcher/sandbox | |
---|---|
2011
2012
2013
2014
2015
2016
Div blocks inside parameters
editNote: This is not a valid usage as it creates a nested div element inside a span element.
{{Switcher}} | {{Switcher/sandbox}} |
---|---|