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

Template:Lowercase title

  • Template
  • Talk
  • Language
  • Watch
  • View source
(Redirected from Template:Lower case title)
Template documentationviewedithistorypurge
See also: Template:Nocaps
WarningThis template is used on approximately 18,000 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.
This template should not be substituted.

Contents

  • 1 Usage
  • 2 Issues
  • 3 Technical
  • 4 TemplateData
  • 5 See also
Shortcut
  • {{lotTemplate:Lot}}
This template uses Lua:
  • Module:MultiReplace (sandbox)

Usage

Simply add the wikitext markup {{Lowercase title}} at the beginning of a page (and optionally, at the beginning of its talk page). The markup will only decapitalize the first letter of the page's name in the title at the beginning of the page by default.

Some examples (in different namespaces):

Page name Will display
EBay eBay
Talk:EBay Talk:eBay
Category:MacOS Category:macOS
Template:IPhone models Template:iPhone models

Issues

The template cannot be directly combined with other title modification templates, including {{Italic title}}, {{Italic disambiguation}}, and {{Italic title prefixed}}; if more than one of these is placed on a page, only the last is applied, and a DISPLAYTITLE error message is generated. Some of these combined stylizations (a lowercased title combined with an italicized title, disambiguation, or both) can be enacted using this template's parameters, as shown in the second table below, while others (a lowercase title with a delayed or otherwise non-standard italicized substring or other modifications not pertaining to case or italicization) require the use of {{DISPLAYTITLE}} directly.

When using the template on redirect pages, the template must be placed after the redirect, as it will break the redirection if placed before it. This, however, limits the template to have an effect only when viewing the redirect page directly. Nevertheless, it is still useful in this scenario to document the proper capitalization of a term.

When using the template on other templates, make sure to wrap it with <noinclude> tags to prevent it from affecting pages that the other templates are transcluded onto.

Technical

This template wraps the magic word DISPLAYTITLE so that it works automatically in any namespace (main/article, talk, template, category, etc.) to decapitalise the first letter of the name of a page it is transcluded on.

/* Page using a lowercase title, with or without {{lowercase}} */
SELECT page_title, pp_value AS displaytitle
FROM page
JOIN page_props ON pp_page=page_id AND pp_propname="displaytitle"
WHERE page_namespace=0
AND CONVERT(pp_value USING utf8mb4) COLLATE utf8mb4_bin /* &#greek; */
    REGEXP "^([_ :]+|<[^<>]+>)*([[:lower:]]|&#9[4-6][0-9];)"

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Lowercase title in articles based on its TemplateData.

TemplateData for Lowercase title

This template is used to make the first letter of the page title lowercase. It will not affect the page URL, just the displayed name.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Italicitalic

If this is specified with any value, italicize the title, except for any part in parentheses.

Stringoptional
Fully italicforce

If this AND "italic" have a value specified, then the whole title will be italic, including any parentheses.

Stringoptional
Italicize disambiguationdab

If this is specified with any value, italicize the part in parentheses.

Stringoptional

See also

  • Wikipedia:Naming conventions (technical restrictions)#Lowercase first letter
Title changing or correcting templates + magic word
  • view
  • talk
  • edit
Wiki markup
Transclusion from template:
Involves Correct name Actual article name
{{Italic title}} Title in italics Odyssey Odyssey
{{Italic title|all=yes}} Complete title in italics, including parentheses Randall and Hopkirk (Deceased) Randall and Hopkirk (Deceased)
{{Italic title|string=Ally McBeal}} Phrase of |string= in italics List of Ally McBeal episodes List of Ally McBeal episodes
{{Italic title|all=yes|string=Time}} Phrase of |string= in italics; also looks in parentheses You (Time Person of the Year) You (Time Person of the Year)
{{Italic disambiguation}} Disambiguation in italics Yahoo (Gulliver's Travels) Yahoo (Gulliver's Travels)
{{Lowercase title}} Lowercase first character eBay EBay
{{Lowercase title|italic=yes}} Lowercase first character and place title in italics, not including disambiguation iCarly (soundtrack) ICarly (soundtrack)
{{Lowercase title|italic=yes|force=yes}} Lowercase first character and place title in italics, including disambiguation i 2 (EYE) I 2 (EYE)
{{Lowercase title|dab=yes}} Lowercase first character and place disambiguation in italics iSpy (Modern Family) ISpy (Modern Family)
{{Italic title prefixed|10}} Italicize after the number of characters at the beginning of the title, not including disambiguation Battlestar Galactica (fictional spacecraft) Battlestar Galactica (fictional spacecraft)
{{Italic title prefixed|11|force=yes}} Italicize after the number of characters at the beginning of the title, including disambiguation Bill C-27: An Act to amend the Criminal Code (identity theft and related misconduct) Bill C-27: An Act to amend the Criminal Code (identity theft and related misconduct)
{{Title language|la}} Indicates that the title is in the foreign language specified by the parameter and sets the text to italics. Preferable to {{Italic title}} for foreign titles per MOS:FOREIGNITALICS Ad hominem Ad hominem
{{Title language|de|italic=no}} Indicates that the title is in the foreign language specified by the parameter but disables italics Schottenstift Schottenstift
Magic word
{{DISPLAYTITLE:_NSAKEY}} Various _NSAKEY NSAKEY
Title corrections
{{Correct title}} Various <|°_°|> Robot Face
{{Correct title|reason=bracket}} < > [ ] { } Benzo[a]pyrene Benzo(a)pyrene
{{Correct title|reason=#}} # Pilot #5 Pilot No. 5
{{Correct title|reason=vbar}} | C|T Group C/T Group
{{Correct title|reason=:}} : DK: King of Swing DK King of Swing
{{Correct title|reason=.}} . . Period (Kesha album)
{{Correct title|reason=length}} Title exceeding 256 bytes The Boy Bands Have Won, and All the Copyists and the Tribute Bands and the TV Talent Show Producers Have Won, If We Allow Our Culture to Be Shaped by Mimicry, Whether from Lack of Ideas or from Exaggerated Respect. You Should Never Try to Freeze Culture. What You Can Do Is Recycle That Culture. Take Your Older Brother's Hand-Me-Down Jacket and Re-Style It, Re-Fashion It to the Point Where It Becomes Your Own. But Don't Just Regurgitate Creative History, or Hold Art and Music and Literature as Fixed, Untouchable and Kept Under Glass. The People Who Try to 'Guard' Any Particular Form of Music Are, Like the Copyists and Manufactured Bands, Doing It the Worst Disservice, Because the Only Thing That You Can Do to Music That Will Damage It Is Not Change It, Not Make It Your Own. Because Then It Dies, Then It's Over, Then It's Done, and the Boy Bands Have Won. The Boy Bands Have Won
The above documentation is transcluded from Template:Lowercase title/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:Lowercase_title&oldid=1050689462"