Difference between revisions of "Template:FilenameToCaption"

From Disobiki
Jump to navigation Jump to search
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><small>{{#replace:{{#replace:{{{1}}}|{{{2}}}-{{{3}}}-||}}|.jpg|}}</small></includeonly><noinclude>
+
<includeonly><small>{{#replace:{{#replace:{{#replace:{{{1}}}|{{{2}}}-{{{3}}}-|}}|.jpg|}}|.png|}}</small></includeonly><noinclude>
 
==Usage==
 
==Usage==
  
 +
Given "Suspiria-1997-French-Poster-1.jpg", return "French-Poster-1".
 
<pre>
 
<pre>
 
  {{FilenameToCaption|FILENAME|FILM|YEAR}}
 
  {{FilenameToCaption|FILENAME|FILM|YEAR}}

Latest revision as of 20:31, 15 October 2013

Usage

Given "Suspiria-1997-French-Poster-1.jpg", return "French-Poster-1".

 {{FilenameToCaption|FILENAME|FILM|YEAR}}