Template:Smallcaps/doc

From Wikipedia, the free encyclopedia

This is the template documentation page for Template:Smallcaps.

This page is not necessarily intended to be viewed directly. If it uses variables, some links may appear broken. Do not replace these variables with hardcoded page names or URLs.

The {{Smallcaps}} template allows you to display text in small caps (e.g. Lord, as it is written in some Bibles.)

[edit] 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}} {{{1}}}
{{smallcaps|1={{red|Hello}} world}} Hello world
{{smallcaps|before|after}} before
{{smallcaps|1=before{{!}}after}} after
{{smallcaps|1=before&124;after}} before|after