Jump to content

Template:SMWCount: Difference between revisions

From Deep Politics Wiki
WikiSpooks>Robin
Created page with "<noinclude>category:Semantic Templates '''Counts the number of examples of a particular Pagename, returning as a decimal number.'''<br/> If the predicate page does not exi..."
 
WikiBot (talk | contribs)
m Plain formatting, no semantic markup
 
Line 4: Line 4:
Usage:<br/>
Usage:<br/>
:{{t|<nowiki>{{SMWCount|PageName}}</nowiki>}}
:{{t|<nowiki>{{SMWCount|PageName}}</nowiki>}}
</noinclude><includeonly>{{#ifexist: {{{1|}}}|{{#ask: [[Constitutes::{{{1}}}]]|format=count}}|{{RED|Error, [[Property:{{{1|}}}]] is unknown!}}}}</includeonly>
</noinclude><includeonly>{{#ifexist: {{{1|}}}||{{RED|Error, [[Property:{{{1|}}}]] is unknown!}}}}</includeonly>

Latest revision as of 22:35, 24 September 2026

Counts the number of examples of a particular Pagename, returning as a decimal number.
If the predicate page does not exist, it displays a warning message. Usage:

{{SMWCount|PageName}}