neingeist
/
neinomaten
Archived
1
0
Fork 0
master
neingeist 18 years ago
parent 0cd7000356
commit 290f7ceb8c

@ -37,7 +37,23 @@ def parse_template(title, template)
info info
end end
list = "" list = "
<!--
_ _ _____ _ _ ___
| | | | ____| | | | / _ \
| |_| | _| | | | | | | | |
| _ | |___| |___| |__| |_| |
|_| |_|_____|_____|_____\___( )
|/
-->
''This is an auto-generated list - please use [[Template:Workshop]] (description is there) to include your workshop here. Contact [[User:Neingeist|Neingeist]] if you have problems or questions (Jabber is preferred.)''
"
@wiki.category("Workshop").articles.each do |article| @wiki.category("Workshop").articles.each do |article|
if article != "Template:Workshop" && article != "List of workshops" && article != "ExampleVille" if article != "Template:Workshop" && article != "List of workshops" && article != "ExampleVille"
@ -45,11 +61,13 @@ list = ""
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"] != "" if workshop["day"] != ""
list += "Day " + workshop["day"] + "/" + workshop["start"] list += "Day " + workshop["day"] + "/" + workshop["start"]
end end
list += "\n" list += "\n"
list += ":''#{workshop["where"]}''\n"
list += "::#{workshop["abstract"]}\n"
end end
end end
end end