Template:Smallcaps/doc
This is a documentation subpage for Template:Smallcaps. It contains usage information, categories and other content that is not part of the original template page. |
The {{Smallcaps}} template allows you to display text in small caps (e.g. Lord, as it is written in some Bibles.)
Note
As with most templates, if the argument contains an =, the argument should be prefixed with 1=.
There is a parsing problem with MediaWiki which causes unexpected behavior when a template with one style is used within a template with another style.
Code | Gives |
---|---|
{{smallcaps|Hello world}} | Hello world |
{{smallcaps|2+2=4}} | {{{1}}} |
{{smallcaps|1=2+2=4}} | 2+2=4 |
{{smallcaps|{{red|Hello}} world}} | Hello world |
{{smallcaps|1={{red|Hello}} world}} | Hello world |
{{smallcaps|before|after}} | before |
{{smallcaps|1=before{{!}}after}} | after |
{{smallcaps|1=before&124;after}} | before|after |