User:Randomiser/LoopsTest: Difference between revisions
Jump to navigation
Jump to search
Randomiser (talk | contribs) No edit summary |
Randomiser (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{#vardefine: columns | 5}} | {{#vardefine: columns | 5}} | ||
{{#arraydefine: | {{#arraydefine:Friends|A, Aardwolf, Acorn Woodpecker, Adélie Penguin, African Bush Elephant, African Forest Elephant, African Golden Wolf, African Rock Python, African Wild Dog, Alligator Snapping Turtle, Alpine Ibex, Amazon Tree Boa, American Alligator, American Bison, Arabian Oryx, Arctic Fox, Arctic Hare, Arctic Tern, Arctic Wolf, Arizonan Jaguar, Asian Golden Cat, Asian Small-Clawed Otter, Atlantic Puffin, Aurochs, Australian Brushturkey, Australian Devil, Axis Deer, Axolotl, Aye-Aye, B, Baikal Seal, Baird's Tapir, Bald Eagle, Banteng, Barbary Lion, Barn Owl, Bat-Eared Fox, Baweng Satanic Leaf Gecko, Bearded Seal, Bengal Tiger, Bergman's Bear, Binturong, Black Jaguar, Black Leopard, Black Mamba, Black Rhinoceros, Black Swan, Black Wildebeest, Black-And-White Ruffed Lemur, Black-Backed Jackal, Black-Headed Ibis, Black-Tailed Prairie Dog, Blackbuck, Blue Whale, Blue Wildebeest, Bobcat, Boomslang, Bornean Orangutan, Brazilian Porcupine, Brown Bear, Brown Greater Galago, Brown Long-Eared Bat, Buru Babirusa, Byakko, C, California Sea Lion, Campo Flicker, Cape Lion, Capybara, Caracal, Cerval, Chapman's Zebra, Cheetah, Chestnut Horse, Chicken, Chinese White Dolphin, Chinstrap Penguin, Chipmunk, Chukar Partridge, Cinereous Vulture, Clouded Leopard, Coastal Taipan, Collared Peccary, Commerson's Dolphin, Common Bottlenose Dolphin, Common Brushtail Possum, Common Chimpanzee, Common Cuckoo, Common Degu, Common Eland, Common Ostrich, Common Ringtail Possum, Common Vampire Bat, Common Wombat, Cougar, Coyote, Coypu, Crested Ibis, Crested Porcupine, Crunchyroll-Hime, Culpeo, D, Daito Fruit Bat, Danzaburou-Danuki, Dhole, Dingo, Dire Wolf, Dodo, Domestic Cat, Domestic Dog, Donkey, Dororo, Dromedary, Dugong, E, Eastern Wolf, Egyptian Goose, Emerald Tree Boa, Emperor Penguin, Emu, Eurasian Beaver, Eurasian Eagle-Owl, Eurasian Lynx, Eurasian Otter, European Cave Lion, European Hare, European Ratsnake, Extra Serval, Ezo Brown Bear, Ezo Red Fox, F, Fennec Fox, Flat-Headed Cat, Forest Owlet, Fossa, Fraternal Myotis, Frilled Lizard, G, Galápagos Tortoise, Gastornis, Gaur, Genbu, Gentoo Penguin, Geoffroy's Cat, Gharial, Giant Anteater, Giant Armadillo, Giant Forest Hog, Giant Panda, Giant Pangolin, Giroro, Godzilla, Goldcrest, Golden Eagle, Golden Jackal, Golden Lion Tamarin, Golden Snub-Nosed Monkey, Golden Tiger, Gray Fox, Gray Wolf, Great Auk, Greater Bilby, Greater Bird-Of-Paradise, Greater Flamingo, Greater Glider, Greater Honeyguide, Greater Rhea, Greater Roadrunner, Green Pheasant, Grey Crowned Crane, Grizzly Bear, Grévy's Zebra, Guadalupe Caracara, Guanaco, Guernsey Cattle, H, Habu, Harp Seal, Harpy Eagle, HAW-206, Hellbender, Hi-no-Tori, Hilgendorf's Tube-Nosed Bat, Hipparion, Hippopotamus, Hippopotamus Gorgops, Hokkaido Wolf, Holstein Friesian Cattle, Honduran White Bat, Honey Badger, Hooded Seal, Huacaya Alpaca, Humboldt Penguin, Hyracotherium, I, Impala, Indian Elephant, Indian Peafowl, Indian Rhinoceros, Indian Star Tortoise, Indian Wolf, Indri, Inugami Gyoubu, Iriomote Cat, Island Fox, Italian Wolf, J, Jaguar, Jaguarundi, Japanese Badger, Japanese Black Bear, Japanese Boar, Japanese Bush Warbler, Japanese Cormorant, Japanese Giant Salamander, Japanese Marten, Japanese River Otter, Japanese Squirrel, Japanese Wolf, Jersey Cattle, Jinmengyo, Jungle Cat, Jungle Crow, K, Kaban, Kamaitachi (Chi), Kamaitachi (Setsu), Kamaitachi (Ten), Keroro, King Cheetah, King Cobra, King Penguin, King Vulture, Kinshachi, Koala, Kodiak Bear, Komodo Dragon, Kururu, Kyushu Owl, Kyūshū Flying Squirrel, L, Leopard, Leopard Tortoise, Linnaeus's Two-Toed Sloth, Lion, Logikoma, Long-Tailed Chinchilla, Long-Tailed Tit, M, Macaw, Malayan Tapir, Maltese Tiger, Mandrill, Maned Wolf, Marbled Cat, Margay, Markhor, Martial Eagle, Marvellous Spatuletail, Masai Lion, Masked Booby, Masked Palm Civet, Mediterranean Monk Seal, Medium Tree Finch, Meerkat, Merlion, Mexican Wolf, Mongolian Wolf, Moose, Mouflon, Mountain Goat, Mountain Hare, Mountain Tapir, Mountain Zebra, Mule Deer, Muskox}} | ||
{{#arraydefine:sections|A,B,C,D,E,F,G,H,I,J,K,L,M}} | {{#arraydefine:sections|A,B,C,D,E,F,G,H,I,J,K,L,M}} | ||
Line 13: | Line 13: | ||
{{{!}} class="wikitable" style="text-align:center" width="90%" | {{{!}} class="wikitable" style="text-align:center" width="90%" | ||
{{#vardefine: cellnum | 0 }}{{#while: | {{#vardefine: cellnum | 0 }}{{#while: | ||
| {{#ifeq: {{#arrayindex: | | {{#ifeq: {{#arrayindex:Friends|{{#var: i }}}} | {{#arrayindex:sections|{{#var: s }}}} | | not equal}} | ||
| <nowiki/> | | <nowiki/> | ||
Line 19: | Line 19: | ||
{{!}} style="width: 18%" {{!}} | {{!}} style="width: 18%" {{!}} }} | {{!}} style="width: 18%" {{!}} | {{!}} style="width: 18%" {{!}} }} | ||
'''[[{{#arrayindex: | '''[[{{#arrayindex:Friends|{{#var: i }}}}]]''' | ||
----- | ----- | ||
[[File:{{#arrayindex: | [[File:{{#arrayindex:Friends|{{#var: i }}}}Thumb.png|150x150px|link={{#arrayindex:Friends|{{#var: i }}}}]] | ||
{{#vardefine: i | {{#expr: {{#var: i }} + 1 }} }} {{#vardefine: cellnum | {{#expr: {{#var: cellnum }} + 1 }} }} | {{#vardefine: i | {{#expr: {{#var: i }} + 1 }} }} {{#vardefine: cellnum | {{#expr: {{#var: cellnum }} + 1 }} }} | ||
}} | }}{{#vardefine: addcells | {{#expr: ({{#var: columns}} - {{#var: cellnum}}) mod {{#var: columns}} }} | ||
{{#vardefine: addcells | {{#expr: ({{#var: columns}} - {{#var: cellnum}}) mod {{#var: columns}} }} }} | }}{{#ifexpr: {{#var: addcells }} < 0 | {{#vardefine: addcells | {{#expr: {{#var: columns}} - ({{#var: addcells}} * -1)}} }} }} | ||
{{#while: | {{#while: | ||
| {{#ifexpr: {{#var: addcells }} > 0 | true }} | | {{#ifexpr: {{#var: addcells }} > 0 | true }} | ||
| <nowiki/> | | <nowiki/> | ||
{{!}} style="width: 18%" {{!}} | {{!}} style="width: 18%" {{!}} | ||
{{#vardefine: addcells | {{#expr: {{#var: addcells }} - 1 }} }} | |||
}} {{!}}} | }} | ||
{{!}}} | |||
}} | }} |
Revision as of 19:21, 6 March 2018
A
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
B
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
C
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
D
|
|
|
|
|
|
|
|
|
|
|
|
E
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
F
|
|
|
|
|
|
G
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
H
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
I
|
|
|
|
|
|
|
|
|
|
|
J
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
K
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
L
|
|
|
|
|
|
|
M
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|