Template:GHGbible-ref/sandbox
This is the template sandbox page for Template:GHGbible-ref (diff). See also the companion subpage for test cases. |
This template uses Lua: |
Usage
[edit]This template makes it easy to format references to Bible verses in Gesenius' Hebrew Grammar.
It automatically links the chapter number to the the relevant chapter in the Hebrew Wikisource for Hebrew books (including Hebrew Sirac), and to the Greek Wikisource for New Testament and deuterocanonical books.
In Hebrew books, it links the verse numbers to verse pages in the Hebrew Wikisource. (It should also do this for Greek books, but the Greek Wikisource doesn't support it yet. Hopefully this will be supported some day.)
{{GHGbible-ref|book=''BOOK_ABBREVIATION''|chapter=''CHAPTER''|verse=''VERSE''}}
The verse parameter is optional.
Examples:
{{GHGbible-ref|book=Ne|chapter=2}}
→ Ne 2[[:he:נחמיה ב |]]{{GHGbible-ref|book=Ex|chapter=3|verse=14}}
→ Ex 3- Ps (Psalms) is automatically converted to ψ:
{{GHGbible-ref|book=Ps|chapter=40|verse=3}}
→ ψ 40 - PsPs is converted to ψψ.
Sometimes several references from the same Bible book are cited. Enter the book name and add the argument "hidebook" with the value 1:
{{GHGbible-ref|book=Jon|chapter=1|verse=14}}, {{GHGbible-ref|book=Jon|chapter=4|verse=2|hidebook=1}}
→ Jon 1, 4
Sometimes verses from the same chapter are cited consecutively, as in § 15 p, and in the printed book it is prefixed with v. or vv. Accordingly, use the value "v" or "vv" for the "hidebook" parameter:
{{GHGbible-ref|book=Ex|chapter=20|verse=2.3-6.7.8-11.12.13.14.15.16.17|hidebook=v}}
→ v.
Sometimes the book is not shown at all. In this case, use "hidebook=completely":
{{GHGbible-ref|book=Gn|chapter=37|verse=17b|hidebook=completely}}
→
And in a small number of cases, the verse number is not shown as superscrit. For these cases, use fullsizeverse=1:
{{GHGbible-ref|book=Is|chapter=3|verse=1b|hidebook=completely|fullsizeverse=1}}
→
If the book abbreviation is wrong, an error message will be displayed:
{{GHGbible-ref|book=Moro|chapter=10|verse=15}}
→ Invalid book name
The book abbreviation "Jn" is used for both John (in the New Testament) and Jonah. Jonah is the default. When linking to John, add "actualbook=John".
Abbreviations (for some books there are several possibilities in the book):
Genesis | Gn or Gn. or Gen |
Exodus | Ex |
Leviticus | Lv or Lv. or Lev |
Numbers | Nu |
Deuteronomy | Dt |
Joshua | Jos |
Judges | Ju or Ju. or Jud |
1 Samuel | 1 S |
2 Samuel | 2 S |
1 Kings | 1 K |
2 Kings | 2 K |
Isaiah | Is |
Jeremiah | Jer or Jer. or Je |
Ezekiel | Ez or Ez. or Eze |
Hosea | Hos or Ho |
Joel | Jo or Joel |
Amos | Am or Amos |
Obadiah | Ob |
Jonah | Jn or Jon |
Micah | Mi or Mic |
Nahum | Na or Nah |
Habakkuk | Hb or Hab |
Zephaniah | Zp |
Haggai | Hag |
Zechariah | Zc |
Malachi | Mal or Mal. |
Psalms | Ps (automatically converted to ψ) or PsPs (automatically converted to ψψ) |
Proverbs | Pr |
Job | Jb or Job |
Canticle | Ct or Cant |
Ruth | Ru |
Lamentations | La |
Ecclesiastes | Ec |
Esther | Est |
Daniel | Dn |
Ezra | Ezr |
Nehemiah | Neh or Ne |
1 Chronicles | 1 Ch or 1 Chr |
2 Chronicles | 2 Ch or 2 Chr |
Apocrypha | |
I Esdras | 3 Ezr (yes, it's confusing) |
1 Maccabees | 1 Macc. |
Ecclesiasticus or Sirac | Ecclus (to the Hebrew Wikisource) or Sirac (to the Greek Wikisource) |
New Testament | |
Mark | St. Mark |
John | Jn (add "actualbook=John"!) |
Acts | Acts |
Revelation | Rv |
GHGbible-ref
Format links from Gesenius' Hebrew Grammar to Bible verses.
Parameter | Description | Type | Status | |
---|---|---|---|---|
book | book | no description | String | required |
chapter | chapter | no description | Number | suggested |
verse | verse | no description | String | suggested |
hidebook | hidebook | 1 to not show the book. v or vv if "v." or "vv." is used in the text. "completely" if only the verse is shown. | String | optional |
fullsizeverse | fullsizeverse | If "1", the verse number is shown in full size and not as superscript. | Boolean | optional |
actualbook | actualbook | For ambiguous book abbreviations, the actual book to which the page links. The only one that is known to be ambiguous at the moment is Jn: it links to Jonah by default, but when it must link to John (in the New Testament), specify "John" in actualbook. | String | optional |