Difference between revisions of "Template:Count Property Values"
From Istaria Lexica
Line 1: | Line 1: | ||
− | <includeonly>{{#if:{{{1|}}}|{{#if:{{{2|}}} | + | <includeonly> |
+ | |||
+ | {{#ask: | ||
+ | [[{{{1}}}]] | ||
+ | [[{{{2}}}::+]] | ||
+ | |?{{{2}}}= | ||
+ | |mainlabel=- | ||
+ | |link=none | ||
+ | |format=list | ||
+ | }} | ||
+ | |||
+ | |||
+ | {{#if:{{{1|}}}|{{#if:{{{2|}}} | ||
|{{#ifexpr: | |{{#ifexpr: | ||
{{#ask: | {{#ask: | ||
Line 7: | Line 19: | ||
}} > 0 | }} > 0 | ||
|{{#expr:0 | |{{#expr:0 | ||
− | + | {{#count: | |
{{#ask: | {{#ask: | ||
[[{{{1}}}]] | [[{{{1}}}]] | ||
Line 16: | Line 28: | ||
|format=list | |format=list | ||
}} | }} | ||
− | |,}} | + | |,}} + 1 |
}} | }} | ||
|0 | |0 | ||
}} | }} | ||
|0}}|0}}</includeonly><noinclude>{{Documentation}}[[Category:Semantic Mediawiki Templates]]</noinclude> | |0}}|0}}</includeonly><noinclude>{{Documentation}}[[Category:Semantic Mediawiki Templates]]</noinclude> |
Revision as of 23:27, 21 March 2024
Template documentation (for the template shown above, sometimes hidden or invisible)
Description[edit]
Counts a property's values to a specific article.
- Try out this template in your sandbox
- Find pages using this template
Syntax[edit]
{{Template:Count Property Values|page name|property}}
Examples[edit]
{{Template:Count Property Values|Jungle Crawler Breeder|Loot}} {{Template:Count Property Values|Battle Mage|Has SchoolRequirement}} {{Template:Count Property Values|no_valid_article_page|Loot}} {{Template:Count Property Values|Battle Mage|no_valid_property_name}}
Visit Template:Count Property Values/doc to edit this text. (How to: document correctly)