516 internal links (#20428)

Convert all (appropriate) links to use the required `byond://` for 516

Added a grep to detect incompatible ones
This commit is contained in:
Fluffy
2025-02-20 23:54:10 +01:00
committed by GitHub
parent f09ec22549
commit 3185c10cf1
223 changed files with 1397 additions and 1398 deletions
+4 -4
View File
@@ -12,19 +12,19 @@ datum/admins/proc/notes_gethtml(var/ckey)
var/savefile/notesfile = new(NOTESFILE)
if(!notesfile) return SPAN_WARNING("Error: Cannot access [NOTESFILE]")
if(ckey)
. = "<b>Notes for <a href='?src=[REF(src)];notes=show'>[ckey]</a>:</b> <a href='?src=[REF(src)];notes=add;ckey=[ckey]'>\[+\]</a> <a href='?src=[REF(src)];notes=remove;ckey=[ckey]'>\[-\]</a><br>"
. = "<b>Notes for <a href='byond://?src=[REF(src)];notes=show'>[ckey]</a>:</b> <a href='byond://?src=[REF(src)];notes=add;ckey=[ckey]'>\[+\]</a> <a href='byond://?src=[REF(src)];notes=remove;ckey=[ckey]'>\[-\]</a><br>"
notesfile.cd = "/[ckey]"
var/index = 1
while( !notesfile.eof )
var/note
notesfile >> note
. += "[note] <a href='?src=[REF(src)];notes=remove;ckey=[ckey];from=[index]'>\[-\]</a><br>"
. += "[note] <a href='byond://?src=[REF(src)];notes=remove;ckey=[ckey];from=[index]'>\[-\]</a><br>"
index++
else
. = "<b>All Notes:</b> <a href='?src=[REF(src)];notes=add'>\[+\]</a> <a href='?src=[REF(src)];notes=remove'>\[-\]</a><br>"
. = "<b>All Notes:</b> <a href='byond://?src=[REF(src)];notes=add'>\[+\]</a> <a href='byond://?src=[REF(src)];notes=remove'>\[-\]</a><br>"
notesfile.cd = "/"
for(var/dir in notesfile.dir)
. += "<a href='?src=[REF(src)];notes=show;ckey=[dir]'>[dir]</a><br>"
. += "<a href='byond://?src=[REF(src)];notes=show;ckey=[dir]'>[dir]</a><br>"
return
//handles removing entries from the buffer, or removing the entire directory if no start_index is given