summaryrefslogtreecommitdiff
path: root/wiki/wikigen.py
diff options
context:
space:
mode:
authorLawnCable <simon-laux@gmx.net>2018-04-07 22:26:30 +0000
committerJesusaves <cpntb1@ymail.com>2018-04-07 22:26:30 +0000
commit0ed76499cdcf7a992895347b5048eaea9884441f (patch)
treeaf41323a186317e9f9cd8b3c1cfe0f2a5a94f697 /wiki/wikigen.py
parent0f75046904994c8ed140ab82338cfb48e2f82141 (diff)
downloadtools-0ed76499cdcf7a992895347b5048eaea9884441f.tar.gz
tools-0ed76499cdcf7a992895347b5048eaea9884441f.tar.bz2
tools-0ed76499cdcf7a992895347b5048eaea9884441f.tar.xz
tools-0ed76499cdcf7a992895347b5048eaea9884441f.zip
Add anchors to mobs and icons that we can link to them
Diffstat (limited to 'wiki/wikigen.py')
-rwxr-xr-xwiki/wikigen.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wiki/wikigen.py b/wiki/wikigen.py
index 2931fd2..c045c6e 100755
--- a/wiki/wikigen.py
+++ b/wiki/wikigen.py
@@ -174,7 +174,7 @@ def MonsterWrite(tbl):
wikib.write("<table border=1>\n")
wikib.write("<tr><th>ID</th><th>Name</th><th>HP</th><th>Atk</th><th>Delay</th><th>Modes</th><th>Misc Info</th><th>Rewards</th><th>Drops</th></tr>\n")
for i in tbl:
- wikib.write('<tr><td>' +
+ wikib.write('<tr><td><a name="' + i.id + '"></a>' +
i.id +"</td><td>"+
i.name +"</td><td>HP: "+
i.hp +"</td><td>Atk: "+
@@ -547,7 +547,7 @@ def ItemWrite(tbl, ID=False, AEGIS=False, NAME=False, PRICE=False, WEIGHT=False,
wikia.write('<tr>')
if ID:
- wikia.write("<td>%s</td>" % i.id)
+ wikia.write("<td><a name=\"%s\"></a>%s</td>" % (i.id,i.id))
if AEGIS:
wikia.write("<td>%s</td>" % hl(i))
if NAME: