Template:Nb

From miki
Revision as of 16:58, 15 January 2014 by Mikiadmin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
{{{1}}}



The template Nb creates a <div class="border"> tag. Along with a style definition in MediaWiki:Common.css, it is used to remove the border around <source> tags. Example:

* An example of Bash script:
{{nb|1=<source lang=bash>echo Hello, World!</source>}}

This gives:

  • An example of Bash script:
echo Hello, World!


Alternatively, one can add parameter enclose=none to source tag:

Using nb template:
{{nb|1=<source lang=bash>echo Hello, World!</source>}}
Using enclose=none:
<source lang=bash enclose=none>echo Hello, World!</source>

gives

Using nb template:

echo Hello, World!

Using enclose=none: echo Hello, World!