Changes

Jump to navigation Jump to search
264 bytes added ,  02:34, August 13, 2007
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>
nsTeam2RO, nsTeam2RW, nsTeam2_talkRO, nsTeam2_talkRW
13,254

edits

Navigation menu