Difference between revisions of "Template:Basename"

From Knotter
Jump to navigation Jump to search
m (Protected "Template:Basename": High traffic page (‎[edit=sysop] (indefinite) ‎[move=sysop] (indefinite)))
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{#sub:{{#sub:{{{1|dirname/filename}}}|{{#rpos:{{{1|dirname/filename}}}|/}}}}|1}}
+
{{#sub:{{{1|dirname/filename?foo}}}|{{#expr:1+{{#rpos:{{{1|dirname/filename?foo}}}|/}}}}|{{#expr:{{#pos:{{{1|dirname/filename?foo}}}?|?}}-1-{{#rpos:{{{1|dirname/filename?foo}}}|/}}}}}}

Latest revision as of 12:01, 24 January 2021

filename