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
 
(26 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#invoke:BibleQuote|main}}{{#ifexpr:{{#invoke:BibleQuote|isValidVersion}}|[[Category:Bible quote template]]|[[Category:Bible quote template with errors]]}}</includeonly><noinclude>
<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.
This Template takes three parameters:
However the BibleQuote divs at the bottom of the page are not produced by the template, so they will not receive the necessary styling.
<nowiki>{{Bible quote|version=NABRE|ref=John 3:16}}</nowiki>
It is necessary to use Mediawiki:Common.css with global styling... -->
will produce:
{{Bible quote|version=NABRE|ref=John 3:16}}
{{Template shortcut|Bible quote}}
{{Lua{{\sandbox}}|Module:BibleQuote}}
</noinclude>
This Template can take up to three parameters:
<includeonly>
* '''version''': value must be a Bible version that is supported by the BibleGet project. If empty or not used will default to "NABRE".
{{#invoke:BibleQuote|main|{{{version}}}}}
* '''ref''': value should be a Bible quote using standard [[W:Bible_citation|Bible citation notation]]. If empty or not used will default to "John 3:16",
* '''inline''': value should be '''true''' or '''false'''. If empty or not used will default to '''true'''. If '''true''' the text of the Bible quote will be contained in a popup which will show on mouseover. If false the Bible quote will show as a block inside the page.


<nowiki>{{Bible quote|version=NVBSE|ref=1 John 4:7-8}}</nowiki>
<span class="bibleQuoteRef" style="color:Blue;font-weight:bold;">{{{ref}}}</span><div data-ref="{{{ref}}}" data-version="{{{version}}}" class="BibleGetQuote"></div>


will produce: {{Bible quote|version=NVBSE|ref=1 John 4:7-8}}
</includeonly>

----

<nowiki>{{Bible quote|ref=1Cor 13:1-5|inline=0}}</nowiki>

will produce: {{Bible quote|ref=1Cor 13:1-5|inline=0}}

----

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

<nowiki>{{Bible quote|version=KJV|ref=1 John 4:7-8}}</nowiki>

will produce: {{Bible quote|version=KJV|ref=1 John 4:7-8}}

</noinclude>

Latest revision as of 20:21, August 23, 2024

This Template can take up to three parameters:

  • version: value must be a Bible version that is supported by the BibleGet project. If empty or not used will default to "NABRE".
  • ref: value should be a Bible quote using standard Bible citation notation. If empty or not used will default to "John 3:16",
  • inline: value should be true or false. If empty or not used will default to true. If true the text of the Bible quote will be contained in a popup which will show on mouseover. If false the Bible quote will show as a block inside the page.

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

will produce: 1 John 4:7-8


{{Bible quote|ref=1Cor 13:1-5|inline=0}}

will produce:


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

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

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