Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Template:Switcher/testcases

From Wikipedia, the free encyclopedia
{{Switcher|A|1| B | 2 |C|3|D|4|E|5|F|6|G|7|H|8|I|9|J|10|K|11|L|12|M|13|N|14|O|15|P|16|Q|17|R|18|S|19|T|20|default=4}}

{{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  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.
Strike multiples of 2

Strike multiples of 2 and 3:

 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.
Strike multiples of 2 and 3

Strike multiples of 2, 3 and 5 (includes 25):

 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.
Strike multiples of 2, 3 and 5 (includes 25)

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

{{Switcher}}

{{Switcher/sandbox}}