Difference between revisions of "How to use Erasesentencefromend template"
(Created page with " ") |
|||
Line 1: | Line 1: | ||
+ | noinclude>{{:Navleft|Templates Reference|{{:TemplatesReferencename/{{PAGELANGUAGE}}}}}}</noinclude> | ||
+ | <translate>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.</translate> | ||
+ | |||
+ | <translate>Example:</translate> | ||
+ | |||
+ | <nowiki>{{:Erasesentencefromend|{{#scripture:Exodus 34:19-20}}|1|...}}</nowiki> | ||
+ | |||
+ | <translate>Input:</translate> | ||
+ | |||
+ | {{#scripture:Exodus 34:19-20}} | ||
+ | |||
+ | <translate>Output:</translate> | ||
+ | |||
+ | {{:Erasesentencefromend|{{#scripture:Exodus 34:19-20}}|1|...}} | ||
+ | |||
+ | See also: | ||
+ | |||
+ | <translate>[[:Special:MyLanguage/How to use the Erasesentence template|Erasesentence]] which does the same thing from the beginning of the input.</translate> | ||
+ | |||
+ | [[Category:Documentation]] |
Revision as of 17:51, 22 August 2020
noinclude> Templates Reference
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.