Template:Ifsvg: Difference between revisions
Template page
More actions
create an inefficient template, please replace it if there is a better way to do that. |
fix |
||
| Line 1: | Line 1: | ||
{{iffile | {{lc: {{str endswith| {{PAGENAME}} }} | svg }} }}<noinclude> | {{iffile | {{#ifeq: {{lc: {{str endswith| {{PAGENAME}} }} | svg }}}} | {{{1|}}} | {{{2|}}} }}<noinclude> | ||
Returns | Returns 1st param if the file is an SVG 2 otherwise | ||
[[Category:File namespace templates]] | [[Category:File namespace templates]] | ||
[[Category:SVG| ]] | [[Category:SVG| ]] | ||
</noinclude> | </noinclude> | ||
Revision as of 20:01, 17 November 2011
Returns 1st param if the file is an SVG 2 otherwise