The iPhone Wiki is no longer updated. Visit this article on The Apple Wiki for current information. |
Difference between revisions of "Template:Lowercase"
m (typos) |
m |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | {{DISPLAYTITLE:{{#if:{{NAMESPACE}}|{{NAMESPACE}}:|}}{{lcfirst:{{PAGENAME}}}}}}<noinclude> |
|
Lowercases the title of a page. |
Lowercases the title of a page. |
||
== Usage == |
== Usage == |
||
− | (Top of page) |
||
− | <nowiki>{{lowercase|ns=namespace plus colon}}</nowiki> |
||
− | (text) |
||
− | (bottom of page) |
||
− | Simple, right? |
||
− | |||
− | == Examples == |
||
− | === Ex 1 === |
||
− | Page Name: IPod |
||
<nowiki>{{lowercase}}</nowiki> |
<nowiki>{{lowercase}}</nowiki> |
||
− | Try: iPod<br /> |
||
− | True Result: iPod |
||
− | === Ex 2 === |
||
− | Page Name: Help:Contents |
||
− | <nowiki>{{lowecase}}</nowiki> |
||
− | Try: contents<br /> |
||
− | True Result: Help:Contents<br /> |
||
− | '''''NOTE:''' This does not work as DISPLAYTITLE only works with lowercasing the first letter in the title'' |
||
− | === Ex 3 === |
||
− | Page: Help:Contents |
||
− | <nowiki>{{lowercase|Help:}}</nowiki> |
||
− | Try Name: Help:contents<br /> |
||
− | 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 [http://mediawiki.org/wiki/Help:ParserFunctions Parser Functions] are not installed on this wiki. Here is a comparison of the [[wikipedia:Template:lowercase|wikipedia]] version and this version: (parser function bolded) (red is removed in this stripped down version and green is added in this version) |
||
− | |||
− | <nowiki>{{DISPLAYTITLE:</nowiki>'''<font color="red"><nowiki>{{#if:{{NAMESPACE|}}|{{NAMESPACE|}}}}</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. |
Latest revision as of 23:31, 14 August 2013
Lowercases the title of a page.
Usage
{{lowercase}}