• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Title case

  • Template
  • Talk
  • Language
  • Watch
  • View source
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 5,500 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.

Usage

This template uses Lua:
  • module:string2 (sandbox)

This is a very simplistic algorithm so the output should be previewed and the template usually be substituted in the article namespace. It should not be used to implement Wikipedia:Manual of Style/Capital letters. 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

The above documentation is transcluded from Template:Title case/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Title_case&oldid=1042760358"
Last edited on 6 September 2021, at 16:47

Languages

    • العربية
    • 한국어
    • Jawa
    • മലയാളം
    • မြန်မာဘာသာ
    • नेपाली
    • Română
    • Simple English
    • Slovenščina
    • کوردی
    • Српски / srpski
    • Svenska
    • Tiếng Việt
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 6 September 2021, at 16:47 (UTC).
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Contact Wikipedia
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop