Doctor Perils Posted November 13, 2020 Share Posted November 13, 2020 Hi, down in the liver we're wondering how to insert hard returns to use the "captions" BBCode in articles? The BBCode Guide provides no explanation, double line jumps insert white space, and the html <br/> tag doesn't work http://www.bolterandchainsword.com/topic/301536-the-liber-surgery/?p=5480373 Anyone have an idea of how to do this? Thanks Link to comment https://bolterandchainsword.com/topic/367624-how-to-make-hard-returns-for-captions/ Share on other sites More sharing options...
Brother Tyler Posted November 13, 2020 Share Posted November 13, 2020 The element for which the caption is provided goesin the "content" area. Note how the width of thecontent drives the width of the caption. So youmust use hard returns in order to control captionwidth. I've entered hard returns every 50 spaces. The "option" portion is where the actual caption goes. The element for which the caption is provided goesin the "content" area. Note how the width of thecontent drives the width of the caption. So youmust use hard returns in order to control captionwidth. I've entered hard returns every 50 spaces. The "option" portion is where the actual caption goes. All I did was insert a hard return at specific intervals, 50 characters in the examples shown in the BBCode Guide. When I utilize captions and sidebars in articles, I often have to play around a bit and use the preview post function extensively before I finally submit the post. The text in the sidebars, if presented outside of the sidebars and including the hard returns would look like:The element for which the caption is provided goesin the "content" area. Note how the width of thecontent drives the width of the caption. So youmust use hard returns in order to control captionwidth. I've entered hard returns every 50 spaces.All of the above is entered as:[captionleft=The "option" portion is where the actual caption goes.]The element for which the caption is provided goes in the "content" area. Note how the width of the content drives the width of the caption. So you must use hard returns in order to control caption width. I've entered hard returns every 50 spaces.[/captionleft][captionright=The "option" portion is where the actual caption goes.]The element for which the caption is provided goes in the "content" area. Note how the width of the content drives the width of the caption. So you must use hard returns in order to control caption width. I've entered hard returns every 50 spaces.[/captionright]All I did was insert a hard return at specific intervals, 50 characters in the examples shown in the BBCode Guide. When I utilize captions and sidebars in articles, I often have to play around a bit and use the preview post function extensively before I finally submit the post. The text in the sidebars, if presented [i]outside[/i] of the sidebars and including the hard returns would look like: The element for which the caption is provided goes in the "content" area. Note how the width of the content drives the width of the caption. So you must use hard returns in order to control caption width. I've entered hard returns every 50 spaces. BLACK BLŒ FLY 1 Back to top Link to comment https://bolterandchainsword.com/topic/367624-how-to-make-hard-returns-for-captions/#findComment-5630844 Share on other sites More sharing options...
WarriorFish Posted November 13, 2020 Share Posted November 13, 2020 I think it's about a line break in the red caption box, it's not currently supported in the element. The various BBCode blocks are somewhat old now and will get revamped at some point, where we can look at making them do a bit more etc. Link to comment https://bolterandchainsword.com/topic/367624-how-to-make-hard-returns-for-captions/#findComment-5630856 Share on other sites More sharing options...
Brother Tyler Posted November 13, 2020 Share Posted November 13, 2020 Ah, in the caption itself. I searched through the Tabula Astartes to see if there was an example. Luckily, there was one in the A's, Ioldanach's Avenging Lions. That may have broken since 2011, though, and I don't want to break it in the topic if it's still working, so let's experiment. [captionleft=I'll hit a hard return after this. 12345678901234567890123456789012345678901234567890 Let's see if this worked.]12345678901234567890123456789012345678901234567890 12345678901234567890123456789012345678901234567890 The lines above show the limit of 50 characters. A similar line in the caption (red box) shows what it looks like there. I [i]didn't[/i] exceed the 50-character limit in the red box. Note that I'm composing this using the text editor instead of the WYSIWYG editor in order to ensure that I keep to the limit of 50 characters (the text editor uses a monospace font whereas the WYSIWYG editor uses proportional fonts). [/captionleft] 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 The lines above show the limit of 50 characters. A similar line in the caption (red box) shows what it looks like there. I didn't exceed the 50-character limit in the red box. Note that I'm composing this using the text editor instead of the WYSIWYG editor in order to ensure that I keep to the limit of 50 characters (the text editor uses a monospace font whereas the WYSIWYG editor uses proportional fonts). I'll hit a hard return after this. 12345678901234567890123456789012345678901234567890 Let's see if this worked. After posting the above, I've used the Preview Post function to see how it looks before actually submitting the post. And it failed. The software automatically removed the hard returns after I hit "submit" (and I had to go back and edit them in after using the preview). So it appears that it worked at one time and is now broken. That's probably why I used graphics instead of BBCode when I wanted multi-line captions here. Volt 1 Back to top Link to comment https://bolterandchainsword.com/topic/367624-how-to-make-hard-returns-for-captions/#findComment-5630866 Share on other sites More sharing options...
WarriorFish Posted November 13, 2020 Share Posted November 13, 2020 My guess is a version of the caption block which no longer exists since it seems to vanish when looking at the post's content. We'd need to check on what's feasible with the current one, I'm not sure how it has been set up without checking. Link to comment https://bolterandchainsword.com/topic/367624-how-to-make-hard-returns-for-captions/#findComment-5630872 Share on other sites More sharing options...
Brother Tyler Posted November 13, 2020 Share Posted November 13, 2020 I'm pretty sure that the problem also exists for the "newcaptionleft" BBCode (unfortunately, there's no "newcaptionright"), but let's check to be sure. [newcaptionleft=The "option" portion is where the actual caption goes. And here's a hard return to test it out.]The element for which the caption is provided goes in the "content" area. Note how the width of the content drives the width of the caption. So you must use hard returns in order to control caption width. I've entered hard returns every 50 spaces.[/newcaptionleft]Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean eu rhoncus risus. Sed tincidunt egestas porta. Fusce iaculis justo non lacus mattis scelerisque. Pellentesque lobortis sit amet nunc ornare euismod. Suspendisse ultricies sem justo, ac fermentum nisl tincidunt sed. Sed lobortis suscipit libero, vel ultricies risus pharetra nec. Donec arcu libero, aliquet vel tortor vitae, hendrerit pulvinar justo. Vestibulum ullamcorper, dolor at dictum tempus, dolor lorem varius nisi, at facilisis enim purus eu orci. Vestibulum quam enim, consectetur luctus sapien sit amet, ultrices vehicula odio. Aenean varius mauris ligula, at tempus dui interdum lobortis. The element for which the caption is provided goesin the "content" area. Note how the width of the content drives the width of the caption. So you must use hard returns in order to control caption width. I've entered hard returns every 50 spaces. The "option" portion is where the actual caption goes. And here's a hard return to test it out. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean eu rhoncus risus. Sed tincidunt egestas porta. Fusce iaculis justo non lacus mattis scelerisque. Pellentesque lobortis sit amet nunc ornare euismod. Suspendisse ultricies sem justo, ac fermentum nisl tincidunt sed. Sed lobortis suscipit libero, vel ultricies risus pharetra nec. Donec arcu libero, aliquet vel tortor vitae, hendrerit pulvinar justo. Vestibulum ullamcorper, dolor at dictum tempus, dolor lorem varius nisi, at facilisis enim purus eu orci. Vestibulum quam enim, consectetur luctus sapien sit amet, ultrices vehicula odio. Aenean varius mauris ligula, at tempus dui interdum lobortis. And that didn't work either. Oddly, the first time I hit Preview Post and then went back to the editor, the software inserted the data that appears in my profile (at left) into the post before the code tags. I edited them out for the final submission, but it adds more clues to the mystery of who killed Cock Robin. I did a cursory check of the BBCode in the system, but didn't see anything that stood out on a quick glance. So we'll have to dig deeper. The problem might not be in the BBCode editor, though, instead residing in the post editor and other technical stuff that is way beyond my ken (that's why we have smart admins like WarriorFish and Excessus). Link to comment https://bolterandchainsword.com/topic/367624-how-to-make-hard-returns-for-captions/#findComment-5630880 Share on other sites More sharing options...
WarriorFish Posted November 13, 2020 Share Posted November 13, 2020 There might be a work around but it depends on how the system processes it as to whether it'd work. I will have a play and see what I can do. Link to comment https://bolterandchainsword.com/topic/367624-how-to-make-hard-returns-for-captions/#findComment-5630891 Share on other sites More sharing options...
Doctor Perils Posted November 14, 2020 Author Share Posted November 14, 2020 Thanks for the work to see if it could work - I'll relay this thread down in the Liber Surgery. Link to comment https://bolterandchainsword.com/topic/367624-how-to-make-hard-returns-for-captions/#findComment-5631340 Share on other sites More sharing options...
WarriorFish Posted November 15, 2020 Share Posted November 15, 2020 Unfortunately the software doesn't provide a solution, so it will need a code one. I'm not sure when I'll be able to look into this, as it'll take a bit of time to review the established stuff first. Link to comment https://bolterandchainsword.com/topic/367624-how-to-make-hard-returns-for-captions/#findComment-5631458 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now