summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2014-04-30 11:03:07 +0200
committerJochen Topf <jochen@topf.org>2014-04-30 11:03:07 +0200
commit4060eae5873cea04a6b977a258c6f322e01947fc (patch)
treea41b91b63047d3517ab289b82efe67697005f438
parentbcea8d6e9d679cd72b535c495faa23ef42a1c50c (diff)
downloadtaginfo-4060eae5873cea04a6b977a258c6f322e01947fc.tar
taginfo-4060eae5873cea04a6b977a258c6f322e01947fc.tar.gz
Ignore Tag templates without tag
-rwxr-xr-xsources/wiki/get_wiki_data.rb8
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