|
|
Line 210: |
Line 210: |
| {{#masterdata:Card|121911}}--> | | {{#masterdata:Card|121911}}--> |
|
| |
|
| {{#arraydefine:weighted transients|{{#ask: | | {{Transient weight table}} |
| [[Has weight::+]]
| |
| |?Has English name|mainlabel=-|headers=hide|link=none|limit=5000}}}}{{#arrayunique:weighted transients}}{{#arrayprint:weighted transients||@@@|<!--trimming text until it becomes a number
| |
| -->{{#vardefine:i|1}}{{#vardefine:num|}}{{#while:
| |
| | {{#ifeq: {{#expr:{{#sub:{{#show:@@@|?Has subobject.Has weight}}|0|{{#var:i}}}} > 0}}|1|true}}
| |
| | {{#vardefine:num|{{#sub:{{#show:@@@|?Has subobject.Has weight}}|0|{{#var:i}}}}}}{{#vardefine:i|{{#expr:{{#var:i}} + 1}}}}
| |
| }}<!--creating subobject
| |
| -->{{#if:{{#var:num|}}|{{#subobject:weight{{#vardefineecho:weightnumber|{{#expr:{{#var:weightnumber|-1}}+1}}}}
| |
| | Has English name = @@@
| |
| | Has numbered weight = {{#var:num}}
| |
| }}}}}}
| |
|
| |
|
| =Comments= | | =Comments= |
|
| |
|
| {{Comments}} | | {{Comments}} |