Template talk:Bible
Sans Deity (Talk | contribs) |
|||
| Line 1: | Line 1: | ||
| + | I'd recommend changing this template so that you can choose the version (NIV or KJV). For example: | ||
| + | |||
| + | <nowiki>{{If|test={{niv|}}|then=[[Biblegatewayniv:{{{1}}}|{{{1}}}]]|else=[[Biblegatewaykjv:{{{1}}}|{{{1}}}]]}}</nowiki> | ||
| + | |||
| + | I think that'll work. Basically if you include the optional parameter (niv=''anything'') it should use the NIV link, anything else and it'll default to KJV. | ||
| + | |||
| + | Usage: | ||
| + | <nowiki>{{Bible|Genesis 5:3}}</nowiki> uses KJV | ||
| + | <nowiki>{{Bible|niv=blah|Genesis 5:3}}</nowiki> uses NIV | ||
| + | |||
| + | This leaves any existing links intact and functional while adding the option of using different versions with the same template. | ||
| + | -- [[User:Sans Deity|Sans Deity]] 18:54, 7 September 2006 (CDT) | ||
| + | ---- | ||
Gah, this template suffers from the same bug as [[Template:WP-name]]: spaces in the URL aren't properly escaped. | Gah, this template suffers from the same bug as [[Template:WP-name]]: spaces in the URL aren't properly escaped. | ||
--[[User:Arensb|Arensb]] 20:06, 31 July 2006 (MST) | --[[User:Arensb|Arensb]] 20:06, 31 July 2006 (MST) | ||
Revision as of 18:54, 7 September 2006
I'd recommend changing this template so that you can choose the version (NIV or KJV). For example:
{{If|test={{niv|}}|then=[[Biblegatewayniv:{{{1}}}|{{{1}}}]]|else=[[Biblegatewaykjv:{{{1}}}|{{{1}}}]]}}
I think that'll work. Basically if you include the optional parameter (niv=anything) it should use the NIV link, anything else and it'll default to KJV.
Usage: {{Bible|Genesis 5:3}} uses KJV {{Bible|niv=blah|Genesis 5:3}} uses NIV
This leaves any existing links intact and functional while adding the option of using different versions with the same template. -- Sans Deity 18:54, 7 September 2006 (CDT)
Gah, this template suffers from the same bug as Template:WP-name: spaces in the URL aren't properly escaped. --Arensb 20:06, 31 July 2006 (MST)