Difference between revisions of "Template:Bible ref"

From Conservapedia
Jump to navigation Jump to search
(Rewrite with a newly repaired #if directive)
Line 1: Line 1:
−
[http://www.biblegateway.com/cgi-bin/bible?language={{{language}}}&passage={{{book}}}+{{{chap}}}%3A{{{verses}}}&version={{{version}}} {{{book}}} {{{chap}}}:{{{verses}}}] ({{{version}}})<noinclude>
+
[http://www.biblegateway.com/cgi-bin/bible?language={{#if:{{{language|}}}|{{{language}}}|english}}&passage={{#if:{{{verses|}}}|{{{book}}}+{{{chap}}}%3A{{{verses}}}|{{{book}}}+{{{chap}}}}}&version={{#if:{{{version|}}}|{{{version}}}|NIV}} {{#if:{{{verses|}}}|{{{book}}} {{{chap}}}:{{{verses}}}|{{{book}}} {{{chap}}}}}] {{#if:{{{version|}}}|({{{version}}})}}<noinclude>
  
  
−
The '''<nowiki>{{Bible ref}}</nowiki>''' template sets up an external link to [http://www.biblegateway.com/ BibleGateway] for providing a chapter and verse reference for any book of the Bible, in any version in any language. Use it without a verse parameter to quote entire chapters. For framed quotes, use Bible verses in the [[template:Bible quote|Bible quote template]].
+
The '''<nowiki>{{Bible ref}}</nowiki>''' template sets up the external link to [http://www.biblegateway.com/ BibleGateway] for providing a chapter and verse reference for any book of the Bible, in any version in any language. Use it without a verse parameter to quote entire chapters. For framed quotes, use Bible verses - use the [[template:Bible quote|Bible quote template]].
  
−
To use, specify the following parameters.
+
To use, specify the following parameters (only book and chapter are required; the others have defaults).
  
−
'''Example: <nowiki>{{Bible ref|book=Matthew|chap=1|verses=1-18|version=ASV}}</nowiki>'''
+
'''Example: <nowiki>{{Bible ref|book=1Corinthians|chap=1|verses=1-18|version=ASV}}</nowiki>'''
  
 +
* language = the language you want the quote in. Default is English.
 
* book = the book of the Bible. Required.
 
* book = the book of the Bible. Required.
 
* chap = the number of the chapter. Required.
 
* chap = the number of the chapter. Required.
−
* verses = one verse or a range of verses. Required.
+
* verses = one verse or a range of verses. Default is the entire chapter.
−
* version = the version you want the quote in.
+
* version = the version you want the quote in. Default is NIV--but if it is not specified, it will not be specifically mentioned. If you are quoting explicitly from any given version of the Bible, including the NIV, please so specify explicitly.
  
−
You can "subst" this template if you wish.
+
Note: this template does ''not'' "substitute" well. It tends to leave the "if" statements in place.  
  
−
[[Category:Template]]
+
Also note that books which have multiple volumes (such as I & II Corintians) must be specified with no space between the book number and book name (i.e. ICorinthians and 1Corinthians both work, but (I Corinthians) does not.)</noinclude>
−
</noinclude>
 

Revision as of 00:43, June 6, 2007

{{{book}}} {{{chap}}}


The {{Bible ref}} template sets up the external link to BibleGateway for providing a chapter and verse reference for any book of the Bible, in any version in any language. Use it without a verse parameter to quote entire chapters. For framed quotes, use Bible verses - use the Bible quote template.

To use, specify the following parameters (only book and chapter are required; the others have defaults).

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

  • language = the language you want the quote in. Default is English.
  • book = the book of the Bible. Required.
  • chap = the number of the chapter. Required.
  • verses = one verse or a range of verses. Default is the entire chapter.
  • version = the version you want the quote in. Default is NIV--but if it is not specified, it will not be specifically mentioned. If you are quoting explicitly from any given version of the Bible, including the NIV, please so specify explicitly.

Note: this template does not "substitute" well. It tends to leave the "if" statements in place.

Also note that books which have multiple volumes (such as I & II Corintians) must be specified with no space between the book number and book name (i.e. ICorinthians and 1Corinthians both work, but (I Corinthians) does not.)