neingeist
/
neinomaten
Archived
1
0
Fork 0

minor frickelei

master
neingeist 18 years ago
parent 01697b8ece
commit 7b5bb895c4

@ -31,7 +31,7 @@ def parse_template(title, template)
info << fields info << fields
end end
else else
$stderr.print "Template #{template} not found in #{title}!" $stderr.print "Template #{template} not found in #{title}!\n"
end end
info info
@ -40,12 +40,15 @@ end
list = "" list = ""
@wiki.category("Workshop").articles.each do |article| @wiki.category("Workshop").articles.each do |article|
if article != "Template:Workshop" if article != "Template:Workshop" && article != "List of workshops" && article != "ExampleVille"
workshops = parse_template(article, "Workshop") workshops = parse_template(article, "Workshop")
workshops.each do |workshop| workshops.each do |workshop|
list += "* [[#{article}|#{workshop["what"]}]] " list += "* [[#{article}|#{workshop["what"]}]] "
if workshop["day"] != ""
list += "Day " + workshop["day"] + "/" + workshop["start"] list += "Day " + workshop["day"] + "/" + workshop["start"]
end
list += "\n" list += "\n"
end end
end end
@ -57,4 +60,4 @@ puts list
a = @wiki.article("List of workshops") a = @wiki.article("List of workshops")
a.text = list a.text = list
a.submit("wiki ex machina") a.submit("wiki ex machina")
a.protect("Automatically generated article")