Difference between revisions of "Templates Reference"
Line 24: | Line 24: | ||
==Scriptblockformat== | ==Scriptblockformat== | ||
+ | {{#ifright:edit |{{:Edit|Thread:Talk:Scriptblockformat/How_to_use_this_template|Scriptblockformat documentation}} }} | ||
{{:Thread:Talk:Scriptblockformat/How_to_use_this_template}} | {{:Thread:Talk:Scriptblockformat/How_to_use_this_template}} | ||
Line 30: | Line 31: | ||
==Erasesentence== | ==Erasesentence== | ||
+ | {{#ifright:edit |{{:Edit|Thread:Talk:Erasesentence/How_to_use_this_template|Erasesentence documentation}} }} | ||
{{:Thread:Talk:Erasesentence/How_to_use_this_template}} | {{:Thread:Talk:Erasesentence/How_to_use_this_template}} | ||
Line 36: | Line 38: | ||
==Erasesentencefromend== | ==Erasesentencefromend== | ||
+ | {{#ifright:edit |{{:Edit|Thread:Talk:Erasesentencefromend/How_to_use|Erasesentencefromend documentation}} }} | ||
{{:Thread:Talk:Erasesentencefromend/How_to_use}} | {{:Thread:Talk:Erasesentencefromend/How_to_use}} | ||
Line 42: | Line 45: | ||
==Extractsentence== | ==Extractsentence== | ||
+ | {{#ifright:edit |{{:Edit|Thread:Talk:Extractsentence/How_to_use_this_template|Extractsentence documentation}} }} | ||
{{:Thread:Talk:Extractsentence/How_to_use_this_template}} | {{:Thread:Talk:Extractsentence/How_to_use_this_template}} | ||
---- | ---- |
Revision as of 23:32, 25 July 2020
We use several custom templates which help you to format your contributions to the wiki:
Quote
This is an abstraction for standardizing blockquotes.
Example:
Henry van Til wrote: {{:Quote|Culture is not something neutral, without ethical or religious connotation. Human achievement is not purposeless but seeks to achieve certain ends, which are either good or bad. Since man is a moral being, his culture cannot be a-moral. Because man is a religious being, his culture too, must be religiously oriented. There is no pure culture in the sense of being neutral religiously, or without positive or negative value ethically.<ref>Henry van Til, ''Calvinistic Concept of Culture'', 27</ref>}}
which produces:
Henry van Til wrote:
Culture is not something neutral, without ethical or religious connotation. Human achievement is not purposeless but seeks to achieve certain ends, which are either good or bad. Since man is a moral being, his culture cannot be a-moral. Because man is a religious being, his culture too, must be religiously oriented. There is no pure culture in the sense of being neutral religiously, or without positive or negative value ethically.[1]
Notice that the <ref> tag will create an automatically numbered footnote at the bottom of the page.
#scripture
<translate>We use a wiki extension for quoting scripture. It provides the following benefits:
- It standardizes the scripture references (because the translations are stored in a database)
- It makes inserting scripture references more convenient for contributors.
- It allows users to choose their preferred translation [to be implemented soon].
- It makes rendering the wiki into other languages easier and more consistent.</translate>
<translate>===Basic use=== So, if you want to quote a scripture passage, you simply write:</translate>
<translate>As Jesus said, {{#scripture: Matthew 5:17}}</translate>
<translate>which outputs:
As Jesus said, 17 “Don’t think that I came to destroy the law or the prophets. I didn’t come to destroy, but to fulfill. Matthew 5:17WEB</translate>
Adding the scripture reference
If you want the reference listed, you can write:
As Jesus said, {{#scripture: Matthew 5:17|scriptrefstyle=paren}}
which outputs:
As Jesus said, 17 “Don’t think that I came to destroy the law or the prophets. I didn’t come to destroy, but to fulfill. Matthew 5:17WEB
Hiding the verse numbers
If you want to hide the verse numbers, use the following:
As Jesus said, {{#scripture: Matthew 5:17|vsnumstyle=hidevsnum|scriptrefstyle=paren}}
which produces:
As Jesus said, “Don’t think that I came to destroy the law or the prophets. I didn’t come to destroy, but to fulfill. Matthew 5:17WEB
Selecting a specific translation/version
If you want a specific version (perhaps because the wording is more accurate?), use the following:
As Jesus said, {{#scripture: Matthew 5:17|vsnumstyle=hidevsnum|scriptrefstyle=paren|ver=KJV}}
which produces:
As Jesus said, Think not that I am come to destroy the law, or the prophets: I am not come to destroy, but to fulfil.Matthew 5:17KJV
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
This template erases one or more sentences from the end of the first parameter, based upon the number specified in the second parameter (default 1). The third parameter is optional text used to replace the sentences.
The purpose is to be able to partially quote a verse of scripture, but allow for input from the different translations.
Example:
{{:Erasesentencefromend|{{#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 “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.... Exodus 34:19-20WEB
See also: Erasesentence which does the same thing from the beginning of the input.
Extractsentence
This template extracts a particular sentence from the input of the first parameter, based upon the number specified in the second parameter (default 1).
The purpose is to be able to partially quote a verse of scripture, but allow for input from the different translations.
Example:
<sup>20</sup> {{:Extractsentence|{{#scripture:Exodus 34:20}}|2}}...
Input: 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:20WEB
Output: 20 ...If you will not redeem it, then you shall break its neck.
See also: Erasesentence which erases one or more sentences from the beginning of the input and Erasesentencefromend which does the same thing from the end of the input.
- ↑ Henry van Til, Calvinistic Concept of Culture, 27