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)))
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:{{#rpos:{{{1|dirname/filename?foo}}}|?}}-1-{{#rpos:{{{1|dirname/filename?foo}}}|/}}}}}}

Revision as of 11:42, 24 January 2021

filename