Template talk:Bibleverse

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Bibleverse template broken[edit]

I'm finding a lot of broken links that use the Bibleverse template. (example: Jesus_and_the_rich_young_man) leads to http://bibref.hebtools.com/?book=%20Mark&verse=10:17%E2%80%9331&src=NIV and it is an expired domain. Is it right and proper to replace with niv template? Is there an automated tool for this situation? — Preceding unsigned comment added by Mcgyver5 (talkcontribs)

The site is down. The site was working a week ago, at least. Maybe we can wait a while? The source code is available at [1] we can ask one of the people with WP:Labs if they would host it. We would have to get our hands on biblebooks.txt [2] and biblesrcs.txt [3]. Obviously you can replace the template with a working one; the only automated tool that might work for this situation, that I can think of is wp:awb.--Atethnekos (DiscussionContributions) 20:50, 20 November 2013 (UTC)
My questions are: Who created this tool? Who has been responsible for hosting it? To whom can we turn to fix this mess? I'm not savvy with the behind-the-scene workings of Wikipedia. Help desk? Forum? Notice board? Which one. I'm sure if we turn to an admin, this can be fixed 1,2,3. But which admin? If anyone knows, please forward this information immediately. Kind regards, --@Efrat (talk) 01:40, 23 November 2013 (UTC) --@Efrat (talk) 01:40, 23 November 2013 (UTC)
The name and contact info is available along with the the source code at [4]. I'd rather not repeat his name and email here, for privacy reasons. It was not hosted by Wikimedia. As I said, maybe the guys at WP:Labs can host the tool; they'd need the biblesrcs.txt biblebooks.txt if anyone has them. --Atethnekos (DiscussionContributions) 01:50, 23 November 2013 (UTC)
I see that the files are here as well with the text files: [5], although there are some slight differences I notice (not sure if any are significant). --Atethnekos (DiscussionContributions) 02:52, 23 November 2013 (UTC)

Update[edit]

As you may be able to see, the site hosting the tool for this template has been down for a while now.

I've transferred the code to Wikimedia Tool Labs at [6]. It works in the sandbox version I've just developed: [7]. So the edit request is that we replace the current wikitext with that. A similar change will have to be done for all the other related templates. Would it possible I could get template editor permission and I could do it myself? --Atethnekos (DiscussionContributions) 06:07, 23 November 2013 (UTC)

I can't get the tool to go directly to a particular version, only the list of versions page. There is also a mispelled error message when I entered a non-existant book name. The templates Template:Bibleverse-nb, Template:Bibleverse-lb, and Template:Bibleref also need to be updated when the tool is fixed.
Cheers. —Telpardec (talk) 06:50, 23 November 2013 (UTC)
@Telpardec: I'm sorry, where did you try to use it? So when you click here on this link what do you get John 1:1 ?--Atethnekos (DiscussionContributions) 06:59, 23 November 2013 (UTC)
That spelling mistake is fixed now; REFERNCE -> REFERENCE. --Atethnekos (DiscussionContributions) 07:07, 23 November 2013 (UTC)
@Atethnekos: OK. My bad, I was direct typing in the address bar "version=" instead of "src=" for version. Everything is working fine now, so I have re-activated the edit protected template. I'll leave the rest to you.
Cheers. —Telpardec (talk) 07:29, 23 November 2013 (UTC)
That's great. Thanks for looking at it. --Atethnekos (DiscussionContributions) 07:31, 23 November 2013 (UTC)
Wait. What's working now?
John 1:1 Joel 4:2 1 Maccabees 2:1-5 { { Bibleverse|BOOK#|BOOKNAME|c:v–c:v|SOURCE } } is not working.
John 1:1 Joel 4:2 1 Maccabees 2:1-5 { { Bibleverse/sandbox|BOOK#|BOOKNAME|c:v–c:v|SOURCE } } is working.
Please pardon my naivete. (Actually, please pardon my ignorance - I do not understand all the technical stuff.) Are you still in the middle of fixing the problem? Do I go around adding /sandbox to all the Bibleverse links in Wikipedia articles or do I wait patiently? Kind regards, --@Efrat (talk) 05:58, 24 November 2013 (UTC)
Yes, the sandbox version I made is working. I don't have permission to update the template itself—that's what the protected edit request is for. I guess just wait for an admin or templateeditor to update it. --Atethnekos (DiscussionContributions) 06:10, 24 November 2013 (UTC)

Wow, that was fast!

Thanks to Atethnekos for transferring the code to Wikimedia Tool Labs.
Thanks to Little Mountain 5 for editting the templates so quickly. --@Efrat (talk) 07:49, 24 November 2013 (UTC)

One more detail. (Pardon me for being a bit hysterical). In the section "List of sources", the defunct "link to the list of sources and codes" still appears. --@Efrat (talk) 08:01, 24 November 2013 (UTC)

Got it, thanks. --Atethnekos (DiscussionContributions) 08:52, 24 November 2013 (UTC)
Thank you. --@Efrat (talk) 11:49, 24 November 2013 (UTC)

Template protected edit request[edit]

Request just to shorten the URL for simplicity's sake:

So use the source code in the sandbox: https://en.wikipedia.org/w/index.php?title=Template:Bibleverse/sandbox&action=edit

It's just removing the "bibleversefinder.php" from the URL

Same change would have to be done for template:bibleverse-nb (I didn't make a sandbox version for that). --Atethnekos (DiscussionContributions) 03:20, 9 January 2014 (UTC)

Done, along with Bibleverse-nb. LittleMountain5 03:42, 9 January 2014 (UTC)

Sandbox version removes empty parameter[edit]

I created a sandbox version of the template here that can handle spaces in the book name, so the strange (usually empty) "Book#" parameter isn't necessary anymore. For example,

  • {{bibleverse|John|3:16}} works instead of
  • {{bibleverse||John|3:16}}, and
  • {{bibleverse|1 John|3:16}} works instead of
  • {{bibleverse|1|John|3:16}}

Take a look at the test cases. It's backwards compatible, so it won't break anything. If no one objects, I'll implement it in a day or two. Cheers, LittleMountain5 05:06, 9 January 2014 (UTC)

Wait! Will the change work for books that never fill the |BOOK#| parameter. Compare:
{{Bibleverse||Genesis|1:1-10|NIV}} (with empty |BOOK#| parameter) Genesis 1:1-10 WORKS
{{Bibleverse|Genesis|1:1-10|NIV}} (without empty |BOOK#| parameter) Genesis 1:1-10 DOES NOT WORK
After the change, will both work? Kind regards, --@Efrat (talk) 06:04, 9 January 2014 (UTC)
Yes, both will work:
LittleMountain5 07:25, 9 January 2014 (UTC)
Nice! --@Efrat (talk) 07:30, 9 January 2014 (UTC)

Since there are no objections, Artículo bueno.svg Implemented. The "Book#" parameter is no longer required. LittleMountain5 21:55, 11 January 2014 (UTC)

Nice job! --Atethnekos (DiscussionContributions) 22:05, 11 January 2014 (UTC)
Thanks! I updated bibleverse-nb and redirected bibleref as well. LittleMountain5 23:26, 11 January 2014 (UTC)

dashes and hyphens[edit]

Re this edit to the MOS: does this template fail if dashes are used instead of hyphens? Can it be updated to handle dashes correctly? Thanks, -- JHunterJ (talk) 14:10, 22 April 2014 (UTC)

The template needs to be changed so that the output contains endashes rather than hyphens. It looks as though as the simple addition of {{Replace|OUTPUT|-|–}} would fix the problem. Peter coxhead (talk) 11:55, 23 April 2014 (UTC)
@Peter coxhead: First, the problem was with dashes not working. I tried your idea in the sandbox, changing dashes to hyphens, which worked, but it displayed as hyphens also. MOS-finicky editors like to see dashes in numerical ranges. See next message for an alternate solution. I'll keep that {{replace}} idea in mind for future possibilities.
Thanks. —Telpardec  TALK  07:25, 10 June 2014 (UTC)

────────────────────────────────────────────────────────────────────────────────────────────────────@Little Mountain 5: I found a solution to the dashes-don't-work problem. I made a sandbox template version (612320962) with urlencode added to each verse= parameter. I also added some samples with verse ranges to the testcases page and they all work with encoded dashes instead of hyphens. I did not add PATH at the end of mine like the first urlencode in the template, (I don't know what that does.) If this solution did not mess anything else up, it can be transferred from sandbox to template.
Cheers. —Telpardec  TALK  07:25, 10 June 2014 (UTC)

@Anyone? I don't have edit access to update the template with the corrected version in the sandbox. see above.
Thanks. —Telpardec  TALK  08:56, 13 June 2014 (UTC)
Red information icon with gradient background.svg Not done: please make your requested changes to the template's sandbox first; see WP:TESTCASES. I've added some testcases and it doesn't work properly for all hyphens and dashes... Links fail. Please try to work up a fix in the sandbox and I'll apply. (Note that the live version also fails for those hyphens and dashes, but if the revision isn't going to fix the problem it is intended to fix, then it is not worth doing. ;)) — {{U|Technical 13}} (etc) 11:48, 13 June 2014 (UTC)
There has been a misunderstanding. We were not having a problem with people trying to make the template work with an m-dash or non-breaking hyphen. It works with the ordinary keyboard hyphen just fine. According to MOS:ENDASH, we are supposed to use the endash between numbers in numerical ranges, rather than the hyphen, so some people were changing the working hyphens in the template to endashes, and that was causing the template to fail in some cases. To make matters worse, the fixed-width font in the edit window makes the hyphen and endash look the same width, 6 pixels each. I spent days trying to figure out why certain template examples were not working before discovering that what looked like a hyphen was actually an endash. Before now, there was no fix for the problem except to require people to use only hyphens in this template. So much for the history. —Telpardec  TALK 

The solution to the above problem was to add urlencode to each verse= parameter. See new Bibleverse/testcases page for this template, and Bibleverse-nb/testcases for the {{Bibleverse-nb}} template. Please transfer sandbox template version (612320962) to the {{Bibleverse}} template instead of the current version, and transfer sandbox template version (613558148) to the {{Bibleverse-nb}} template instead of its current version. The "doc" pages are not protected, so I can update them as necessary.
Cheers. —Telpardec  TALK  16:08, 19 June 2014 (UTC)

Red information icon with gradient background.svg Not done for now: As I said in the edit summary for reverting your change to the testcases page. You have no idea what people are going to try and enter for a dash or a hyphen, just because you use the right one, doesn't mean that Example is going to. Example might have a non-standard keyboard or a macro where the "normal" - is an — (—) for example. This might be set up via a keyboard macro because they do a lot of editing fixing specific date styles or something and they don't even think about it. In those cases, the links wouldn't work as intended, and the template should account for that. I'm currently working on another project, but if you can't figure this out in the next few days, I'll see what I can hack up in the sandbox to make this work as you are hoping it will. Thanks! — {{U|Technical 13}} (etc) 16:28, 19 June 2014 (UTC)
Show me a DIFF where someone mistakenly entered an emdash. We don't need to fix phantom problems.
Cheers. —Telpardec  TALK  00:46, 20 June 2014 (UTC)

New Jerusalem Bible[edit]

New Jerusalem Bible is here [8]. Info here. Please include it. trespassers william (talk) 14:30, 12 August 2014 (UTC)