Difference between revisions of "Thread:Talk:Scriptblockformat/How to use this template"

From Theonomy Wiki
m
m
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
<noinclude>{{:Navleft|Templates Reference}}</noinclude>
 +
 
This template provides an abstraction layer for the scriptblock class, but it allows you to use any input, not just a label for scripture lookup.  If you just want to provide a scripture label, then use
 
This template provides an abstraction layer for the scriptblock class, but it allows you to use any input, not just a label for scripture lookup.  If you just want to provide a scripture label, then use
 
  <nowiki>{{:Scriptblock|Genesis 1:1}}</nowiki>  
 
  <nowiki>{{:Scriptblock|Genesis 1:1}}</nowiki>  
Line 29: Line 31:
  
 
{{:Scriptblockformat|{{:Erasesentencefromend|{{#scripture:Genesis 1:28|scriptrefstyle=scriptrefblock}}|1| ...}}}}
 
{{:Scriptblockformat|{{:Erasesentencefromend|{{#scripture:Genesis 1:28|scriptrefstyle=scriptrefblock}}|1| ...}}}}
 +
 +
Or, if you need to set a custom scripture reference, you can do it as a parameter named 'scriptref':
 +
 +
<nowiki>{{:Scriptblockformat|{{:Erasesentencefromend|{{#scripture:Genesis 1:28|1| ...}}|scriptref=Gen. 1:28}}</nowiki>
 +
 +
which outputs:
 +
 +
{{:Scriptblockformat|{{:Erasesentencefromend|{{#scripture:Genesis 1:28}}|1| ...}}|scriptref=Gen. 1:28}}

Latest revision as of 00:34, 27 July 2020

Templates Reference

This template provides an abstraction layer for the scriptblock class, but it allows you to use any input, not just a label for scripture lookup. If you just want to provide a scripture label, then use

{{:Scriptblock|Genesis 1:1}} 

which outputs:

1 In the beginning, God created the heavens and the earth. Genesis 1:1WEB

Otherwise, use:

{{:Scriptblockformat|In the beginning, God created the heavens and the earth.}}

which outputs:

In the beginning, God created the heavens and the earth.

This is helpful when you are quoting a scripture partially, but want to use the standardized scriptblock format. For example:

{{:Scriptblockformat|{{:Erasesentencefromend|{{#scripture:Genesis 1:28}}|1| ...}}}}

which outputs:

28 God blessed them. God said to them, “Be fruitful, multiply, fill the earth, and subdue it. ...” Genesis 1:28WEB

And if you want to add the scripture label to the quote, do this:

{{:Scriptblockformat|{{:Erasesentencefromend|{{#scripture:Genesis 1:28|scriptrefstyle=scriptrefblock}}|1| ...}}}}

which outputs:

28 God blessed them. God said to them, “Be fruitful, multiply, fill the earth, and subdue it. ...” Genesis 1:28WEB

Or, if you need to set a custom scripture reference, you can do it as a parameter named 'scriptref':

{{:Scriptblockformat|{{:Erasesentencefromend|{{#scripture:Genesis 1:28|1| ...}}|scriptref=Gen. 1:28}}

which outputs:

28 God blessed them. God said to them, “Be fruitful, multiply, fill the earth, and subdue it. ...” Genesis 1:28WEBGen. 1:28