Templates Reference

From Theonomy Wiki
Revision as of 18:07, 24 July 2020 by Mgarcia (talk | contribs)

Here are a list of templates which you can use to format your contributions to the wiki:


#scripture

<translate>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.</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, 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 produces:

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

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:

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


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.