Module talk:Article link

Latest comment: 10 months ago by Xover in topic Case insensitivity on parameters

Test for year subdirectory existing edit

@Inductiveload: Would it please be possible to modify the module so that it can do an #ifexist check for the year subdirectory, and if it doesn't then not wikilink the year display. When we have very few works of a periodical, then we're unlikely to need that year subdir linked and instead do all the link work at the top level, yet it is good for the work to be set in subdir that way and for it to year display. If we can check for existence the we can avoid the redlink and the ovneed to watch or have those links created for little immediate value. Thanks. — billinghurst sDrewth 03:09, 5 September 2021 (UTC)Reply

Portal:Michael O'Malley as an example, where we have one article for each newspaper. — billinghurst sDrewth 03:09, 5 September 2021 (UTC)Reply
@Billinghurst:   Done Inductiveloadtalk/contribs 10:35, 9 September 2021 (UTC)Reply

exclude errors from Template: ns pages edit

@Inductiveload: Are we able to exclude Template: pages from appearing in Category:Pages with script errors? I don't like wrapping these templates inside <includeonly> as it makes them hard to find in searches, whatlinkshere, etc. which is the only know that I know to make this disappear. Thanks. — billinghurst sDrewth 07:07, 3 October 2021 (UTC)Reply

@Billinghurst Not directly, but I'll try to make that a regular template error rather than a Lua error. Though since every template page should also have the template used (correctly) in the description, are you sure those pages would not list the templates? Inductiveloadtalk/contribs 22:19, 3 October 2021 (UTC)Reply
@Inductiveload: I have changed {{article link}} to be onlyinclude and it now appears with a LUA error. It is due to the default missing mandated fields. The templates will always appear in the category as they are missing mandated fields, so what is the benefit? I just see people will wrap them in noinclude, or try to "fix" them. I suppose that I could insert a noinclude field pointing to sandbox.djvu, though I am not certain that makes the template more understandable. — billinghurst sDrewth 22:35, 3 October 2021 (UTC)Reply
special:diff/11746644 <= forcing a NOINCLUDE takes it out the error space, better or worse? — billinghurst sDrewth 22:38, 3 October 2021 (UTC)Reply
To be clear, I am only talking excluding them in this module. — billinghurst sDrewth 22:40, 3 October 2021 (UTC)Reply
Actually, it didn't need to be any kind of error, it was because Lua doesn't like trying to make a title out of something that contains {{{1}}}, so I fixed that. So it should now just be "working" (as in, showing a default presentation containing {{{1}}}, etc) on all pages. Inductiveloadtalk/contribs 06:00, 4 October 2021 (UTC)Reply
Though I am still unsure exactly what a completely blank implementation at the top of the {{article link}} page itself would be expected to usefully show? I feel that parameter checking and guided advice at the user when they have omitted the periodical is more useful than an "example" full of braces on {{article link}}? Inductiveloadtalk/contribs 06:16, 4 October 2021 (UTC)Reply

Case insensitivity on parameters edit

@Inductiveload, @Xover: Can we please look to amend the template so that the parameters like "volume" can be done accomplished as something like "Volume". It would make life a little easier and a little more robust. Thanks. — billinghurst sDrewth 04:26, 31 May 2023 (UTC)Reply

@Billinghurst Should be possible with a transformer function (valueFunc) with the Arguments module. I'm not 100% on the consequences. @Xover: it feels like it wouldn't be a big problem, right? The only issue that I can see is if someone were scraping the Wikicode, which I doubt anyone is doing, they'd need to normalise the parameter name casing and/or adjust regexen. Inductiveloadtalk/contribs 08:02, 1 June 2023 (UTC)Reply
@Inductiveload: I've raised the issue upstream for Module:Arguments in the hopes we won't have to maintain it ourselves, since it looks like quite generic functionality. If that doesn't pan out a local implementation in Module:Article link should absolutely be possible (I haven't looked specifically, but I don't foresee big problems). Xover (talk) 11:41, 1 June 2023 (UTC)Reply

propose adding illustrator parameter edit

We have multiple examples in re-use of this template that there are illustrators to works, and I would prefer to specifically label them as illustrators rather than as coauthors. Any concerns in doing that? — billinghurst sDrewth 06:36, 31 May 2023 (UTC)Reply

@Billinghurst: Can you give a concrete example? Xover (talk) 08:11, 31 May 2023 (UTC)Reply
special:diff/13244142 using {{Strand Magazine link}} where I have already poked in the parameter — billinghurst sDrewth 09:47, 31 May 2023 (UTC)Reply