Template talk:Website: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(why?)
 
(because...)
Line 1: Line 1:
Hi Carlos...  Why only "ALWAYS ADD TEST VALUES IN ALL LOWER CASE HERE!  
Hi Carlos...  Why only "ALWAYS ADD TEST VALUES IN ALL LOWER CASE HERE!  
On the works page the parameter passed can be in any case"?  Does it make a difference if upper case appears here?  -- [[User:CHGiffen|Chuck]][[User talk:CHGiffen|<sub><small>'''talk'''</small></sub>]]&nbsp;[[User:Charles H. Giffen|Giffen]][[Charles H. Giffen|<sub>'''♫'''</sub>]] 05:21, 18 October 2008 (UTC)
On the works page the parameter passed can be in any case"?  Does it make a difference if upper case appears here?  -- [[User:CHGiffen|Chuck]][[User talk:CHGiffen|<sub><small>'''talk'''</small></sub>]]&nbsp;[[User:Charles H. Giffen|Giffen]][[Charles H. Giffen|<sub>'''♫'''</sub>]] 05:21, 18 October 2008 (UTC)
:Hi Chuck, it's because I introduced the ''magic word'' '''lc:''' in the test: <tt><nowiki>{{lc:{{{1|}}}}}</nowiki></tt>. It converts whatever is being passed as parameter to all lower case, so the testing values must be also in lower case if we want them to match. Before, if we wanted to know Adrian Cuello's site, we had to use "<tt><nowiki>{{website|Adrian Cuello}}</nowiki></tt>"; now all the following forms are allowed: "<tt><nowiki>{{website|Adrian Cuello}}</nowiki></tt>", "<tt><nowiki>{{website|adrian cuello}}</nowiki></tt>", "<tt><nowiki>{{website|ADRIAN CUELLO}}</nowiki></tt>", "<tt><nowiki>{{website|AdRiAn CuElLo}}</nowiki></tt>" etc. —[[User:Carlos|Carlos]]&nbsp;[http://choralwiki.net/wiki/index.php/User_talk:Carlos http://choralwiki.net/wiki/images/6/66/Email.gif] 20:48, 18 October 2008 (UTC)

Revision as of 20:48, 18 October 2008

Hi Carlos... Why only "ALWAYS ADD TEST VALUES IN ALL LOWER CASE HERE! On the works page the parameter passed can be in any case"? Does it make a difference if upper case appears here? -- Chucktalk Giffen 05:21, 18 October 2008 (UTC)

Hi Chuck, it's because I introduced the magic word lc: in the test: {{lc:{{{1|}}}}}. It converts whatever is being passed as parameter to all lower case, so the testing values must be also in lower case if we want them to match. Before, if we wanted to know Adrian Cuello's site, we had to use "{{website|Adrian Cuello}}"; now all the following forms are allowed: "{{website|Adrian Cuello}}", "{{website|adrian cuello}}", "{{website|ADRIAN CUELLO}}", "{{website|AdRiAn CuElLo}}" etc. —Carlos Email.gif 20:48, 18 October 2008 (UTC)