Difference between revisions of "Template:Bible ref"
(Revert; that didn't work) |
(Try again) |
||
| Line 1: | Line 1: | ||
| − | <includeonly>[http://www.biblegateway.com/cgi-bin/bible?language={{{language|english}}}&passage= | + | <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|}}}|:{{{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| | ||
Revision as of 11:47, June 7, 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 |
| book | Bible book | yes | see note A about books with spaces |
| chap | Chapter(s) | yes | |
| verses | verse(s) | no | Defaults to entire chapter(s) |
| 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.
Alternative:
For framed quotes, use {{Bible quote}}.