Template:Switcher/testcases

The tests here use Switcher directly and don't use Test case or Switcher/sandbox. The pages linked at the tests don't use Switcher but just give some context about the subject of the test.

Switcher uses MediaWiki:Gadget-switcher.js which is documented at User:Jackmcbarn/switcher. Apart from Switcher, the only current use of the gadget may be Template:Location map.

Switcher can switch between 20 parameters as of 2 October 2016 where the template is unused and may change behaviour or be deleted. It isn't ready for mainspace and it may require a community discussion whether we want such a template.

Sieve of Eratosthenes
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

Main Page history
2011 2012  2013  2014  2015  2016