foo
This commit is contained in:
parent
0cd7000356
commit
290f7ceb8c
1 changed files with 20 additions and 2 deletions
|
@ -37,7 +37,23 @@ def parse_template(title, template)
|
|||
info
|
||||
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|
|
||||
if article != "Template:Workshop" && article != "List of workshops" && article != "ExampleVille"
|
||||
|
@ -45,11 +61,13 @@ list = ""
|
|||
workshops = parse_template(article, "Workshop")
|
||||
|
||||
workshops.each do |workshop|
|
||||
list += "* [[#{article}|#{workshop["what"]}]] "
|
||||
list += "* '''[[#{article}|#{workshop["what"]}]]''' "
|
||||
if workshop["day"] != ""
|
||||
list += "Day " + workshop["day"] + "/" + workshop["start"]
|
||||
end
|
||||
list += "\n"
|
||||
list += ":''#{workshop["where"]}''\n"
|
||||
list += "::#{workshop["abstract"]}\n"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Reference in a new issue