Template:Article count/doc: Difference between revisions

From Semantic Stargate Wiki
(Created page with "{{Documentation subpage}} <!-- Categories and interwikis go at the bottom of this page. --> == Usage == This template is used to show the number of results for a semantic qu...")
 
 
Line 33: Line 33:


;Number of Supporting actors in {{ep|Stargate}}:
;Number of Supporting actors in {{ep|Stargate}}:
<tt><nowiki>{{Article count | category = Persons | parameter = [[Supporting cast in::Stargate (movie)]]}}</nowiki></tt> would give: {{Article count | category = Persons | parameter = [[Supporting cast in::Stargate (movie)]]}}
<tt><nowiki>{{Article count | category = Persons | parameter = [[Supporting cast in::Stargate (film)]]}}</nowiki></tt> would give: {{Article count | category = Persons | parameter = [[Supporting cast in::Stargate (film)]]}}
;Number of destroyed planets:
;Number of destroyed planets:
<tt><nowiki>{{Article count | category = Planets | parameter = [[Status::Planet destroyed]]}}</nowiki></tt> would give: {{Article count | category = Planets | parameter = [[Status::Planet destroyed]]}}
<tt><nowiki>{{Article count | category = Planets | parameter = [[Status::Planet destroyed]]}}</nowiki></tt> would give: {{Article count | category = Planets | parameter = [[Status::Planet destroyed]]}}

Latest revision as of 10:22, 14 February 2016

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