diff options
Diffstat (limited to 'sources')
-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 |