Difference between revisions of "Template:Count Property Values"

From Istaria Lexica

Line 1: Line 1:
{{#if:{{{1|s}}}|1{{#if:{{{2|s}}}|2|no 2}}|no 1}}
+
{{#if:{{{1|}}}|{{#if:{{{2|}}}
 
+
   |{{#ifexpr:
 
+
    {{#ask:
 
+
      [[{{FULLPAGENAME}}]]
 
+
      [[Loot::+]]
{{#if:{{{1|}}}
+
      |format=count
   |{{#if:{{{2|}}}
+
    }} > 0
    |{{#ifexpr:
+
    |{{#expr:
        {{#ask:
+
      {{#count:
          [[{{FULLPAGENAME}}]]
+
        {{#ask:
          [[Loot::+]]
+
          [[{{FULLPAGENAME}}]]
          |format=count
+
          [[Loot::+]]
        }} > 0
+
          |?Loot=
        |{{#expr:
+
          |mainlabel=-
          {{#count:
+
          |link=none
            {{#ask:
+
          |format=list
              [[{{FULLPAGENAME}}]]  
 
              [[Loot::+]]
 
              |?Loot=
 
              |mainlabel=-
 
              |link=none
 
              |format=list
 
            }}
 
            |,}} + 1
 
 
         }}
 
         }}
  |no 2
+
        |,}} + 1
 +
    }}
 
   }}
 
   }}
   |no
+
   |no 2}}|no 1}}
}}
 
}}
 

Revision as of 23:37, 14 March 2024

no 1