Fails for files

Since categories marked as Category:Users' Images (or Users' Logos) are considered userspace, this template is applicable for those files too. However, the link fails and needs a preceding colon. See File:TOC website 3.0.png for an example.
jvvg (talk | contribs) 01:43, 16 May 2022 (UTC)

Oh yeah, how about making a different template for files?
UserIconAdzboy.png AdzboyTalkContributionsScratch Profile 05:26, 16 May 2022 (UTC)
Preceding colons can link to normal pages. ScratchJr Also, we can just use {{NAMESPACE}} to detect it. No need for a separate template.
29590234_18x18.png Ideapad-320 | Talk | Contribs | Scratch 14:03, 16 May 2022 (UTC)
UserIconAdzboy.png AdzboyTalkContributionsScratch Profile 15:34, 16 May 2022 (UTC)
Cookies help us deliver our services. By using our services, you agree to our use of cookies.