Template:Uppercase/sandbox
| This is the template sandbox page for Template:Uppercase (diff). See also the companion subpage for test cases. |
This template uses a See H:DIVSPAN for details. |
| This template uses TemplateStyles: |
Usage
[edit]This template styles text in uppercase.
- Use {{Uppercase|text}} for a single word or phrase.
- Use {{Uppercase block|block}} where an entire paragraph, section or block of text is to be uppercased.
- Unlike {{Uppercase}}, {{Uppercase block}} uses a block element, e.g.
<div>. It should not be nested inside an inline element, e.g.<span>, or a template that produces such an element.
- Unlike {{Uppercase}}, {{Uppercase block}} uses a block element, e.g.
- The split templates {{Uppercase block/s}} and {{Uppercase block/e}} are available for spanning page breaks.
Note on proper usage
[edit]Do not use {{Uppercase|example}} where the uppercase content "EXAMPLE" is required. Use it only where the required content is "example", but the required style in which it is to be rendered is uppercase. In particular, words that should normally be capitalized (e.g., proper nouns, etc.) should still be capitalized, even if they are inside this template.
Because {{Uppercase|example}} affects only the style and not the underlying content, it will be rendered as "EXAMPLE" by renderers that support styles, but it may be treated as "example" in other situations, such as case-sensitive text searches, copy-pasting of raw text, reading by screen-readers, etc.
An example of correct usage is in books where the first word of a chapter is capitalised for purely stylistic reasons; for example, Page:Watch and Ward (Boston, Houghton, Osgood and Company, 1878).djvu/8.
| Code | Displays | Copy/pastes as |
|---|---|---|
{{Uppercase|Albert Einstein}} |
Albert Einstein | Albert Einstein |
{{Uppercase|albert einstein}} |
albert einstein | albert einstein |
Example
[edit]{{Uppercase|uppercase}}d
uppercased
TemplateData
[edit]Uppercase
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| 1 | 1 | Text to be rendered as upper case. | Content | required |
See also
[edit]- {{Uppercase block}} for a block of uppercase text
- {{Lowercase}} for lowercasing
- {{Capitalize}} for capitalizing
- {{Text-transform none}}