From cff50c57715a590c35069d0db833353fe6bdb392 Mon Sep 17 00:00:00 2001 From: LetterJay Date: Wed, 16 Aug 2017 09:25:32 -0500 Subject: [PATCH 1/2] Revert "Revert "[MIRROR] The wiki button now asks what page you want to be taken to"" --- interface/interface.dm | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/interface/interface.dm b/interface/interface.dm index 253738064b..64e39587ce 100644 --- a/interface/interface.dm +++ b/interface/interface.dm @@ -1,12 +1,14 @@ //Please use mob or src (not usr) in these procs. This way they can be called in the same fashion as procs. -/client/verb/wiki() +/client/verb/wiki(query as text | null) set name = "wiki" - set desc = "Visit the wiki." + set desc = "Type what you want to know about. This will open the wiki on your web browser. Type nothing to go to the main page." set hidden = 1 if(config.wikiurl) - if(alert("This will open the wiki in your browser. Are you sure?",,"Yes","No")=="No") - return - src << link(config.wikiurl) + if(query) + var/output = config.wikiurl + "/index.php?title=Special%3ASearch&profile=default&search=" + query + src << link(output) + else if (query != null) + src << link(config.wikiurl) else to_chat(src, "The wiki URL is not set in the server configuration.") return From dd00a614665a4d99a5b20215b42fecc96d29af11 Mon Sep 17 00:00:00 2001 From: LetterJay Date: Wed, 16 Aug 2017 09:26:58 -0500 Subject: [PATCH 2/2] Update interface.dm --- interface/interface.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interface/interface.dm b/interface/interface.dm index 64e39587ce..9ee5309585 100644 --- a/interface/interface.dm +++ b/interface/interface.dm @@ -1,7 +1,7 @@ //Please use mob or src (not usr) in these procs. This way they can be called in the same fashion as procs. -/client/verb/wiki(query as text | null) +/client/verb/wiki(query as text) set name = "wiki" - set desc = "Type what you want to know about. This will open the wiki on your web browser. Type nothing to go to the main page." + 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 if(config.wikiurl) if(query)