Template:Article count: Difference between revisions
(Created page with "{{#ask: [[Category:{{#if: {{{category|}}} | {{{category}}} | Planets}}]] {{#if: {{{parameter|}}} | {{{parameter}}} }} | format=count }}<noinclude>{{Documentation}}</noinclude>") |
(No difference)
|
Latest revision as of 11:21, 14 February 2016
61
Usage
This template is used to show the number of results for a semantic query.
Syntax
{{Article count | category = | parameter = }}
Parameters
Parameter | Mandatory | Function | Default value |
---|---|---|---|
{{{category}}} | No | Defines the main category for the query | Planets |
{{{parameter}}} | No | Defines the property(ies) used for the query | N/A |
Examples
- Number of Supporting actors in Stargate
{{Article count | category = Persons | parameter = [[Supporting cast in::Stargate (film)]]}} would give: 0
- Number of destroyed planets
{{Article count | category = Planets | parameter = [[Status::Planet destroyed]]}} would give: 3
See also
- Help:Count format in the Semantic MediaWiki website for explanations about the function used here.
The above documentation is transcluded from Template:Article count/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |