Template:Lowercase

From The iPhone Wiki
Revision as of 00:37, 18 February 2011 by Http (talk | contribs) (typos)
Jump to: navigation, search

Lowercases the title of a page.

Usage

(Top of page)
{{lowercase|ns=namespace plus colon}}
(text)
(bottom of page)

Simple, right?

Examples

Ex 1

Page Name: IPod

{{lowercase}}

Try: iPod
True Result: iPod

Ex 2

Page Name: Help:Contents

{{lowecase}}

Try: contents
True Result: Help:Contents
NOTE: This does not work as DISPLAYTITLE only works with lowercasing the first letter in the title

Ex 3

Page: Help:Contents

{{lowercase|Help:}}

Try Name: Help:contents
True Result: Help:contents

Note

This contains content that n00bs may not understand

This template does not natively work on pages other than the main namespace as Parser Functions are not installed on this wiki. Here is a comparison of the wikipedia version and this version: (parser function bolded) (red is removed in this stripped down version and green is added in this version)

{{DISPLAYTITLE:{{#if:{{NAMESPACE|}}|{{NAMESPACE|}}}}:{{lcfirst:{{PAGENAME}}}}}}

{{DISPLAYTITLE:{{ns|}}{{lcfirst:{{PAGENAME}}}}}}

That checks if there is a namespace and if yes, display it with a colon, otherwise display nothing.