Merge pull request #9482 from Thalpy/Wiki

Gives chemistry a library (and updates buttons at the top right of the game too).
This commit is contained in:
kevinz000
2019-10-17 13:01:37 -07:00
committed by GitHub
4 changed files with 64 additions and 3 deletions
+5 -1
View File
@@ -4,11 +4,15 @@
set desc = "Type what you want to know about. This will open the wiki in your web browser. Type nothing to go to the main page."
set hidden = 1
var/wikiurl = CONFIG_GET(string/wikiurl)
var/wikiurltg = CONFIG_GET(string/wikiurltg)
if(wikiurl)
if(query)
var/output = wikiurl + "/index.php?title=Special%3ASearch&profile=default&search=" + query
var/output = wikiurl + "?search=" + query
src << link(output)
output = wikiurltg + "/index.php?title=Special%3ASearch&profile=default&search=" + query
src << link(output)
else if (query != null)
src << link(wikiurltg)
src << link(wikiurl)
else
to_chat(src, "<span class='danger'>The wiki URL is not set in the server configuration.</span>")