Difference between revisions of "Template:Lowercase"
From FanimutationWiki
Jump to navigationJump to search (Straight from our friends at Wikipedia) |
|||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | {{DISPLAYTITLE:{{#if:{{NAMESPACE}}|{{NAMESPACE}}:|}}{{lcfirst:{{PAGENAME}}}}}}<noinclude> | + | {{DISPLAYTITLE:{{#if:{{NAMESPACE}}|{{NAMESPACE}}:|}}{{lcfirst:{{PAGENAME}}}}}}<noinclude>==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 | ||
| + | |- | ||
| + | | [[RenniD nezorF]] etc. || renniD nezorF etc. | ||
| + | |- | ||
| + | |} | ||
| + | |||
| + | * '''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 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).</noinclude> | ||
Latest revision as of 13:54, 6 February 2008
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 |
|---|---|
| RenniD nezorF etc. | renniD nezorF etc. |
- 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 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).