Difference between revisions of "Templates Reference"
m (Protected "Templates Reference" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
|||
Line 6: | Line 6: | ||
{{:Thread:Talk:Scriptblock/How_to_use_this_template}} | {{:Thread:Talk:Scriptblock/How_to_use_this_template}} | ||
---- | ---- | ||
+ | |||
==Scriptblockformat== | ==Scriptblockformat== | ||
{{:Thread:Talk:Scriptblockformat/How_to_use_this_template}} | {{:Thread:Talk:Scriptblockformat/How_to_use_this_template}} | ||
---- | ---- | ||
+ | |||
==Erasesentence== | ==Erasesentence== | ||
{{:Thread:Talk:Erasesentence/How_to_use_this_template}} | {{:Thread:Talk:Erasesentence/How_to_use_this_template}} | ||
---- | ---- | ||
+ | |||
==Erasesentencefromend== | ==Erasesentencefromend== | ||
{{:Thread:Talk:Erasesentencefromend/How_to_use_this_template}} | {{:Thread:Talk:Erasesentencefromend/How_to_use_this_template}} | ||
---- | ---- |
Revision as of 17:41, 24 July 2020
Here are a list of templates which you can use to format your contributions to the wiki:
Scriptblock
This template provides an abstraction layer for the scriptblock class/style.
Example:
{{:Scriptblock|Genesis 1:1-2}}
which outputs:
1 In the beginning, God created the heavens and the earth. 2 The earth was formless and empty. Darkness was on the surface of the deep and God’s Spirit was hovering over the surface of the waters. Genesis 1:1-2WEB
If you want to specify a particular version, use the code for the version you want:
{{:Scriptblock|Genesis 1:1-2|ver=KJV}}
which outputs:
1 In the beginning God created the heaven and the earth. 2 And the earth was without form, and void; and darkness was upon the face of the deep. And the Spirit of God moved upon the face of the waters.Genesis 1:1-2KJV
If you don't want to display the verse numbers, write:
{{:Scriptblock|Genesis 1:1-2|2=vsnumstyle=hidevsnum }}
which outputs:
In the beginning, God created the heavens and the earth. The earth was formless and empty. Darkness was on the surface of the deep and God’s Spirit was hovering over the surface of the waters. Genesis 1:1-2WEB
If you don't want to display the scripture reference, write:
{{:Scriptblock|Genesis 1:1-2|2=scriptrefstyle=hidescriptref }}
which outputs:
1 In the beginning, God created the heavens and the earth. 2 The earth was formless and empty. Darkness was on the surface of the deep and God’s Spirit was hovering over the surface of the waters.
For no verse numbers and no scripture reference, write:
{{:Scriptblock|Genesis 1:1-2|2=scriptrefstyle=hidescriptref|3=vsnumstyle=hidevsnum }}
which outputs:
In the beginning, God created the heavens and the earth. The earth was formless and empty. Darkness was on the surface of the deep and God’s Spirit was hovering over the surface of the waters.
Scriptblockformat
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
Erasesentence
This template erases one or more sentences from the beginning of the first parameter, based upon the number specified in the second parameter (default 1). It will insert the text of the third parameter in place of the erased sentence. Note that the matching algorithm will skip an initial <span> tag, and an initial spanned number (scripture verse), before erasing.
The purpose is to be able to partially quote a verse of scripture, but allow for input from the different translations.
Example:
{{:Erasesentence|{{#scripture:Exodus 34:19-20}}|1|...}}
Input: 19 “All that opens the womb is mine; and all your livestock that is male, the firstborn of cow and sheep. 20 You shall redeem the firstborn of a donkey with a lamb. If you will not redeem it, then you shall break its neck. You shall redeem all the firstborn of your sons. No one shall appear before me empty. Exodus 34:19-20WEB
Output: 19 ... and all your livestock that is male, the firstborn of cow and sheep. 20 You shall redeem the firstborn of a donkey with a lamb. If you will not redeem it, then you shall break its neck. You shall redeem all the firstborn of your sons. No one shall appear before me empty. Exodus 34:19-20WEB
See also: Erasesentencefromend which does the same thing from the end of the input, and Extractsentence which allows extraction of one of the sentences in the input.
Erasesentencefromend
Thread:Talk:Erasesentencefromend/How to use this template