Template:Title case/doc

From Celestial Lance Universe Wiki
< Template:Title case
This is an old revision of this page, as edited by Cellan3 (talk | contribs) at 13:00, 9 April 2025 (Created page with "{{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page --> === Usage === {{lua|Module:String2}} This is a very simplistic algorithm so the output should be previewed and the template usually be substituted in the article namespace. Most obviously, it ignores proper nouns. Although the algorithm is based on United States Government Printing Office manual §3.49, the pink rows in the following table are §3.49 examples which the..."). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Usage

This is a very simplistic algorithm so the output should be previewed and the template usually be substituted in the article namespace. Most obviously, it ignores proper nouns. Although the algorithm is based on United States Government Printing Office manual §3.49, the pink rows in the following table are §3.49 examples which the template output does not match.

USGPS {{Title case}} examples
§3.49 example Template output
World en Route to All-Out War World En Route to All-out War
Curfew To Be Set for 10 o'Clock Curfew to Be Set for 10 O'clock
Man Hit With 2-Inch Pipe Man Hit With 2-inch Pipe
No-Par-Value Stock for Sale No-par-value Stock for Sale
Yankees May Be Winners in Zig-Zag Race Yankees May Be Winners in Zig-zag Race
Ex-Senator Is To Be Admitted Ex-senator Is to Be Admitted
Notice of Filing and Order on Exemption From Requirements Notice of Filing and Order on Exemption from Requirements
Building on Twenty-first Street Building on Twenty-first Street
One Hundred Twenty-three Years One Hundred Twenty-three Years
Only One-tenth of Shipping Was Idle Only One-tenth of Shipping Was Idle
Many 35-Millimeter Films in Production Many 35-millimeter Films in Production
Built-Up Stockpiles Are Necessary Built-up Stockpiles Are Necessary
His Per Diem Was Increased His Per Diem Was Increased
Lower Taxes per Person Lower Taxes Per Person

Example

{{Title case|the quick brown fox jumps over the lazy dog}} → The Quick Brown Fox Jumps Over the Lazy Dog