User:Biggins/LDStemplate
Appearance
For testing out edits to the {{LDS/sandbox}} template and the corresponding Module:Sandbox/Biggins/LDSverseWS
Scripture citation templates
[edit]{{Bibleverse}} Template
[edit]{{LDS/sandbox}} Template
[edit]- No parameters results in a link to the LDS Standard Works on Wikisource
- If there's just one parameter, the link goes to the same place but it displays the name of the parameter: One param
- Citing a specific book:
- Citing a specific chapter/section:
- Citing to specific verses
- Eth. 12:4 says that hope is good
- Alma 12:14, 32-35
- Nephi the Second 26:33
- Abraham 3:16
- Gen. 3:6
- Matt. 5:48
- JS Matt. 1:12
- D&C 88:6
- Other/special cases:
- Off. Decl. 1
- Declaracion oficial numero 2
- AoF 1:11
- AoF 11
- The First Book of Moses 3:6 (numbering parameters when passing them)
Legacy Behavior
[edit]Clean-up
[edit]Per this comment, I should
Figure out if/how you can see everywhere that your template/module is causing errorsDONE- Success: this link does it!
- See generally this helpful discussion
- (Maybe) handle the error messages more cleanly
- Pro: it wouldn't look awful on the page
- Con: nobody would notice when the template is being used incorrectly
- Con: harder to find the errors that are happening (unless there's some other clever way to search for them without throwing up big red LUA ERROR text in the middle of the article)
Update the module so that if the second parameter is a numberDONE- In this case, try to interpret the module call as if someone just forgot to include the second parameter (aka
1ne
) and see if it works by using the display name as the second parameter
- In this case, try to interpret the module call as if someone just forgot to include the second parameter (aka