Template:Lowercase title/doc

__EXPECTED_UNCONNECTED_PAGE__

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 does not work together with other title modification templates: you need to use DISPLAYTITLE directly and make sure it's the last DISPLAYTITLE on the page. For example, to make "Example" italic and lowercase, use {{DISPLAYTITLE:''example''}}.

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

When using on templates, please make sure to wrap it with a <noinclude> tag, so that transcluded pages don't get affected.

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.

<syntaxhighlight lang=sql> /* Page using a lowercase title, with or without Template: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];)"

</syntaxhighlight>

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

ParameterDescriptionTypeStatus
Italicitalic

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

Stringoptional
Fully italicforce

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

Stringoptional
Italicize disambiguationdab

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

Stringoptional

See also

Title changing or correcting templates + magic word
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 <syntaxhighlight lang="wikitext" inline style="display: none;" />|string= in italics List of Ally McBeal episodes List of Ally McBeal episodes
{{Italic title|all=yes|string=Time}} Phrase of <syntaxhighlight lang="wikitext" inline style="display: none;" />|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 (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