Template:Bible quote: Difference between revisions

From Seeds of the Word, the encyclopedia of the influence of the Gospel on culture
Content deleted Content added
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#invoke:BibleQuote|main|version={{{version}}}|ref={{{ref}}}}}{{#if:{{#invoke:BibleQuote|isValidVersion|version={{{version}}}}}|[[Category:Bible quote template]]|[[Category:Bible quote template with errors]]}}</includeonly><noinclude>
<templatestyles src="Bible_quote/styles.css" />
<noinclude>
<!-- I tried templatestyles but they don't work in this case because they are set directly inline on the relative elements produced by the template.
<!-- I tried templatestyles but they don't work in this case because they are set directly inline on the relative elements produced by the template.
However the BibleQuote divs at the bottom of the page are not produced by the template, so they will not receive the necessary styling.
However the BibleQuote divs at the bottom of the page are not produced by the template, so they will not receive the necessary styling.
Line 22: Line 21:
will produce: {{Bible quote|version=KJAMES|ref=1 John 4:7-8}}
will produce: {{Bible quote|version=KJAMES|ref=1 John 4:7-8}}


</noinclude>
</noinclude><includeonly>{{#invoke:BibleQuote|main|version={{{version}}}|ref={{{ref}}}}}{{#if:{{#invoke:BibleQuote|isValidVersion|version={{{version}}}}}|[[Category:Bible quote template]]|[[Category:Bible quote template with errors]]}}</includeonly>

Revision as of 12:09, September 12, 2020

This Template takes two parameters:

  • version: value must be a Bible version that is supported by the BibleGet project
  • ref: value should be a Bible quote using standard Bible citation notation

{{Bible quote|version=NVBSE|ref=1 John 4:7-8}}

will produce: 1 John 4:7-8


Passing in a Bible version not supported by the BibleGet project:

{{Bible quote|version=NVBSE|ref=1 John 4:7-8}}

will produce: 1 John 4:7-8[!]