A Wiki in the Desert
Log in

Difference between revisions of "User:Kirie/garbage"

From A Wiki in the Desert
Line 20: Line 20:
 
|}
 
|}
  
{{#ask: [[Category:Technologies]] [[Is generated::true]] [[Is progressing::true]] OR [[Category:Technologies]] [[Is generated::true]] [[Has completed::true]] |format=array|name=bakcomplete}}{{#ask: [[Category:Technologies]] [[Is generated::true]] [[Has completed::true]] |format=array|name=complete}}
 
 
{{#ask: [[Category:Technologies]] [[Is generated::true]] [[Is progressing::false]] [[Has completed::false]] |format=array|name=tocomplete}}
 
{{#ask: [[Category:Technologies]] [[Is generated::true]] [[Is progressing::false]] [[Has completed::false]] |format=array|name=tocomplete}}
 +
 
{{#loop: i
 
{{#loop: i
| 0  
+
  | 0  
| {{#arraysize: tocomplete}}
+
  | {{#arraysize: tocomplete}}
| <nowiki/>{{#arraydefine:requirements|{{#ask: [[{{#arrayindex:tocomplete|{{#var:i}}}}]]|?Requires|mainlabel=-|manysep=,|format=array}}}}
+
  | <nowiki/>{{#arraydefine:requirements|{{#ask: [[{{#arrayindex:tocomplete|{{#var:i}}}}]]|?Requires|mainlabel=-|manysep=,|format=array}}}}
{{#ifexpr: {{#arraysize: requirements}} = 0
+
    {{#ifexpr: {{#arraysize:requirements}} = 0
|eeeeeeeeeeeeeeeeeee
+
        |eeeeeeeeeeeeeeeeeee
|{{#vardefine:missing|false}}{{#loop: j
+
        |{{#vardefine:missing|false}}{{#loop: j
| 0
+
                                        | 0  
| {{#arraysize: requirements}}
+
                                        | {{#arraysize: requirements}}
| <nowiki/>
+
                                        | <nowiki/>
{{#if: {{#arraysearch:complete|{{#arrayindex:requirements|{{#var:j}}}}}}||{{#vardefine:missing|true}}}}
+
                                          {{#if: {{#arraysearch:complete
}}{{#ifeq: {{#var:missing}}|false|* [[{{#arrayindex:tocomplete|{{#var:i}}}}]] - {{#arrayprint:requirements}}}}
+
                                                        |{{#arrayindex:requirements|{{#var:j}}}}
}}
+
                                                  }}
 +
                                                  |
 +
                                                  |{{#vardefine:missing|true}}}}
 +
                                      }}
 +
        {{#ifeq: {{#var:missing}}
 +
            |false
 +
            |* [[{{#arrayindex:tocomplete|{{#var:i}}}}]] - {{#arrayprint:requirements}}}}
 +
    }}
 
}}
 
}}

Revision as of 07:02, 29 October 2023