Difference between revisions of "Template:Lowercase"

From The iPhone Wiki
Jump to: navigation, search
(New page: {{DISPLAYTITLE:{{lcfirst:{{PAGENAME}}}}}}<noinclude>Lowecases the title of a page. == Usage == (Top of page) <nowiki>{{lowercase}}</nowiki> (text) (bottom of page) Simple, right?)
 
Line 1: Line 1:
{{DISPLAYTITLE:{{lcfirst:{{PAGENAME}}}}}}<noinclude>Lowecases the title of a page.
+
<includeonly>{{DISPLAYTITLE:{{lcfirst:{{PAGENAME}}}}}}</includeonly><noinclude>Lowecases the title of a page.
 
== Usage ==
 
== Usage ==
 
(Top of page)
 
(Top of page)
Line 6: Line 6:
 
(bottom of page)
 
(bottom of page)
 
Simple, right?
 
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.

Revision as of 00:26, 2 January 2011

Lowecases the title of a page.

Usage

(Top of page)
{{lowercase}}
(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 Parser Functions are not installed on this wiki. The wikipedia version does it like this: (parser function bolded)

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

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