Difference between revisions of "Test numberOfArticles"
From FollowTheScore
(New page: {{Type:Test |parameter = resultsheader and number of pages }} ==Show the number of articles in a certain category== <pre><nowiki> We are going to use a template which contains the follo...) |
|||
Line 4: | Line 4: | ||
==Show the number of articles in a certain category== | ==Show the number of articles in a certain category== | ||
+ | |||
+ | This test shows how to put a DPL statement into a template (just for fun in this case) | ||
+ | and how to return the number of articles instead of their names. We are going to use | ||
+ | the 'resultsheader=' parameter which allows you to use a variable called '''%PAGES%'''. | ||
<pre><nowiki> | <pre><nowiki> | ||
Line 9: | Line 13: | ||
We are going to call the template like this: | We are going to call the template like this: | ||
− | {{DPL Count|Fictitious Countries}} | + | {{DPL Count|category=Fictitious Countries}} |
</nowiki></pre> | </nowiki></pre> | ||
− | {{DPL Count|Fictitious Countries}} | + | {{DPL Count|category=Fictitious Countries}} |
Revision as of 18:06, 21 April 2007
Show the number of articles in a certain category
This test shows how to put a DPL statement into a template (just for fun in this case) and how to return the number of articles instead of their names. We are going to use the 'resultsheader=' parameter which allows you to use a variable called %PAGES%.
We are going to use a template which contains the following code We are going to call the template like this: {{DPL Count|category=Fictitious Countries}}
This wiki doesn´t contain any articles on Fictitious Countries.