3,860
edits
(Created page with "{{Documentation subpage}} __NOTOC__ ==Usage== {{tlf|'''nb'''}} inserts up to 10 consecutive non-breaking spaces at the position where the template is placed. The default, and...") |
(Corr. Added "Examples" section.) |
||
| Line 26: | Line 26: | ||
;<big>Usage</big> | ;<big>Usage</big> | ||
* {{tlc|nb|<big>'''1'''</big>}} | * {{tlc|nb|<big>'''1'''</big>}} | ||
==Examples== | |||
===Overriding wiki preformatting=== | |||
Any string or group of strings indented by a single space character will be pre-formatted and displayed in a box. | |||
;Example | |||
If you enter the code: | |||
<code><span style="color: #ffffff; background-color: #0095dd;"> </span>This text is pre-formatted.</code> | |||
the output will be: | |||
This text is pre-formatted. | |||
By using this template, you can override this function. | |||
;Example | |||
If you write: | |||
{{code|<nowiki>{{nb}}</nowiki>This text is pre-formatted.}} | |||
the output will be (notice the single space character indent): | |||
{{nb}}This text is pre-formatted. | |||
===Correct use=== | ===Correct use=== | ||
edits