Optional
translationOptional
verseOptional
verseReturns the name of the book being referenced according to the current translation. (See Reference.getTranslation)
Returns the TranslationID being referenced.
If the translation is not defined in the reference, then returns the reading translation from the user's settings.
Sets the verse range being referenced.
Optional
start: numberOptional
end: numberlet ref = new Reference("Psalms", 119)
ref.setVerseRange(1)
ref.toString() === "Psalms 119:1"
ref.setVerseRange(2, 3)
ref.toString() === "Psalms 119:2-3"
ref.setVerseRange()
ref.toString() === "Psalms 119"
ReferenceError if end
is defined but start
is undefined.
Fetches the scripture being referenced as markdown.
Optional
options: ScriptureOptionsStatic
fromConstructs a new Reference from text.
A reference to a scripture chapter, verse, or verses.
Example