Made terrain2wiki.py also show a picture of the terrain, looks better now.

This commit is contained in:
Thibault Févry 2011-10-23 20:11:32 +00:00
parent 3bce1693c2
commit 85c307f8a2

View file

@ -39,6 +39,7 @@ def parse_terrain(data):
terrains = re.compile("\[terrain_type\](.*?)\[\/terrain_type\]", re.DOTALL).findall(data)
data = """{{AutogeneratedWML}}{| border="1"
!terrain
!name
!string
!alias of
@ -63,7 +64,9 @@ def parse_terrain(data):
| %s
| %s
| %s
| %s
""" % (
"http://svn.gna.org/svn/wesnoth/trunk/data/core/images/terrain/%s.png" % content['symbol_image'],
content['editor_name'][4:-1] if 'editor_name' in content else content['name'][4:-1],
content['string'].replace("# wmllint: ignore", ""),
content['aliasof'] if 'aliasof' in content else "",