// Autogenerates a table which will resemble the traditional wiki table. /datum/lore/codex/page/overview name = "Overview" data = "This has a table of all the corporate violations and legal crimes contained inside this book. The 'mandated' area \ determines the flexibility/strictness allowed in sentencing for violations/crimes." /datum/lore/codex/page/overview/add_content() var/list/law_sources = list( /datum/lore/codex/category/corporate_minor_violations, /datum/lore/codex/category/corporate_major_violations, /datum/lore/codex/category/law_minor_violations, /datum/lore/codex/category/law_major_violations ) var/list/table_color_headers = list("#66ffff", "#3399ff", "#ffee55", "#ff8855") var/list/table_color_body_even = list("#ccffff", "#66ccff", "#ffee99", "#ffaa99") var/list/table_color_body_odd = list("#e6ffff", "#b3e6ff", "#fff6cc", "#ffd5cc") spawn(2 SECONDS) // So the rest of the book can finish. var/HTML HTML += "
" var/i for(i = 1, i <= law_sources.len, i++) var/datum/lore/codex/category/C = holder.get_page_from_type(law_sources[i]) if(C) HTML += "" HTML += "" HTML += " " HTML += " " HTML += " " HTML += " " HTML += " " HTML += " " HTML += " " var/j = 1 //Used to color rows differently if even or odd. for(var/datum/lore/codex/page/law/L in C.children) if(!L.name) continue // Probably something we don't want to see. HTML += " " HTML += " " HTML += " " HTML += " " HTML += " " HTML += " " HTML += " " j++ HTML += "
[quick_link(C.name)]
IncidentDescriptionSuggested PunishmentNotesMandated?
[quick_link(L.name)][L.definition][L.suggested_punishments][L.notes][L.mandated ? "Yes" : "No"]
" HTML += "

" HTML += "
" data = data + HTML ..()