Jump to content

Extension talk:LinkCards

Add topic
From mediawiki.org
Latest comment: 7 months ago by Samwilson in topic Appears incorrectly in dark mode

Default image feature

[edit]

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 (talk) 10:20, 2 May 2022 (UTC)Reply

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. Makertrainer (talk) 19:33, 6 May 2022 (UTC)Reply
@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)Reply
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? Sam Wilson 13:06, 11 August 2022 (UTC)Reply

Marking files as used

[edit]

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? Aafi (DCW) (talk) 13:56, 27 March 2024 (UTC)Reply

Thanks to Sam. This is tracked on phab:T369330. Aafi (DCW) (talk) 04:40, 5 July 2024 (UTC)Reply

Appears incorrectly in dark mode

[edit]

The cards appear incorrectly in dark mode. When hovering over them the background is white for no reson. MouseCursor (talk) 11:53, 28 June 2025 (UTC)Reply

@MouseCursor: Thanks for reporting this! I've made a fix. Sam Wilson 05:58, 29 June 2025 (UTC)Reply