Template talk:Remove file prefix
Jump to navigation
Jump to search
2021 update
[edit]this template is not protected, but i would like a template editor to help check whether it's a good idea to update this by copying en:Template:Remove file prefix.--RZuo (talk) 19:12, 4 April 2021 (UTC)
- @RZuo:
Done, yes, it is. It shouldn’t cause any harm and it now handles cases like imAgE:Example.svg, which is accepted by MediaWiki. —Tacsipacsi (talk) 22:56, 4 April 2021 (UTC)
Proposed simplification
[edit]You do know you can simplify this code down to {{PAGENAME:{{{1|}}}}} right? Watch:
{{PAGENAME:File:Foo.jpg}}
OUTPUT:
Foo.jpg
{{PAGENAME:Foo.jpg}}
OUTPUT:
Foo.jpg
It's kind of reinventing the wheel a bit, and I'd swap in the simpler code.
Adam Cuerden (talk) 18:18, 10 May 2022 (UTC)
- Given its title, I don't think the template should strip any other namespace prefices than the "file" and "image" ones. 𝟙𝟤𝟯𝟺𝐪𝑤𝒆𝓇𝟷𝟮𝟥𝟜𝓺𝔴𝕖𝖗𝟰 (𝗍𝗮𝘭𝙠) 23:44, 21 May 2022 (UTC)
Not done per 1234. —Mdaniels5757 (talk • contribs) 15:50, 11 October 2022 (UTC)