Extension talk:LinkCards

About this board

Marking files as used

1
TheAafi (DCW) (talkcontribs)

The current behavior of the extension is that it doesn't say that a file has been used as noted on here. It could be a nice thing to be taken care of in the future. Since it doesn't say a file has been used and the file pages don't either say that the file has been used on such a page, this could cause a disruption in case the file gets deleted, perhaps on Commmons?

Reply to "Marking files as used"

Default image feature

4
Makertrainer (talkcontribs)

Hey, thanks so much for making and publishing this extension. I've been using it, it works very well and looks great. I've also made some different types of cards by wrapping them in different divs.

eg.

.modern-linkcards {

   

    .ext-linkcards-card a .ext-linkcards-main {

        color: #ffffff;

        position: absolute;

        bottom: 0px;

        right: 0px;

        left: 0px;

        text-align: right;

        background: #00000050;

        padding: 0.5rem;

        margin-left: 0;

        margin-right: 0;

    }

    .ext-linkcards-card a .ext-linkcards-main .ext-linkcards-title {

        color: #ffffff;

        margin-bottom: 0;

    }

    .ext-linkcards-card a .ext-linkcards-image {

        height: 250px;

    }

}


I would really like it if I could set a default image for pages that don't have a picture yet, similar to the RelatedArticles. Is there any chance you could implement this in the future?

Makertrainer (talkcontribs)

This would be especially important as right now if an image is linked to, but it doesn't exist, the whole page appears broken, and I cannot even edit it without disabling the extension first.

For public wikis this could cause an even bigger issue if someone deletes an image.

Samwilson (talkcontribs)

@Makertrainer: That's a great idea. I'll look at adding it this weekend! (Sorry about the slow response; I totally missed this message.) Sam Wilson 12:59, 11 August 2022 (UTC)

Samwilson (talkcontribs)

Re: if an image is linked to, but it doesn't exist, the whole page appears broken, and I cannot even edit it without disabling the extension first. This should be fixed in the latest version (0.4.0). Can you upgrade and see if it's any better?

Reply to "Default image feature"
There are no older topics