Difference between revisions of "Template:Bible ref"

From Conservapedia
Jump to navigation Jump to search
m (Protected "Template:Bible ref": Used on main page [edit=sysop:move=sysop])
(Add alternative numbered parameters)
Line 1: Line 1:
−
<includeonly>[http://www.biblegateway.com/cgi-bin/bible?language={{{language|english}}}&passage={{{book}}}+{{{chap}}}{{#if:{{{verses|}}}|%3A{{{verses}}}|}}&version={{{version|NIV}}} {{{book}}} {{{chap}}}{{#if:{{{verses|}}}|<nowiki>:</nowiki>{{{verses}}}|}}] {{#if:{{{version|}}}|({{{version}}})|}}</includeonly><noinclude>
+
<includeonly>[http://www.biblegateway.com/cgi-bin/bible?language={{{language|english}}}&passage={{{1|{{{book}}}}}}+{{{2|{{{chap}}}}}}{{#if:{{{3|{{{verses|}}}}}}|%3A{{{3|{{{verses}}}}}}|}}&version={{{version|NIV}}} {{{book}}} {{{chap}}}{{#if:{{{verses|}}}|<nowiki>:</nowiki>{{{verses}}}|}}] {{#if:{{{version|}}}|({{{version}}})|}}</includeonly><noinclude>
 
{{TemplateDoc|pages=Articles (mainly)|purpose=Linking to a Bible passage|cat=}}
 
{{TemplateDoc|pages=Articles (mainly)|purpose=Linking to a Bible passage|cat=}}
 
{{Parms|
 
{{Parms|
 
{{Parm|language|English, etc.|no|Defaults to English}}
 
{{Parm|language|English, etc.|no|Defaults to English}}
−
{{Parm|book|Bible book|yes|see note A about books with spaces}}
+
{{Parm|1 ''or'' book|Bible book|yes|See note A about books with spaces; see also note D}}
−
{{Parm|chap|Chapter(s)|yes|}}
+
{{Parm|2 ''or'' chap|Chapter(s)|yes|See note D}}
−
{{Parm|verses|verse(s)|no|Defaults to entire chapter(s)}}
+
{{Parm|3 ''or'' verses|Verse(s)|no|Defaults to entire chapter(s).  See note D}}
 
{{Parm|version|Translation|no|Defaults to NIV (see note B)}}
 
{{Parm|version|Translation|no|Defaults to NIV (see note B)}}
 
}}
 
}}
Line 16: Line 16:
 
'''NOTE B:'''  If the version is not supplied, the link will be to the NIV, but the version will not be shown.  To show that the link is to the NIV, supply NIV to the ''version'' parameter.
 
'''NOTE B:'''  If the version is not supplied, the link will be to the NIV, but the version will not be shown.  To show that the link is to the NIV, supply NIV to the ''version'' parameter.
  
−
'''NOTE C:''' This template does ''not'' "substitute" well. It tends to leave the "if" statements in place.  
+
'''NOTE C:''' This template does ''not'' "substitute" well. It tends to leave the "if" statements in place.
 +
 
 +
'''NOTE D:''' If both un-named (numbered) parameters and equivalent named parameters are used, the named parameter will take precedence over the un-named parameter.
  
 
'''Alternative:'''
 
'''Alternative:'''
  
 
For framed quotes, use {{tl|Bible quote}}.</noinclude>
 
For framed quotes, use {{tl|Bible quote}}.</noinclude>

Revision as of 02:34, August 13, 2007


Template: Bible ref
Use on Articles (mainly)
Use for Linking to a Bible passage
Category template applies to page (none)
Template Parameters
(See using templates).
Name Purpose Required? Comment
language English, etc. no Defaults to English
1 or book Bible book yes See note A about books with spaces; see also note D
2 or chap Chapter(s) yes See note D
3 or verses Verse(s) no Defaults to entire chapter(s). See note D
version Translation no Defaults to NIV (see note B)

This template sets up the external link to BibleGateway for providing a chapter or chapter and verse reference for any passage in the Bible, in any version in any language.

Example: {{Bible ref|book=1Corinthians|chap=1|verses=1-18|version=ASV}}

NOTE A: Books which have spaces in the name (such as Song of Solomon or I & II Corinthians) must be solid set (spaces omitted), or with the spaces replaced with underscores (_). (i.e. ICorinthians and 1Corinthians and I_Corinthians and 1_Corinthians all work, but (I Corinthians) does not.)

NOTE B: If the version is not supplied, the link will be to the NIV, but the version will not be shown. To show that the link is to the NIV, supply NIV to the version parameter.

NOTE C: This template does not "substitute" well. It tends to leave the "if" statements in place.

NOTE D: If both un-named (numbered) parameters and equivalent named parameters are used, the named parameter will take precedence over the un-named parameter.

Alternative:

For framed quotes, use {{Bible quote}}.