Difference between revisions of "Templates Reference"

From Theonomy Wiki
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<languages />{{:Navleft|Category:Documentation|<translate>All Documentation</translate>}}
+
<languages />{{:Navleft|Category:Documentation|{{:Alldocumentationname/{{:UIlang}}}}}}
  
 
<translate>We use several custom templates which help you to format your contributions to the wiki:</translate>
 
<translate>We use several custom templates which help you to format your contributions to the wiki:</translate>
 
__NOEDITSECTION__
 
  
 
<translate>==Quote template==</translate>
 
<translate>==Quote template==</translate>
 
{{#ifright:edit |{{:Edit|How_to_use_the_Quote_template|Quote template documentation}} }}
 
{{#ifright:edit |{{:Edit|How_to_use_the_Quote_template|Quote template documentation}} }}
  
{{:How_to_use_the_Quote_template/{{PAGELANGUAGE}}}}
+
{{:How to use the Quote template/{{PAGELANGUAGE}}}}
 
----
 
----
  
Line 20: Line 18:
  
 
==Scriptblock==
 
==Scriptblock==
{{#ifright:edit |{{:Edit|Thread:Talk:Scriptblock/How_to_use_this_template|Scriptblock documentation}} }}
+
{{#ifright:edit |{{:Edit|How to use the Scriptblock template|Scriptblock documentation}} }}
  
{{:Thread:Talk:Scriptblock/How_to_use_this_template}}
+
{{:How to use the Scriptblock template/{{PAGELANGUAGE}}}}
 
----
 
----
  
  
 
==Scriptblockformat==
 
==Scriptblockformat==
{{#ifright:edit |{{:Edit|Thread:Talk:Scriptblockformat/How_to_use_this_template|Scriptblockformat documentation}} }}
+
{{#ifright:edit |{{:Edit|How to use the Scriptblockformat template|Scriptblockformat documentation}} }}
  
{{:Thread:Talk:Scriptblockformat/How_to_use_this_template}}
+
{{:How to use the Scriptblockformat template/{{PAGELANGUAGE}}}}
 
----
 
----
  

Latest revision as of 21:36, 2 September 2020

All documentation

We use several custom templates which help you to format your contributions to the wiki:

Quote template

This is a template 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 outputs:

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 function

We use a wiki extension for quoting scripture. It provides the following benefits:

  1. It standardizes the scripture references (because the translations are stored in a database)
  2. It makes inserting scripture references more convenient for contributors.
  3. It allows users to choose their preferred translation [to be implemented soon].
  4. It makes rendering the wiki into other languages easier and more consistent.


Basic use

So, if you want to quote a scripture passage, you simply write:

As Jesus said, {{#scripture: Matthew 5:17}}

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

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

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

As Jesus said, 17 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

The Scriptblock template provides a way to nicely format scripture passages.

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 do not want to display the verse numbers, write:

{{:Scriptblock|Genesis 1:1-2|2=vsnumstyle=hidevsnum }} 

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 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. Genesis 1:1-2WEB

For no verse numbers and no scripture reference, write:

{{:Scriptblock|Genesis 1:1-2|2=scriptrefstyle=hidescriptref|3=vsnumstyle=hidevsnum }} 

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



Scriptblockformat

This template allows you to format your scripture quotes in the standard scriptblock style, but it allows you to use any input, not just our local scripture database versions. This is helpful if you want to cite a translation which our site does not host (we do not host any copyrighted scripture translations), and you want it to be formatted in the same style as all the others.

You might not need this template. If you just want to provide a scripture label for one of our hosted scripture versions, then write, for example:

{{:Scriptblock|Genesis 1:1|ver=KJV}}

which outputs:

1 In the beginning God created the heaven and the earth.Genesis 1:1KJV

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



Chiasm

This template allows you to create a chiasm structure. Each level of the chiasm is formatted on its own line. The first parameter is the label (e.g. A, B, C'). The second parameter is the indent level. The third parameter is the scripture text.

Example:

{{:Chiasm|A|1|{{#scripture:Lev 24:17}}}}
{{:Chiasm|B|2|{{#scripture:Lev 24:18}}}}
{{:Chiasm|C|3|{{#scripture:Lev 24:19}}}}
{{:Chiasm|D|4|{{:Erasesentencefromend|{{#scripture:Lev 24:20}}|1}}}}
{{:Chiasm|C'|3|{{:Erasesentence|{{#scripture:Lev 24:20}}|1|...}}}}
{{:Chiasm|B'|2|{{:Erasesentencefromend|{{#scripture:Lev 24:21}}|1|...}}}}
{{:Chiasm|A'|1|{{:Erasesentence|{{#scripture:Lev 24:21}}|1|...}}}}

Which outputs: A 17 “‘He who strikes any man mortally shall surely be put to death. Leviticus 24:17WEB B 18 He who strikes an animal mortally shall make it good, life for life. Leviticus 24:18WEB C 19 If anyone injures his neighbor, it shall be done to him as he has done: Leviticus 24:19WEB D 20 fracture for fracture, eye for eye, tooth for tooth. Leviticus 24:20WEB C' 20 ... It shall be done to him as he has injured someone. Leviticus 24:20WEB B' 21 He who kills an animal shall make it good;... Leviticus 24:21WEB A' 21 ... and he who kills a man shall be put to death. Leviticus 24:21WEB


View more examples at the Feature: Chiasm page.


  1. Henry van Til, Calvinistic Concept of Culture, 27