Made terrain2wiki.py also show a picture of the terrain, looks better now.
This commit is contained in:
parent
3bce1693c2
commit
85c307f8a2
1 changed files with 3 additions and 0 deletions
|
@ -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 "",
|
||||
|
|
Loading…
Add table
Reference in a new issue