Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a255196e9afabd4a

Jump to content

Template:Latter Day Saint movement scriptures/testcases

From Wikipedia, the free encyclopedia

Test cases

[edit]

New Testament Basic

[edit]
{{Latter Day Saint movement scriptures|John|john|3|5}}

{{Latter Day Saint movement scriptures}}

John 3:5

{{Latter Day Saint movement scriptures/sandbox}}

John 3:5

Book of Mormon

[edit]
{{Latter Day Saint movement scriptures|Jacob|jacob|2|10}}

{{Latter Day Saint movement scriptures}}

Jacob 2:10

{{Latter Day Saint movement scriptures/sandbox}}

Jacob 2:10

Doctrine and Covenants

[edit]
{{Latter Day Saint movement scriptures|Doctrine and Covenants|dc|5|8}}

{{Latter Day Saint movement scriptures}}

Doctrine and Covenants 5:8

{{Latter Day Saint movement scriptures/sandbox}}

Doctrine and Covenants 5:8

Pearl of Great Price

[edit]
{{Latter Day Saint movement scriptures|Abraham|abr|4|2}}

{{Latter Day Saint movement scriptures}}

Abraham 4:2

{{Latter Day Saint movement scriptures/sandbox}}

Abraham 4:2

Full usage

[edit]
{{lds|display|book abbr|chap#|verse#|end verse#|footnote|cross ref flag|end verse flag}}

Parameters:

parameterdescriptionoptional?
|display= name of book to display in Wikipedia
|book abbr= abbreviation of book used by website (see below)
|chap#= chapter of scripture being quotedoptional
|verse#= verse of scripture being quotedoptional
|end verse#= end verse of a series of verses, such as the 5 in "John 3:3–5"
The hyphen is automatically added. If end verse flag has a value, then the hyphen is not added
This allows quoting of non-contiguous verses such as "John 3:5,16" — the end value# would be ",16"
optional
|footnote= letter of footnote - changes link to a link to the verse - and highlights the footnote matching the letter. If no match found, does not highlight anythingoptional
|cross ref flag= if this has any value, then it changes link to a link to the verse only and all verses that cross reference to it ignores the value in footnote (if any)optional
|end verse flag= if this has any value, then the hyphen before end verse# is not automatically addedoptional

Examples with explanation

[edit]
Example textDescriptionURL & Display text
{{lds|John|john|3}}Link to Chapter onlyhttps://www.churchofjesuschrist.org/study/scriptures/nt/john/3?lang=eng#
John 3
John 3
{{lds|John|john|3|5|7}}Link to verse, highlight all verses to the end verse#https://www.churchofjesuschrist.org/study/scriptures/nt/john/3.5-7?lang=eng#4
John 3:5-7
John 3:5–7
{{lds|John|john|3|5|,14-16|x}}any character in 8th parameter
use exact text in end verse# field instead of inserting a hyphen "-" before it
https://www.churchofjesuschrist.org/study/scriptures/nt/john/3.5,14-16?lang=eng#4
John 3:5,14-16
John 3:5,14-16
Note: preceding comma or dash must be included, or highlighting won't work correctly
{{lds|John|john|3|5|d}}Link to footnotes - highlights footnote matching letter (if it exists)https://www.churchofjesuschrist.org/study/scriptures/nt/john/3.5d?lang=eng#4
John 3:5
John 3:5–
Note: any end verse# value will be ignored - if letter doesn't match a footnote - will not highlight anything
{{lds|John|john|3|5|x}}Link verse cross referenceshttps://www.churchofjesuschrist.org/study/scriptures/nt/john/3.5?lang=eng#
John 3:5
John 3:5–
Note: This displays all verses that list the current verse as a cross reference.
Any continuation verse value or footnote letter will be ignored

Examples and results

[edit]
wikitextlink result

{{lds|Genesis|gen|48}}

Genesis 48

{{lds|Doctrine and Covenants|dc|130|22}}

Doctrine and Covenants 130:22

{{lds|1 Nephi|1_ne|22|22|24}}

1 Nephi 22:22–24

{{lds|Moroni|moro|10|3|5}}

Moroni 10:3–5

{{lds|John|john|3|5}}

John 3:5

{{lds|John|john|3|5|,14-16|||x}}

John 3:5,14-16

{{lds|John|john|3|5||d}}

John 3:5–

{{lds|Jeremiah|jer|1|5||d}}

Jeremiah 1:5–

{{lds|Jeremiah|jer|1|5||d|x}}

Jeremiah 1:5–

Template Data

[edit]

This template links to the English version of https://www.churchofjesuschrist.org/study/scriptures/ and makes for easier referencing inside the text. Note: This template does not use parameter names - names below are only for documentation purposes. The parameters must be passed in the order given. Do not use spaces before or after the pipe "|"

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
display1 Display Name display

name of book to display in Wikipedia

Stringoptional
book abbr2 book abbr

abbreviation of book used by website

Stringoptional
chap#3 chap# chapter

chapter of scripture being quoted

Unknownoptional
verse#4 verse# verse

verse of scripture being quoted

Numberoptional
end verse#5 end verse# end verse

end verse of a series of verses, such as the 5 in "John 3:3–5" The hyphen is automatically added. If end verse flag has a value, then the hyphen is not added This allows quoting of non-contiguous verses such as "John 3:5,16" — the end value# would be ",16"

Unknownoptional
footnote6 footnote

letter of footnote - changes link to a link to the verse - and highlights the footnote matching the letter. If no match found, does not highlight anything

Unknownoptional
cross ref flag7 cross ref flag

if this has any value, then it changes link to a link to the verse only and all verses that cross reference to it ignores the value in footnote (if any)

Unknownoptional
end verse flag8 end verse flag

if this has any value, then the hyphen before `end verse#` is not automatically added

Unknownoptional