mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-11 10:22:13 +00:00
Library time
This commit is contained in:
@@ -181,13 +181,13 @@
|
|||||||
config_entry_value = "http://www.tgstation13.org/wiki"
|
config_entry_value = "http://www.tgstation13.org/wiki"
|
||||||
|
|
||||||
/datum/config_entry/string/forumurl
|
/datum/config_entry/string/forumurl
|
||||||
config_entry_value = "http://tgstation13.org/phpBB/index.php"
|
config_entry_value = "https://citadel-station.net/forum/"
|
||||||
|
|
||||||
/datum/config_entry/string/rulesurl
|
/datum/config_entry/string/rulesurl
|
||||||
config_entry_value = "http://www.tgstation13.org/wiki/Rules"
|
config_entry_value = "https://katlin.dog/citadel-rules/main"
|
||||||
|
|
||||||
/datum/config_entry/string/githuburl
|
/datum/config_entry/string/githuburl
|
||||||
config_entry_value = "https://www.github.com/tgstation/-tg-station"
|
config_entry_value = "https://github.com/Citadel-Station-13/Citadel-Station-13"
|
||||||
|
|
||||||
/datum/config_entry/string/roundstatsurl
|
/datum/config_entry/string/roundstatsurl
|
||||||
|
|
||||||
|
|||||||
@@ -263,20 +263,74 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<p id='loading'>You start skimming through the manual...</p>
|
<p id='loading'>You start skimming through the manual...</p>
|
||||||
<iframe width='100%' height='97%' onload="pageloaded(this)" src="[wikiurl]/[page_link]?printable=yes&remove_links=1" frameborder="0" id="main_frame"></iframe>
|
<iframe width='100%' height='97%' onload="pageloaded(this)" src="[wikiurl]/[page_link]?printable=yes&remove_links=1" frameborder="0" id="main_frame"></iframe>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
"}
|
"}
|
||||||
|
|
||||||
/obj/item/book/manual/wiki/chemistry
|
/obj/item/book/manual/wiki/cit
|
||||||
|
name = "Citadel infobook"
|
||||||
|
icon_state ="book8"
|
||||||
|
author = "Nanotrasen"
|
||||||
|
title = "Citadel infobook"
|
||||||
|
page_link = ""
|
||||||
|
window_size = "1500x800" //Too squashed otherwise
|
||||||
|
|
||||||
|
/obj/item/book/manual/wiki/cit/initialize_wikibook()
|
||||||
|
var/wikiurl = CONFIG_GET(string/wikiurl)
|
||||||
|
if(wikiurl)
|
||||||
|
dat = {"
|
||||||
|
|
||||||
|
<html><head>
|
||||||
|
<style>
|
||||||
|
iframe {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<script type="text/javascript">
|
||||||
|
function pageloaded(myframe) {
|
||||||
|
document.getElementById("loading").style.display = "none";
|
||||||
|
myframe.style.display = "block";
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<p id='loading'>You start skimming through the manual...</p>
|
||||||
|
<iframe width='100%' height='97%' onload="pageloaded(this)" src="[wikiurl]/[page_link]" frameborder="0" id="main_frame"></iframe>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
|
|
||||||
|
"}
|
||||||
|
|
||||||
|
/obj/item/book/manual/wiki/cit/chemistry
|
||||||
name = "Chemistry Textbook"
|
name = "Chemistry Textbook"
|
||||||
icon_state ="chemistrybook"
|
icon_state ="chemistrybook"
|
||||||
author = "Nanotrasen"
|
author = "Nanotrasen"
|
||||||
title = "Chemistry Textbook"
|
title = "Chemistry Textbook"
|
||||||
|
page_link = "main/guides/guide_chemistry"
|
||||||
|
|
||||||
|
/obj/item/book/manual/wiki/cit/chem_recipies
|
||||||
|
name = "Chemistry Recipies"
|
||||||
|
icon_state ="chemrecibook"
|
||||||
|
author = "Chemcat"
|
||||||
|
title = "Chemistry Recipies"
|
||||||
|
page_link = "main/guides/chem_recipies"
|
||||||
|
|
||||||
|
/obj/item/book/manual/wiki/chemistry
|
||||||
|
name = "Outdated Chemistry Textbook"
|
||||||
|
icon_state ="chemistrybook_old"
|
||||||
|
author = "Nanotrasen"
|
||||||
|
title = "Outdated Chemistry Textbook"
|
||||||
page_link = "Guide_to_chemistry"
|
page_link = "Guide_to_chemistry"
|
||||||
|
|
||||||
|
/obj/item/book/manual/wiki/chemistry/Initialize()
|
||||||
|
..()
|
||||||
|
new /obj/item/book/manual/wiki/cit/chemistry(loc)
|
||||||
|
new /obj/item/book/manual/wiki/cit/chem_recipies(loc)
|
||||||
|
|
||||||
/obj/item/book/manual/wiki/engineering_construction
|
/obj/item/book/manual/wiki/engineering_construction
|
||||||
name = "Station Repairs and Construction"
|
name = "Station Repairs and Construction"
|
||||||
icon_state ="bookEngineering"
|
icon_state ="bookEngineering"
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
@@ -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 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
|
set hidden = 1
|
||||||
var/wikiurl = CONFIG_GET(string/wikiurl)
|
var/wikiurl = CONFIG_GET(string/wikiurl)
|
||||||
|
var/wikiurltg = CONFIG_GET(string/wikiurltg)
|
||||||
if(wikiurl)
|
if(wikiurl)
|
||||||
if(query)
|
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)
|
src << link(output)
|
||||||
else if (query != null)
|
else if (query != null)
|
||||||
|
src << link(wikiurltg)
|
||||||
src << link(wikiurl)
|
src << link(wikiurl)
|
||||||
else
|
else
|
||||||
to_chat(src, "<span class='danger'>The wiki URL is not set in the server configuration.</span>")
|
to_chat(src, "<span class='danger'>The wiki URL is not set in the server configuration.</span>")
|
||||||
|
|||||||
Reference in New Issue
Block a user