ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/doc/spoiler-html/mag-extract
Revision: 1.2
Committed: Thu Sep 7 21:43:33 2006 UTC (17 years, 8 months ago) by pippijn
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
State: FILE REMOVED
Log Message:
Moved documents to doc/historic

File Contents

# Content
1 {
2 type = $1 + 0;
3 if (type == 99 || type == 100 || type == 113) {
4 if (type == 99) {
5 name = capitalize($2);
6 gsub("_", " ", name);
7 } else
8 name = capitalize($3);
9
10 printf("<tr><th>%s</th><td>%s</td><td>%d</td><td>%s</td></tr>\n", name, $10, $8, $4);
11 }
12 }
13
14 function capitalize(str) {
15 return toupper(substr(str, 1, 1)) substr(str, 2);
16 }