From 4060eae5873cea04a6b977a258c6f322e01947fc Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Wed, 30 Apr 2014 11:03:07 +0200 Subject: Ignore Tag templates without tag --- sources/wiki/get_wiki_data.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sources') 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 -- cgit v1.2.3