Template:Lowercase title/doc: Difference between revisions

From CivWiki
Jump to navigation Jump to search
Content added Content deleted
(tweaks)
(==Rationale== with link to Signpost report, see also to WP:NCTR)
Line 3: Line 3:
PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE
PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE
-->
-->
{{TOCright}}
==Usage==
==Usage==


Line 22: Line 23:


* '''Attention: Please do not [[WP:SUBST|Subst:]] this template.'''
* '''Attention: Please do not [[WP:SUBST|Subst:]] this template.'''

==Rationale==

One intended paradigm of the Wikipedia interface is that you should always be able to copy-paste the title header of a page and immediately obtain a suitable bluelink by enclosing it in double brackets. This was not working with proper nouns such as "eBay" and common nouns such as "buried treasure", both requiring to edit the copy-pasted text afterwards in order to obtain <CODE><NOWIKI>[[eBay]]</NOWIKI></CODE> and <CODE><NOWIKI>[[buried treasure]]</NOWIKI></CODE>. A software change was implemented in July 2007[http://en.wikipedia.org/wiki/Wikipedia:Wikipedia_Signpost/2007-07-16/Technology_report] to allow any article whose [[headword]] starts with a lowercase letter to have its title header reflect it. This change prevents any other use or abuse (such as displaying "two" for article "one").


==Technical==
==Technical==


This template wraps the [[Help:Magic words|magic word]] DISPLAYTITLE so that it works automatically in any namespace (main, talk, template, etc.) to decapitalise the first letter of the name of a page it's transcluded on. (Previously, this template achieved this using [[JavaScript]], but the DISPLAYTITLE method makes the change for all users, even those with JavaScript disabled in their browser).
This template wraps the [[Help:Magic words|magic word]] DISPLAYTITLE so that it works automatically in any namespace (main, talk, template, etc.) to decapitalise the first letter of the name of a page it is transcluded on. (Previously, this template achieved this using [[JavaScript]], but the DISPLAYTITLE method makes the change for all users, even those with JavaScript disabled in their browser).


==See also==
==See also==


* [[Wikipedia:Naming conventions (technical restrictions)#Lower case first letter]]
* {{tl|Wrongtitle}} – hatnote for providing a correct title prevented by technical reasons
* {{tl|Wrongtitle}} – hatnote for providing a correct title prevented by technical reasons



Revision as of 21:53, 27 October 2007

Template:TOCright

Usage

Simply add the tag {{Lowercase}} at the top of a page (and optionally, at the top of its talk page). There are no parameters. The tag will only decapitalize the first letter of the page's name in the title at the top of the page. Examples:

Page name Will display
EBay, IPod, etc. eBay, iPod, etc.
E (mathematical constant) e (mathematical constant)
Buried treasure buried treasure
Talk:Buried treasure Talk:buried treasure
  • Attention: Please do not Subst: this template.

Rationale

One intended paradigm of the Wikipedia interface is that you should always be able to copy-paste the title header of a page and immediately obtain a suitable bluelink by enclosing it in double brackets. This was not working with proper nouns such as "eBay" and common nouns such as "buried treasure", both requiring to edit the copy-pasted text afterwards in order to obtain [[eBay]] and [[buried treasure]]. A software change was implemented in July 2007[1] to allow any article whose headword starts with a lowercase letter to have its title header reflect it. This change prevents any other use or abuse (such as displaying "two" for article "one").

Technical

This template wraps the magic word DISPLAYTITLE so that it works automatically in any namespace (main, talk, template, etc.) to decapitalise the first letter of the name of a page it is transcluded on. (Previously, this template achieved this using JavaScript, but the DISPLAYTITLE method makes the change for all users, even those with JavaScript disabled in their browser).

See also