Content deleted Content added
Line 29:
:{{u|Pppery}}, there is no guarantee that Wikidata is always available, and when it is not, this template produces an error displayed in red and bold on every single article using shortdescs. I use a local MediaWiki instance for preparing some of the articles I write and export/import the pages I intend to rewrite, which is how I noticed the issue. There are no trade-offs to this change. I assumed that the "different" category was the default, based on how the template was previously set up. If this is incorrect, I would be fine with changing it to another (I'm yet to test whether it works with none at all). [[User:IceWelder|<span style="font-variant: small-caps;">IceWelder</span>]] [[[User talk:IceWelder|<span style="color: #424242;">✉</span>]]] 16:44, 16 August 2020 (UTC)
:: You shouldn't mass-import templates from other wikis without making sure they make sense on the wiki they end up on. Neither {{tl|short description}} nor [[Module:SDcat]] make any sense on any wiki that does not support Wikidata, therefore code to support such wikis is code bloat and does not belong. [[User:Pppery|* Pppery *]] [[User talk:Pppery|<sub style="color:#800000">it has begun...</sub>]] 16:51, 16 August 2020 (UTC)
::: In my case specifically, they are not supposed to "make sense", just work for the purpose of displaying the article approximately like how it would appear here, which it does just fine. Adding this failsafe eases the process of quickly setting up such an instance. It also avoids errors here when Wikidata is offline for whatever reason. I checked on the template again locally and returning an empty string works just fine in this case. Implementing it that way would also avoid mass category-stuffing in the case of a Wikidata outage. [[User:IceWelder|<span style="font-variant: small-caps;">IceWelder</span>]] [[[User talk:IceWelder|<span style="color: #424242;">✉</span>]]] 17:02, 16 August 2020 (UTC)
|