Mercurial > hg > batmud > misc
changeset 253:1eca10751695 misc
Improve alloy browser output.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 07 Mar 2015 23:22:33 +0200 |
parents | 3193bf205f5b |
children | 58b3984db931 |
files | materials/info.php |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/materials/info.php Sat Mar 07 23:16:51 2015 +0200 +++ b/materials/info.php Sat Mar 07 23:22:33 2015 +0200 @@ -18,10 +18,10 @@ $swapRows = (isset($_GET["swap"]) && is_array($_GET["swap"])) ? $_GET["swap"] : array(); -function matLink($mat, $title = "") +function matLink($mat, $title = "", $extra = "") { $tmp = ($title != "") ? " title=\"".chentities($title)."\"" : ""; - return "<a href=\"/mat/".urlencode($mat)."\"".$tmp.">".chentities($mat)."</a>"; + return "<a href=\"/mat/".urlencode($mat)."\"".$tmp.">".chentities($mat)."</a>".$extra; } @@ -301,7 +301,8 @@ { $slist[] = matLink($a, $b." successful alloys (".$mat1." + ".$mat2." = ".$a.")". - (count($tmp) > 1 ? " [UNSTABLE]" : "")); + (count($tmp) > 1 ? " [UNSTABLE]" : ""), + " <sup>".$b."</sup>"); } echo "<td".addValueStyle($value, count($tmp) > 1 ? " mitalic" : "").">".