Diferenças entre edições de "FAIRWiki:Scripture template how to"

m (Help! It doesn't work for me!)
m (Help! It doesn't work for me!)
Linha 24: Linha 24:
 
Biggest potential errors:
 
Biggest potential errors:
  
* You aren't leaving a blank space by putting two || together.  This is most likely if you aren't citing "a" (for the 1st Nephi, 2nd Nephi sort of thing.  Or, it could happen if you're trying to cite a whole chapter: then the "d" element isn't cited.  (e.g. Alma 13 would be <nowiki> {{scripture||Alma|13||}} </nowiki> The first || contains the empty "a" (since there is no 1st Alma, 2nd Alma, etc.) and the second || contains the empty "d" (since no verses are being cited.)
+
* You aren't leaving a blank space by putting two || together.  This is most likely if you aren't citing "a" (for the numbered books like 1 Nephi, 2 Nephi, 2 Kings, 3 John, etc.).  Or, it could happen if you're trying to cite a whole chapter: then the "d" element isn't entered, but you still need ||.  (e.g. Alma 13 would be <nowiki> {{scripture||Alma|13||}} </nowiki> The first || contains the empty "a" (since there is no 1st Alma, 2nd Alma, etc.) and the second || contains the empty "d" (since no verses are being cited.) In short, there should '''always''' be 4&mdash;count 'em!&mdash; vertical bars (|) within the template.  Whether there's anything between the bars depends on what you're citing.
 
* You are using "D&C" for the Doctrine and Covenants, instead of DC
 
* You are using "D&C" for the Doctrine and Covenants, instead of DC
  

Revisão das 17h35min de 11 de setembro de 2006

The actual template is at Template:scripture. Click there to edit, but please don't unless you know what you're doing!

How to use the template:

Syntax is as follows: {{scripture|a|b|c|d}} [Can also use {{s|a|b|c|d}} if you don't want to type "scripture" every time.]

  • a = Book number, like 1 Nephi or 3 John. If there is no book number, you must leave this space blank like this: {{scripture||b|c|d}} (note the two || lines besides each other, meaning that "a" section is blank.
  • b = Book of Scripture: Nephi, Jonah, etc. For D&C references, just put DC, or it messes up the parser (this can be changed with some coding in an ungrade, but the necessary command doesn't work on FAIR Wiki yet.)
  • c = chapter
  • d = verses. Dashes, commas, or both are permitted; eg: 4-7,9 (verses 4 through 7, and verse 9).

Some Examples

  1. To code D&C 121:5-7, you would put: {{scripture||DC|121|5-7}}
  2. To code 1 Nephi 3:7, you would put: {{scirpture|1|Nephi|3|7}}

Help! It doesn't work for me!

If you're having problems, try changing the template name to "scripturetest."

Template:scripturetest

This is a troubleshooting template, that shows you what you're entering, and how the computer is interpreting it. When you get it fixed, just change the name back to "scripture" instead of "scripturetest", and you're good to go!

Biggest potential errors:

  • You aren't leaving a blank space by putting two || together. This is most likely if you aren't citing "a" (for the numbered books like 1 Nephi, 2 Nephi, 2 Kings, 3 John, etc.). Or, it could happen if you're trying to cite a whole chapter: then the "d" element isn't entered, but you still need ||. (e.g. Alma 13 would be {{scripture||Alma|13||}} The first || contains the empty "a" (since there is no 1st Alma, 2nd Alma, etc.) and the second || contains the empty "d" (since no verses are being cited.) In short, there should always be 4—count 'em!— vertical bars (|) within the template. Whether there's anything between the bars depends on what you're citing.
  • You are using "D&C" for the Doctrine and Covenants, instead of DC

Heeelp! It still doesn't work!

Please report any bugs or citations that don't work to Greg Smith.