diff options
author | Jochen Topf <jochen@topf.org> | 2014-04-30 11:03:07 +0200 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2014-04-30 11:03:07 +0200 |
commit | 4060eae5873cea04a6b977a258c6f322e01947fc (patch) | |
tree | a41b91b63047d3517ab289b82efe67697005f438 /sources/wiki | |
parent | bcea8d6e9d679cd72b535c495faa23ef42a1c50c (diff) | |
download | taginfo-4060eae5873cea04a6b977a258c6f322e01947fc.tar taginfo-4060eae5873cea04a6b977a258c6f322e01947fc.tar.gz |
Ignore Tag templates without tag
Diffstat (limited to 'sources/wiki')
-rwxr-xr-x | sources/wiki/get_wiki_data.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sources/wiki/get_wiki_data.rb b/sources/wiki/get_wiki_data.rb index 44f03b0..e63f39e 100755 --- a/sources/wiki/get_wiki_data.rb +++ b/sources/wiki/get_wiki_data.rb @@ -152,10 +152,12 @@ class WikiPage puts "Template: #{template.name} [#{template.parameters.join(',')}] #{template.named_parameters.inspect}" if template.name == 'Key' || template.name == 'Tag' tag = template.parameters[0] - if template.parameters[1] - tag += '=' + template.parameters[1] + if tag + if template.parameters[1] + tag += '=' + template.parameters[1] + end + add_tag_link(tag) end - add_tag_link(tag) end if template.name =~ /(Key|Value|Relation)Description$/ @has_templ = true |