Difference between revisions of "Template:FilenameToCaption"

From Disobiki
Jump to: navigation, search
Line 6: Line 6:
 
{{FilenameToCaption|Suspiria-1997-French-Poster-1.jpg|Suspiria|1997}}
 
{{FilenameToCaption|Suspiria-1997-French-Poster-1.jpg|Suspiria|1997}}
  
{{#replace:{{#replace:Suspiria-1997-French-Poster-1.jpg|Suspiria-1997-|}}|.jpg|}}
+
{{#replace:{{#replace:{{#replace:Suspiria-1997-French-Poster-1.jpg|Suspiria-1997-|}}|.jpg|}}|.png|}}
 
+
{{#replace:a|a|b}}
+
  
 
<pre>
 
<pre>

Revision as of 20:29, 15 October 2013

Usage

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

French-Poster-1

French-Poster-1

 {{FilenameToCaption|FILENAME|FILM|YEAR}}