17 lines
639 B
Plaintext
17 lines
639 B
Plaintext
Find the total number of programming examples for each [[:Category:Programming Tasks|task]] and the total for all tasks.
|
|
|
|
Essentially, count the number of occurrences of <tt>=={{header|</tt> on each task page.
|
|
|
|
Output:
|
|
|
|
<pre>100 doors: 20 examples.
|
|
99 Bottles of Beer: 29 examples.
|
|
Abstract type: 10 examples.
|
|
|
|
Total: X examples.</pre>
|
|
|
|
For a full output, updated periodically, see [[Rosetta Code/Count examples/Full list]].
|
|
|
|
You'll need to use the Media Wiki API, which you can find out about locally, [https://rosettacode.org/w/api.php here], or in Media Wiki's API documentation at, [http://www.mediawiki.org/wiki/API_Query API:Query]
|
|
|