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

From Theonomy Wiki
m
m (Protected "Thread:Talk:Extractsentence/How to use this template" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite) [Post replies=Allow only administrators] (indefinite)))
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
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).
+
<noinclude>{{:Navleft|Templates Reference}}</noinclude>
 +
 
 +
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.
 
The purpose is to be able to partially quote a verse of scripture, but allow for input from the different translations.
Line 5: Line 7:
 
Example:
 
Example:
  
<nowiki><sup>20</sup> {{:Extractsentence|{{#scripture:Exodus 34:20}}|2}}...</nowiki>
+
<nowiki><sup>20</sup> {{:Extractsentence|{{#scripture:Exodus 34:20}}|2}}...</nowiki>
  
 
Input:
 
Input:

Latest revision as of 17:47, 24 July 2020

Templates Reference

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.