comparison src/reformat_wizards.php @ 2763:78ad0e51b7b5

Improve wizards.txt parser, add functionality for specifying alternative / additional names as some wizards have used more than one. Also other improvements in wizard data handling.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 12 Mar 2024 15:47:58 +0200
parents ee898a9344e7
children 6dcd2aaeee9b
comparison
equal deleted inserted replaced
2762:4caa26c12052 2763:78ad0e51b7b5
36 ksort($cat, SORT_STRING); 36 ksort($cat, SORT_STRING);
37 37
38 // Output each entry in this category 38 // Output each entry in this category
39 foreach ($cat as $name => $data) 39 foreach ($cat as $name => $data)
40 { 40 {
41 $str = $name.";". 41 $str = implode("|", $data["names"]).";".
42 (isset($data["countries"]) ? implode("|", $data["countries"]) : "").";". 42 (isset($data["countries"]) ? implode("|", $data["countries"]) : "").";".
43 (isset($data["homeURL"]) ? $data["homeURL"] : "").";". 43 (isset($data["homeURL"]) ? $data["homeURL"] : "").";".
44 (isset($data["imageURL"]) ? $data["imageURL"] : "").";"; 44 (isset($data["imageURL"]) ? $data["imageURL"] : "").";";
45 45
46 // Entries with some information are formatted differently 46 // Entries with some information are formatted differently