Template:Lowercase title/doc: Difference between revisions

From CivWiki
Jump to navigation Jump to search
Content added Content deleted
(documented a non-technical ==Usage== section)
Line 3:
PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE
-->
'''<span style="font-size:1.3em">Attention: Please do not [[WP:SUBST|Subst:]] this template.</span>'''
==Usage==
 
Simply add the tag <CODE><NOWIKI>{{Lowercase}}</NOWIKI></CODE> 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:
 
{| CLASS="wikitable"
|-
! Page name !! Will display
|-
| [[EBay]] || eBay
|-
| [[E (mathematical constant)]] || e (mathematical constant)
|-
| [[Buried treasure]] || buried treasure
|-
| [[Talk:Buried treasure]] || Talk:buried treasure
|-
| [[Template:Lowercase]] || Template:lowercase
|-
|}
 
* '''<span style="font-size:1.3em">Attention: Please do not [[WP:SUBST|Subst:]] this template.</span>'''
 
==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).
 
==See also==
 
* {{tl|Wrongtitle}}
 

Revision as of 16:50, 26 October 2007

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 eBay
E (mathematical constant) e (mathematical constant)
Buried treasure buried treasure
Talk:Buried treasure Talk:buried treasure
Template:Lowercase Template:lowercase
  • Attention: Please do not Subst: this template.

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'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).

See also