The iPhone Wiki is no longer updated. Visit this article on The Apple Wiki for current information. |
Difference between revisions of "Template:Lowercase"
(→Examples) |
(→Note) |
||
Line 28: | Line 28: | ||
'''This contains content that n00bs may not understand''' |
'''This contains content that n00bs may not understand''' |
||
− | This template does not natively work on pages other than the main namespace as [http://mediawiki.org/wiki/Help:ParserFunctions Parser Functions] are not installed on this wiki. |
+ | This template does not natively work on pages other than the main namespace as [http://mediawiki.org/wiki/Help:ParserFunctions Parser Functions] are not installed on this wiki. Here is a comparison of the [[wikipedia:Template:lowercase|wikipedia]] versionand this version: (parser function bolded) (red is removed in this stripped down version and green is added in this version) |
− | <nowiki>{{DISPLAYTITLE:</nowiki>'''<nowiki>{{#if:{{NAMESPACE|}}|{{NAMESPACE|}}}}</nowiki>'''<nowiki>{{lcfirst:{{PAGENAME}}}}}}</nowiki> |
+ | <nowiki>{{DISPLAYTITLE:</nowiki>'''<font color="red"><nowiki>{{#if:{{NAMESPACE|}}|{{NAMESPACE|}}}}</nowiki>''':</nowiki></font><nowiki>{{lcfirst:{{PAGENAME}}}}}}</nowiki> |
+ | |||
+ | <nowiki>{{DISPLAYTITLE:</nowiki><font color="green"><nowiki>{{ns|}}</nowiki></font><nowiki>{{lcfirst:{{PAGENAME}}}}}}</nowiki> |
||
That checks if there is a namespace and if yes, display it with a colon, otherwise display nothing. |
That checks if there is a namespace and if yes, display it with a colon, otherwise display nothing. |
Revision as of 04:27, 2 February 2011
Lowecases the title of a page.
Usage
(Top of page) {{lowercase|ns=namespace plus colon}} (text) (bottom of page)
Simple, right?
Examples
Page Name: IPod {{lowercase}}
Try: iPod
True Result: iPod
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
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 versionand this version: (parser function bolded) (red is removed in this stripped down version and green is added in this version)
{{DISPLAYTITLE:{{#if:{{NAMESPACE|}}|{{NAMESPACE|}}}}:</nowiki>{{lcfirst:{{PAGENAME}}}}}}
{{DISPLAYTITLE:{{ns|}}{{lcfirst:{{PAGENAME}}}}}}
That checks if there is a namespace and if yes, display it with a colon, otherwise display nothing.