Jump to content

Template:Bible quote: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<templatestyles src="Bible_quote/styles.css" />
<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.
{{Uses TemplateStyles|Template:Bible_quote/styles.css}}
However the BibleQuote divs at the bottom of the page are not produced by the template, so they will not receive the necessary styling.
It is necessary to use Mediawiki:Common.css with global styling... -->
{{Template shortcut|Bible quote}}
{{Template shortcut|Bible quote}}
{{Lua{{\sandbox}}|Module:BibleQuote}}
{{Lua{{\sandbox}}|Module:BibleQuote}}
This Template takes two parameters:
This Template takes two parameters:
* '''version''': value must be a Bible version that is supported by the BibleGet project
* '''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 [[W:Bible_citation|Bible citation notation]]
* '''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>
<nowiki>{{Bible quote|version=NVBSE|ref=1 John 4:7-8}}</nowiki>


will produce: {{Bible quote|version=NVBSE|ref=1 John 4:7-8}}
will produce: {{Bible quote|version=NVBSE|ref=1 John 4:7-8}}
----
<nowiki>{{Bible quote|ref=1Cor 13:1-5|inline=0}}</nowiki>
will produce: {{Bible quote|ref=1Cor 13:1-5|inline=0}}


----
----
Line 16: Line 24:
Passing in a Bible version not supported by the BibleGet project:
Passing in a Bible version not supported by the BibleGet project:


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


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><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>