Template:Bibleverse: Difference between revisions

From CATUG wiki
Jump to navigation Jump to search
(try without #if as we don't have parser function extension installed)
(→‎Usage: *SOURCE is an optional parameter, to specify a translation. It is normally better to include one)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
[http://bibref.hebtools.com/?book={{{1|}}}%20{{{2}}}&verse={{{3}}}&src={{{4|!}}}]<noinclude>
[http://bibref.hebtools.com/?book={{{1|}}}%20{{{2}}}&verse={{{3}}}&src={{{4|!}}} {{{1}}}&nbsp;{{{2}}} {{{3}}}]<noinclude>


==Usage==
==Usage==
Line 11: Line 11:
In text, with parentheses, this looks like this ({{Bibleverse||John|3:16|KJV}}).
In text, with parentheses, this looks like this ({{Bibleverse||John|3:16|KJV}}).


Note the empty parameter <code>||</code> before "John" in the above examples. This is to handle the first parameter, "<code>BOOK#</code>", which is not usually necessary, and cumbersome to look up.
Note the empty parameter <code>||</code> before "John" in the above examples. This is to handle the first parameter, "<code>BOOK#</code>", which is not usually necessary, and cumbersome to look up.  


; Detail
; Detail
Line 18: Line 18:
*'''''DO NOT put any spaces anywhere in the template.'''''
*'''''DO NOT put any spaces anywhere in the template.'''''
*You can use shorthand for the names, such as '''Sam''' or '''Deut'''.
*You can use shorthand for the names, such as '''Sam''' or '''Deut'''.
*Verse references may be simplified (for example, no range or entire chapter).
*Verse references may be simplified (for example, no range for just one verse, or entire chapter).
*If there is only one book, leave that part blank.
*SOURCE is an optional parameter, to specify a translation. It is normally better to include one, e.g. KJV or NIV, otherwise the link goes to a long list of alternatives.


==List of sources==
==List of sources==
Line 44: Line 44:
|}
|}


==Alternative usage==
==Alternative templates==


An alternative is also sometimes used: <nowiki> {{Bibleverse|BOOKNAME|BOOK#|c:v-c:v|SOURCE_CODE}} </nowiki>. Note, though, that if no book number is relevant, the blank argument must be there (see Genesis example below).
An alternative version of this template is available that does not display the book name: [[Template:Bibleverse-nb]]. It can be used to create lists of verses, eg. <nowiki> {{Bibleverse||Exodus|1:2-3|HE}}; {{Bibleverse-nb||Exodus|13:10|HE}} </nowiki>
:produces: {{Bibleverse||Exodus|1:2-3|HE}}; {{Bibleverse-nb||Exodus|13:10|HE}}


An alternative version of this template is available that does not include the book name: [[Template:Bibleverse-nb]]. It can be used to create lists of verses, eg. <nowiki> {{Bibleverse||Exodus|1:2-3|HE}}; {{Bibleverse-nb||Exodus|13:10|HE}} </nowiki>
A shorter alternative that has no parameter BOOK# is [[Template:Bibleref]]. However, the full template Bibleverse looks better for references that do have a book number, e.g. 1 Samuel or 3 John.
:produces: {{Bibleverse||Exodus|1:2-3|HE}}; {{Bibleverse-nb||Exodus|13:10|HE}}


==Examples==
==Examples==
Line 56: Line 56:
*Example2:  <nowiki> {{Bibleverse||Genesis|1:15-16|HE}} </nowiki> produces: {{Bibleverse||Genesis|1:15-16|HE}}
*Example2:  <nowiki> {{Bibleverse||Genesis|1:15-16|HE}} </nowiki> produces: {{Bibleverse||Genesis|1:15-16|HE}}


 
[[Category:Templates|Bibleverse]]
</noinclude>
</noinclude>

Latest revision as of 20:49, 23 February 2011

{{{1}}} {{{2}}} {{{3}}}

Usage

Code format: {{Bibleverse|BOOK#|BOOKNAME|c:v–c:v|SOURCE}}

This template links offsite.
Example
{{Bibleverse||John|3:16|KJV}} yields: John 3:16

In text, with parentheses, this looks like this ( John 3:16).

Note the empty parameter || before "John" in the above examples. This is to handle the first parameter, "BOOK#", which is not usually necessary, and cumbersome to look up.

Detail

This template is used to provide sources for Bible verse references. See the Wikipedia talk page for more usages, examples and source codes.

  • DO NOT put any spaces anywhere in the template.
  • You can use shorthand for the names, such as Sam or Deut.
  • Verse references may be simplified (for example, no range for just one verse, or entire chapter).
  • SOURCE is an optional parameter, to specify a translation. It is normally better to include one, e.g. KJV or NIV, otherwise the link goes to a long list of alternatives.

List of sources

A list of sources and codes that may be used to trigger them is at http://bibref.hebtools.com#srcref


Here is a sample list (this list is subject to change, please check link above):

Code Translation
(do not include or, just number or text)
1000 Show user all options
31 or NIV New International Version (Biblegateway)
49 or NASB New American Standard Bible (BibleGateway)
9 or KJV King James Version (BibleGateway)
105 or HE Hebrew-English - paraellel MT and JPS 1917 (Mechon Mamre)
65 or TM The Message (BibleGateway)

Alternative templates

An alternative version of this template is available that does not display the book name: Template:Bibleverse-nb. It can be used to create lists of verses, eg. {{Bibleverse||Exodus|1:2-3|HE}}; {{Bibleverse-nb||Exodus|13:10|HE}}

produces:  Exodus 1:2-3; 13:10

A shorter alternative that has no parameter BOOK# is Template:Bibleref. However, the full template Bibleverse looks better for references that do have a book number, e.g. 1 Samuel or 3 John.

Examples

  • Example1: {{Bibleverse|1|Samuel|3:16-4:18|31}} produces a link to the NIV translation (31 in the source list as linked below): 1 Samuel 3:16-4:18
  • Example2: {{Bibleverse||Genesis|1:15-16|HE}} produces:  Genesis 1:15-16