Difference between revisions of "Template:Case templates table"

From blackwiki
Jump to navigation Jump to search
imported>SMcCandlish
(Self-rv; the other table column claims this isn't consistent; but we still need proof of that.)
imported>Great Brightstar
(Updating for Template:Allcaps and Template:Nocaps, as they don't use magic words.)
Line 36: Line 36:
 
| {{tl|Allcaps}}
 
| {{tl|Allcaps}}
 
| {{tl|caps}}
 
| {{tl|caps}}
| Uppercase conversion, all-caps display.<br />The size of uppercase letters.<br />Uses: ???.<br /><span style="color: Red;">{{error|Warning}}: Will permanently change {{xtn|lower-}} or {{xtn|Mixed-Case}} data,<br />does not work consistently across different browsers,<br />and is not compatible with named HTML character entities.</span>
+
| Uppercase conversion, all-caps display.<br />The size of uppercase letters.<br />Uses: ???.
 
| <code><nowiki>{{caps|UNICEF}} and 312&amp;nbsp;{{caps|BCE}}</nowiki></code><br />
 
| <code><nowiki>{{caps|UNICEF}} and 312&amp;nbsp;{{caps|BCE}}</nowiki></code><br />
 
{{tlc|caps|Mixed Case}}
 
{{tlc|caps|Mixed Case}}
 
| {{caps|UNICEF}} and 312&nbsp;{{caps|BCE}}<br />{{caps|Mixed Case}}  
 
| {{caps|UNICEF}} and 312&nbsp;{{caps|BCE}}<br />{{caps|Mixed Case}}  
| <span style="color: Red;">UNICEF and 312 BCE<br />MIXED CASE</span><br />(in many browsers)
+
| <span style="color: ForestGreen;">UNICEF and 312 BCE<br />Mixed Case</span><br />(in many browsers)
 
|-
 
|-
 
| {{tl|Nocaps}}
 
| {{tl|Nocaps}}
 
| &nbsp;
 
| &nbsp;
| Lowercase conversion, all-lowercase display.<br />The size of lowercase letters.<br />Uses: ???.<br /><span style="color: Red;">{{error|Warning}}: Will permanently change {{xtn|UPPER-}} or {{xtn|Mixed-Case}} data,<br />and does not work consistently across different browsers.</span>
+
| Lowercase conversion, all-lowercase display.<br />The size of lowercase letters.<br />Uses: ???.
 
| <code><nowiki>{{nocaps|UNICEF}} and 312&amp;nbsp;{{nocaps|BCE}}</nowiki></code><br />
 
| <code><nowiki>{{nocaps|UNICEF}} and 312&amp;nbsp;{{nocaps|BCE}}</nowiki></code><br />
 
{{tlc|nocaps|Mixed Case}}
 
{{tlc|nocaps|Mixed Case}}
 
| {{nocaps|UNICEF}} and 312&nbsp;{{nocaps|BCE}}<br />{{nocaps|Mixed Case}}  
 
| {{nocaps|UNICEF}} and 312&nbsp;{{nocaps|BCE}}<br />{{nocaps|Mixed Case}}  
| <span style="color: Red;">unicef and 312 bce<br />mixed case</span><br />(in many browsers)
+
| <span style="color: ForestGreen;">unicef and 312 bce<br />mixed case</span><br />(in many browsers)
 
|}<noinclude>
 
|}<noinclude>
 
{{Documentation|content=
 
{{Documentation|content=
 
This table is transcluded into the documentation of the various templates it illustrates.
 
This table is transcluded into the documentation of the various templates it illustrates.
 
}}</noinclude>
 
}}</noinclude>

Revision as of 14:01, 2 October 2019

Template Shortcut Purpose Example Output Copy-pastes as
{{Smallcaps}} {{sc1}}
{{SC}}
No conversion, small-caps display, mixed case.
No font size change (acronyms are unaffected).
Common mixed-case heading style (not in Wikipedia).
Uses: Rendering publication titles in citation styles that require them in small-caps.
{{sc1|UNICEF}} and 312&nbsp;{{sc1|BCE}}

{{sc1|Mixed Case}}

Template:Sc1 and 312 Template:Sc1

Template:Sc1

UNICEF and 312 BCE
Mixed Case
{{Smallcaps2}} {{sc2}} No conversion, small-caps display, mixed case.
Slightly reduced font size.
This is the conventional display of smallcaps for acronyms/initialisms in modern book typography.
Other uses: Unicode character names (use {{Unichar}}).
{{sc2|UNICEF}} and 312&nbsp;{{sc2|BCE}}

{{sc2|Mixed Case}}

Template:Sc2 and 312 Template:Sc2

Template:Sc2

UNICEF and 312 BCE
Mixed Case
{{Smallcaps all}} {{sc}} Lowercase conversion, small-caps display, all uppercase.
The size of lowercase letters.
Uses: Stressed syllables (in {{Respell}}); and ???.
Warning: Default use will permanently change UPPER- or Mixed-Case data,
does not work consistently across different browsers,
and is not compatible with named HTML character entities.
{{sc|UNICEF}} and 312&nbsp;{{sc|BCE}}

{{sc|Mixed Case}}

Template:Sc and 312 Template:Sc
Template:Sc
unicef and 312 bce
mixed case

(in many browsers)
{{Allcaps}} {{caps}} Uppercase conversion, all-caps display.
The size of uppercase letters.
Uses: ???.
{{caps|UNICEF}} and 312&nbsp;{{caps|BCE}}

{{caps|Mixed Case}}

UNICEF and 312 BCE
Mixed Case
UNICEF and 312 BCE
Mixed Case

(in many browsers)
{{Nocaps}}   Lowercase conversion, all-lowercase display.
The size of lowercase letters.
Uses: ???.
{{nocaps|UNICEF}} and 312&nbsp;{{nocaps|BCE}}

{{nocaps|Mixed Case}}

Template:Nocaps and 312 Template:Nocaps
Template:Nocaps
unicef and 312 bce
mixed case

(in many browsers)
Template documentation

This table is transcluded into the documentation of the various templates it illustrates.