Template:BSLcode

BSLcode is intended to make it a little easier to place a BSL command in a paragraph of regular text. This template does three things for you:

  • Applies the <code> tag to create monospaced text with a gray background.
  • Uses Template:Nbsp to make sure that spaces within the BSL command are not used as opportunities for linebreaks by the browser, which makes reading and copy/pasting the command more difficult.
  • Uses Template:Nbhy to make sure that any dashes you type in the BSL command are not used as a place for a linebreak by the browser.

From a readability standpoint, it's better to have a linebreak partway through a line which preserves the entire BSL command in one piece on the following line. Here's some sample text with a BSL command in two different-sized boxes to show where it would normally receive a linebreak from the web browser:

To search for the dialogue sound with ID 03_12_01, run the OniSplit command -export:03_12_01 dest_dir level3_Final.dat.
To search for the dialogue sound with ID 03_12_01, run the OniSplit command -export:03_12_01 dest_dir level3_Final.dat.

Here's the same text using a call to this template to wrap the BSL code:

To search for the dialogue sound with ID 03_12_01, run the OniSplit command ‑export:03_12_01 dest_dir level3_Final.dat.
To search for the dialogue sound with ID 03_12_01, run the OniSplit command ‑export:03_12_01 dest_dir level3_Final.dat.