Help talk:Bible reference

From CreationWiki, the encyclopedia of creation science
Jump to navigationJump to search

Excellent corrections and additions! I'd like to know how Philip fixed the greybox problem. --John Baab 03:52, 22 December 2011 (PST)

You can see the actual change I made here.
The issue was actually a combination of two factors. But before I explain them, the second "box" that was generated by text after the template reference is the sort of box one gets whenever one starts a line with a space.
Like this.
Further, one only got this box if one left a space between the template reference and following text, like this: {{greybox|quote}} Further text. If, instead, the following text started immediately after the template reference (i.e. no space, like this: {{greybox|quote}}Further text), then the second box didn't appear.
So to the solution. The template had a line break as part of the template, between the </includeonly> and <noinclude> tags. Therefore, any space after the template reference was interpreted as a space following the line break, i.e. at the start of the next line. By removing the line break from the template, any space after the template reference is taken to be a space within that line, not at the start of a line.
Just to confuse things further, though, the template produces HTML code (<blockquote> tags) that cause a line break at the end (and the start), so any following text will be on a new line, but this will be the result of the HTML, not a result of the Wiki parser.
Incidentally, making this change to the template potentially caused problems with any pages on which it was used. Fortunately, there are not that many of them, and only one had to be fixed as a result.
I hope that was clear!
Philip J. Rayment 04:19, 22 December 2011 (PST)

That is interesting! Good work in carefully finding the interactions of the tags and the text. I think enough time has gone by so that I will put the Bible reference help page on the help index.--John Baab 07:31, 26 December 2011 (PST)