Difference between revisions of "Template:LDS/legacy"
imported>Biggins m (Added comment) |
imported>Biggins |
||
| Line 4: | Line 4: | ||
See https://en.wikipedia.org/wiki/Template_talk:LDS/sandbox#Migrating_to_Wikisource:_Issues_to_Address | See https://en.wikipedia.org/wiki/Template_talk:LDS/sandbox#Migrating_to_Wikisource:_Issues_to_Address | ||
| − | -- | + | --><span class="plainlinks">[https://www.churchofjesuschrist.org/study/scriptures/{{#switch:{{{2}}}|gen|ex|lev|num|duet|josh|judg|ruth|1sam|1-sam|2sam|2-sam|1kgs|1-kgs|1_kgs|2kgs|2-kgs|2_kgs|1chr|1-chr|1_chr|2chr||2_chr|2-chr|ezra|neh|esth|job|ps|prov|eccl|song|isa|jer|lam|ezek|dan|hosea|joel|amos|obad|jonah|micah|nahum|hab|zeph|hag|zech|mal=ot|matt|mark|luke|john|acts|rom|1-cor|1_cor|1cor|2-cor|2_cor|2cor|gal|eph|philip|col|1-thes|1_thes|1thes|2-thes|2_thes|2thes|1-tim|1_tim|1tim|2-tim|2_tim|2tim|titus|philem|heb|james|1-pet|1_pet|1pet|2-pet|2_pet|2pet|1-jn|1_jn|1jn|2-jn|2_jn|2jn|3-jn|3_jn|3jn|jude|rev=nt|ttlpg|three|eight|1-ne|1_ne|1ne|2-ne|2_ne|2ne|jacob|enos|jarom|omni|w-of-m|wofm|w_of_m|mosiah|alma|hel|3-ne|3_ne|3ne|4-ne|4_ne|4ne|morm|ether|moro=bofm|chron-order|od|dc=dc-testament|moses|abr|fac-1|fac1|fac-2|fac2|fac-3|fac3|js-m|jsm|js-h|jsh|a-of-f|a_of_f|aoff=pgp|jst-gen|jst-ex|jst-1-chr|jst-ps|jst-isa|jst-matt|jst-mark|jst-luke|jst-john|jst-acts|jst-rom|jst-1-cor|jst-gal|jst-col|jst-2-thes|jst-1-tim|jst-heb|jst-james|jst-2-pet|jst-rev=jst}}/{{#switch:{{{2}}}|1kgs|1-kgs|1_kgs=1-kgs|2kgs|2-kgs|2_kgs=2-kgs|1chr|1-chr|1_chr=1-chr|2chr||2_chr|2-chr=2-chr|1-cor|1_cor|1cor=1-cor|2-cor|2_cor|2cor=2-cor|1-thes|1_thes|1thes=1-thes|2-thes|2_thes|2thes=2-thes|1-tim|1_tim|1tim=1-tim|2-tim|2_tim|2tim=2-tim|1-pet|1_pet|1pet=1-pet|2-pet|2_pet|2pet=2-pet|1-jn|1_jn|1jn=1-jn|2-jn|2_jn|2jn=2-jn|3-jn|3_jn|3jn=3-jn|1-ne|1_ne|1ne=1-ne|2-ne|2_ne|2ne=2-ne|w_of_m|wofm|w-of-m=w-of-m|3-ne|3_ne|3ne=3-ne|4-ne|4_ne|4ne=4-ne|a-of-f|a_of_f|aoff=a-of-f|{{{2|}}}}}/{{#if:{{{3|}}}|{{{3}}}|}}{{#if:{{{4|}}}|.{{{4}}}|}}{{#if:{{{5|}}}|{{#if:{{{8|}}}|{{{5}}}|-{{{5}}}}}|}}{{#if:{{{6|}}}|{{{6}}}|}}?lang=eng#{{#if:{{{7|}}}||{{#if:{{{4|}}}|{{#expr:{{{4}}}-1}}|}}}} {{{1}}} {{#if:{{{3|}}}|{{{3}}}|}}{{#if:{{{4|}}}|:{{{4}}}|}}{{#if:{{{5|}}}|{{#if:{{{8|}}}|{{{5}}}|–{{{5}}}}}|}}]</span><noinclude> |
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 09:46, 27 July 2020
Contents
Usage
This template is a legacy version of the {{LDS}} template (which now links to Wikisource) to provide for backwards-compatible links to the English version of https://www.churchofjesuschrist.org/study/scriptures/. It is a snapshot of the {{LDS}} template as it existed in late July 2020.
- 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 "|"
Basic usage
{{LDS/legacy|John|john|3|5}}
Results:
- Creates html link to https://www.churchofjesuschrist.org/study/scriptures/nt/john/3.5?lang=eng#4
- Highlights quoted verse
- Jumps to verse on page
- Displays in the article text as: John 3:5
Full usage
{{LDS/legacy|display|book abbr|chap#|verse#|end verse#|footnote|cross ref flag|end verse flag}}
Parameters:
| parameter | description | optional? |
|---|---|---|
|display=
|
name of book to display in Wikipedia | |
|book abbr=
|
abbreviation of book used by website (see below) | |
|chap#=
|
chapter of scripture being quoted | optional |
|verse#=
|
verse of scripture being quoted | optional |
|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 addedThis 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 anything | optional |
|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 added |
optional |
Examples with explanation
| Example text | Description | URL & Display text |
|---|---|---|
{{lds|John|john|3}} |
Link to Chapter only | https://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 references | https://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
| wikitext | link result |
|---|---|
|
|
Genesis 48 |
|
|
Doctrine and Covenants 130:22 |
|
|
1 Nephi 22:22–24 |
|
|
Moroni 10:3–5 |
|
|
John 3:5 |
|
|
John 3:5,14-16 |
|
|
John 3:5 |
|
|
Jeremiah 1:5 |
|
|
Jeremiah 1:5 |
Template Data
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 "|"
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| display | 1 Display Name display | name of book to display in Wikipedia | String | optional |
| book abbr | 2 book abbr | abbreviation of book used by website | String | optional |
| chap# | 3 chap# chapter | chapter of scripture being quoted | Unknown | optional |
| verse# | 4 verse# verse | verse of scripture being quoted | Number | optional |
| 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" | Unknown | optional |
| footnote | 6 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 | Unknown | optional |
| cross ref flag | 7 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) | Unknown | optional |
| end verse flag | 8 end verse flag | if this has any value, then the hyphen before `end verse#` is not automatically added | Unknown | optional |
See also
- {{Bibleverse}}
da:Skabelon:Lds pt:Predefinição:Lds
| The above documentation is transcluded from Template:LDS/legacy/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |