Template talk:Rbstagedir

From Wikisource
Jump to navigation Jump to search

Right float[edit]

Had this on my watchlist in case it was changed to right aligned, and a week or so later, here it is! I'd been working on Romeo and Juliet (The Illustrated Shakespeare, 1847) and was using another method than simple {{right}}. To wit, " {{float right|[''They fight.''}}{{-}}". [They fight.

Caveats: Don't forget that preceeding space, unless editors are asked to insert it themselves. With any right alignment, these still risk excessive separation from the script itself. Further refinement of clear method may be needed, but {{-}} seems to work. There may be remaining spacing issues when using <br /> to space script lines which I hadn't cleared up. [djr13 (talk) 14:59, 29 December 2013 (UTC)[reply]

So do you think {{float right}} works better than {{right}}? Please fix it if you think so. :) —Clockery Fairfeld (talk) 15:07, 29 December 2013 (UTC)[reply]
Wasn't sure if you were going for something else entirely djr13 (talk) 15:20, 29 December 2013 (UTC)[reply]
Nope, same as you. Do you know of any way to completely remove that blank line? —Clockery Fairfeld (talk) 15:25, 29 December 2013 (UTC)[reply]
Not sure what might you mean by blank line, except for the following issue:
''Rom.'' If I profane with my unworthiest hand {{rbstagedir|To ''{{sc|Juliet}}.}}
<br/>{{gap}}This holy shrine, the gentle fine is this,—
<br/>My lips, two blushing pilgrims, ready stand
<br/>{{gap}}To smooth that rough touch with a tender kiss.
Rom. If I profane with my unworthiest hand [To Juliet.


This holy shrine, the gentle fine is this,—
My lips, two blushing pilgrims, ready stand
To smooth that rough touch with a tender kiss.

Which as far as I know can be fixed only by getting rid of the <br/> following a use of the template:
''Rom.'' If I profane with my unworthiest hand {{rbstagedir|To ''{{sc|Juliet}}.}}
{{gap}}This holy shrine, the gentle fine is this,—
<br/>My lips, two blushing pilgrims, ready stand
<br/>{{gap}}To smooth that rough touch with a tender kiss.
Rom. If I profane with my unworthiest hand [To Juliet.

This holy shrine, the gentle fine is this,—
My lips, two blushing pilgrims, ready stand
To smooth that rough touch with a tender kiss.

djr13 (talk) 15:53, 29 December 2013 (UTC)[reply]
Thank you, that was exactly what I meant. :) —Clockery Fairfeld (talk) 15:58, 29 December 2013 (UTC)[reply]
Or in the case of poem tags:
<poem>
''Rom.'' If I profane with my unworthiest hand {{rbstagedir|To ''{{sc|Juliet}}.}}{{gap|1em}}This holy shrine, the gentle fine is this,—
My lips, two blushing pilgrims, ready stand
:To smooth that rough touch with a tender kiss.
</poem>
Rom. If I profane with my unworthiest hand [To Juliet.
This holy shrine, the gentle fine is this,—

My lips, two blushing pilgrims, ready stand
To smooth that rough touch with a tender kiss.

It's pretty crude though. djr13 (talk) 16:17, 29 December 2013 (UTC)[reply]
Never mind. Thank you! —Clockery Fairfeld (talk) 16:24, 29 December 2013 (UTC)[reply]

Unwanted line break fix?[edit]

As described above, the template as-is causes an unwanted line break. I think this is because {{-}} currently is implemented as <br style="clear:both;" />. Not sure what should be done except hard coding a div or span, rather than a br, with that style at the end of the template or something... (woe is me, I'll have to undo all my cludges!) djr13 (talk) 16:55, 29 December 2013 (UTC)[reply]

Maybe use {{clear}} instead? djr13 (talk) 17:01, 29 December 2013 (UTC)[reply]
It's possible add an equivalent parameter {{float right|style=clear:both;}}, however, this doesn't create the intended behavior to prevent the item from floating over the wrong line when pushed down, and instead clears a blank line for itself but only when it needs it. I'm out of ideas; that "new line only when it needs it" part may be unobtainable? djr13 (talk) 19:16, 29 December 2013 (UTC)[reply]