|
|
@ -171,8 +171,7 @@ class WikiBot
|
|
|
|
|
|
|
|
|
|
|
|
fields_string = get_raw(title).scan(template_re)[0][0]
|
|
|
|
fields_string = get_raw(title).scan(template_re)[0][0]
|
|
|
|
fields_string.split(/\|/).each do |field|
|
|
|
|
fields_string.split(/\|/).each do |field|
|
|
|
|
x = field.split(/=/)
|
|
|
|
(key, value) = field.split(/=/)
|
|
|
|
key = x[0]; value = x[1]
|
|
|
|
|
|
|
|
fields[key] = value
|
|
|
|
fields[key] = value
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
@ -194,5 +193,6 @@ class WikiBot
|
|
|
|
return articles
|
|
|
|
return articles
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
end # class WikiBot
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
end # module MediaWikiBot
|
|
|
|