Difference between revisions of "Template:Lowercase"

From The iPhone Wiki
Jump to: navigation, search
m (with the addition of parser functions, we dont need the ns= or 1= crap, we can now check if there is a namespace)
(fix)
Line 1: Line 1:
{{DISPLAYTITLE:{{#if:{{NAMESPACE|{{{ns|{{{1|}}}}}}}}|{{NAMESPACE|{{{ns|{{{1|}}}}}}}}:|}}{{lcfirst:{{PAGENAME}}}}}}<noinclude>
+
{{DISPLAYTITLE:{{#if:{{NAMESPACE}}|{{NAMESPACE}}:|}}{{{ns|{{{1|}}}}}}{{lcfirst:{{PAGENAME}}}}}}<noinclude>
 
Lowercases the title of a page.
 
Lowercases the title of a page.
 
== Usage ==
 
== Usage ==

Revision as of 23:09, 17 July 2011

Lowercases the title of a page.

Usage

(Top of page)
{{lowercase}}
(text)
(bottom of page)

Simple, right? For pages with a title that is not a namespace (ex Tutorial:), we need to do:

{{lowercase|ns=Tutorial:}}

Examples

Ex 1

Page Name: IPod

{{lowercase}}

Result: iPod

Ex 2

Page Name: Help:Contents

{{lowecase}}

Result: Help:Contents