[MIRROR] refactors most spans (#9139)

Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com>
Co-authored-by: Kashargul <KashL@t-online.de>
This commit is contained in:
CHOMPStation2
2024-10-04 06:00:17 -07:00
committed by GitHub
parent 43ee646816
commit ab154b48b2
1511 changed files with 12497 additions and 12357 deletions

View File

@@ -9,11 +9,11 @@
var/output = replacetext(CONFIG_GET(string/wikisearchurl), "%s", url_encode(query)) // CHOMPEdit
src << link(output)
else
to_chat(src, "<span class='warning'> The wiki search URL is not set in the server configuration.</span>")
to_chat(src, span_warning(" The wiki search URL is not set in the server configuration."))
else
src << link(CONFIG_GET(string/wikiurl)) // CHOMPEdit
else
to_chat(src, "<span class='warning'>The wiki URL is not set in the server configuration.</span>")
to_chat(src, span_warning("The wiki URL is not set in the server configuration."))
return
/client/verb/forum()
@@ -25,7 +25,7 @@
return
src << link(CONFIG_GET(string/forumurl)) // CHOMPEdit
else
to_chat(src, "<span class='warning'>The forum URL is not set in the server configuration.</span>")
to_chat(src, span_warning("The forum URL is not set in the server configuration."))
return
/client/verb/rules()
@@ -38,7 +38,7 @@
return
src << link(CONFIG_GET(string/rulesurl)) // CHOMPEdit
else
to_chat(src, "<span class='danger'>The rules URL is not set in the server configuration.</span>")
to_chat(src, span_danger("The rules URL is not set in the server configuration."))
return
/client/verb/map()
@@ -51,7 +51,7 @@
return
src << link(CONFIG_GET(string/mapurl)) // CHOMPEdit
else
to_chat(src, "<span class='danger'>The map URL is not set in the server configuration.</span>")
to_chat(src, span_danger("The map URL is not set in the server configuration."))
return
/client/verb/github()
@@ -64,7 +64,7 @@
return
src << link(CONFIG_GET(string/githuburl)) // CHOMPEdit
else
to_chat(src, "<span class='danger'>The GitHub URL is not set in the server configuration.</span>")
to_chat(src, span_danger("The GitHub URL is not set in the server configuration."))
return
/client/verb/discord()
@@ -77,7 +77,7 @@
return
src << link(CONFIG_GET(string/discordurl)) // CHOMPEdit
else
to_chat(src, "<span class='danger'>The Discord URL is not set in the server configuration.</span>")
to_chat(src, span_danger("The Discord URL is not set in the server configuration."))
return
/client/verb/patreon()
@@ -90,7 +90,7 @@
return
src << link(CONFIG_GET(string/patreonurl)) // CHOMPEdit
else
to_chat(src, "<span class='danger'>The Patreon URL is not set in the server configuration.</span>")
to_chat(src, span_danger("The Patreon URL is not set in the server configuration."))
return
/client/verb/hotkeys_help()