Module:LDSverse: Difference between revisions

Content deleted Content added
Created lofBooks
m added some abbreviations for the introduction to the Book of Mormon
Line 4:
-- TODO:
-- Take out the assert statements and handle errors more gracefully?
-- Handle situations where the book name parameter is mistakenly left out (e.g., {{LDS|Alma|7|11}}).: Ifif the "bookParam" evaluates to a number, shift all the parameters "down" one (i.e., bookParam->chapterParam, chapterParam->verseParam, etc.) and treat the display text (minus any period or other punctuation) is the bookParam.
-- Add support for links to BoM Title page and testimonies of 3/8 witnesses?
-- Handle situations where the book name parameter is mistakenly left out (e.g., {{LDS|Alma|7|11}}). If the "bookParam" evaluates to a number, shift all the parameters "down" one (i.e., bookParam->chapterParam, chapterParam->verseParam, etc.) and treat the display text (minus any period or other punctuation) is the bookParam.
 
--[[
First: define bomBooks, dcBooks, pogpBooks, lofBooks, and bibleBooks
These tables (one for each Standard Work) are the heart of the module.
They have the following structure:
Line 20 ⟶ 19:
be tested for in the logic (since these tables are already huge).
The four tables are then themselves stored in an array titled standardWorks
]]
 
local bomBooks = {
["Introduction"] = {"intro", "bom-intro", "bom_intro", "three", "eight"},
["1 Nephi"] = {"1-ne", "1_ne", "1ne"},
["2 Nephi"] = {"2-ne", "2_ne", "2ne"},