Difference between revisions of "Template:Count Property Values"

From Istaria Lexica

 
(38 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#if:{{{1|}}}
+
<includeonly>
  |{{#if:{{{2|}}}
+
{{#if:{{{1|}}}|{{#if:{{{2|}}}
    |{{#ifexpr:
+
  |{{#ifexpr:
        {{#ask:
+
    {{#ask:
          [[{{FULLPAGENAME}}]]
+
      [[{{{1}}}]]
          [[Loot::+]]
+
      [[{{{2}}}::+]]
          |format=count
+
      |format=count
        }} > 0
+
    }} > 0
        |{{#expr:
+
    |{{#expr:
          {{#count:
+
      {{#count:
            {{#ask:
+
        {{#ask:
              [[{{FULLPAGENAME}}]]  
+
          [[{{{1}}}]]
              [[Loot::+]]
+
          [[{{{2}}}::+]]
              |?Loot=
+
          |?{{{2}}}=
              |mainlabel=-
+
          |mainlabel=-
              |link=none
+
          |link=none
              |format=list
+
          |format=list
            }}
 
            |,}} + 1
 
 
         }}
 
         }}
     | no 2
+
        |,}} + 1
   |no 1
+
     }}
}}}}}}
+
    |0
 +
  }}
 +
   |0}}|0}}</includeonly><noinclude>{{Documentation}}[[Category:Semantic Mediawiki Templates]]</noinclude>

Latest revision as of 23:38, 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.

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)