Difference between revisions of "Template:Lowercase"

From The iPhone Wiki
Jump to: navigation, search
m
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{DISPLAYTITLE:{{lcfirst:{{PAGENAME}}}}}}</includeonly><noinclude>Lowecases the title of a page.
+
{{DISPLAYTITLE:{{#if:{{NAMESPACE}}|{{NAMESPACE}}:|}}{{lcfirst:{{PAGENAME}}}}}}<noinclude>
  +
Lowercases the title of a page.
 
== Usage ==
 
== Usage ==
(Top of page)
 
 
<nowiki>{{lowercase}}</nowiki>
 
<nowiki>{{lowercase}}</nowiki>
(text)
 
(bottom of page)
 
Simple, right?
 
== Note ==
 
'''This contains content that n00bs may not understand'''
 
 
This template does not work on pages other than the main namespace as [http://mediawiki.org/wiki/Help:ParserFunctions Parser Functions] are not installed on this wiki. The [[wikipedia:Template:lowercase|wikipedia]] version does it like this: (parser function bolded)
 
 
<nowiki>{{DISPLAYTITLE:</nowiki>'''<nowiki>{{#if:{{NAMESPACE|}}|{{NAMESPACE|}}}}</nowiki>'''<nowiki>{{lcfirst:{{PAGENAME}}}}}}</nowiki>
 
 
That checks if there is a namespace and if yes, display it with a colon, otherwise display nothing.
 

Latest revision as of 23:31, 14 August 2013

Lowercases the title of a page.

Usage

{{lowercase}}