Jump to content

Module talk:Footnotes

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

More whitelist requests

[edit]

Several Harry Potter templates have been added and should probably be whitelisted.

['CITEREFRowling1997'] = template_names['HP1ref'], ['CITEREFRowling1998'] = template_names['HP2ref'], ['CITEREFRowling1999'] = template_names['HP3ref'], ['CITEREFRowling2000'] = template_names['HP4ref'], ['CITEREFRowling2003'] = template_names['HP5ref'], ['CITEREFRowling2005'] = template_names['HP6ref'], ['CITEREFRowling2007'] = template_names['HP7ref'],

Thanks. Andy02124 (talk) 15:51, 25 July 2024 (UTC)[reply]

Those shouldn't be using template_name, the correct format is:

['CITEREFRowling1997'] = {'HP1ref'}, ['CITEREFRowling1998'] = {'HP2ref'}, ['CITEREFRowling1999'] = {'HP3ref'}, ['CITEREFRowling2000'] = {'HP4ref'}, ['CITEREFRowling2003'] = {'HP5ref'}, ['CITEREFRowling2005'] = {'HP6ref'}, ['CITEREFRowling2007'] = {'HP7ref'},

template_name is used for templates with multiple names, and need additional setup. These are just standard templates. -- LCU ActivelyDisinterested «@» °∆t° 17:13, 25 July 2024 (UTC)[reply]
Thanks for the correction. Andy02124 (talk) 03:41, 26 July 2024 (UTC)[reply]

Oh that's how this works

[edit]

I figured my new bespoke single source CS1 wrapper working in practice but categorizing articles into Category:Harv and Sfn no-target errors was a transclusion issue with a known fix.

Anyway, from the above I take it I should request the following:

['CITEREFShiji'] = {'Cite Shiji'}, ['CITEREFSimaSima'] = {'Cite Shiji'},

In case I've done wrong, Template:Cite Shiji/testcases surfaces the CITEREFs for those with the harv-error detection script. Folly Mox (talk) 02:04, 5 August 2024 (UTC)[reply]

You may want to rethink how you format you |ref= field. Each different cite needs a separate reference, you can't just use 'Sima, Sima' as that will link to four of your examples at the same time. If they're on the same page the link won't know which one to use and will give an error.
Normally this is handled by including the year (so 'Sima, Sima (1959)' and 'Sima, Sima (1739)') but you have three examples for the year 1959. You could use 1959a, 1959b, 1959c, which is the standard way of differentiating works on the same year, or some custom method.
Also did you mean CITEREFSima instead of CITEREFShiji, as the reference for when sole is selected? -- LCU ActivelyDisinterested «@» °∆t° 08:57, 5 August 2024 (UTC)[reply]
ActivelyDisinterested, the template in not intended to be called ten times in an article or however many testcases I have there. Those were for checking other behaviour, and I only mentioned it because the CITEREFs are visible and I don't know what I'm doing here and may have fouled up the syntax. I did forget that when the flags |sole= and |comma= are both set, the template uses CITEREFSima.
The relevant line from the template code (which I still need to format sanely; it's my first) is | ref= {{#if:{{{comma|}}}|{{#if:{{{sole|}}}|{{sfnref|Sima}}|{{sfnref|Sima|Sima}}}}|{{sfnref|''Shiji''}}}}Folly Mox (talk) 10:30, 5 August 2024 (UTC)[reply]
Incidentally, I recorded my rationale for citing by title instead of author surname at Template:Cite Shiji/doc § Use with shortened footnotes. For clarity, I certainly don't intend to transclude this template more than once per article: I'm planning on adding support for multiple chapters, but even if I don't it's still best practice to cite the full bibliographic information once rather than multiple times, as the existence of this module attests. Folly Mox (talk) 10:37, 5 August 2024 (UTC)[reply]
Thanks I just wanted to make sure. There's a few outstanding updates that need doing, I've reposted these all together in the section below (with the addition of CITEREFSima). -- LCU ActivelyDisinterested «@» °∆t° 10:52, 5 August 2024 (UTC)[reply]

Consolidated updates

[edit]

Renata3 there's a few updates waiting to be done, could you add the following entries?
['CITEREFMarshall1969'] = {'Lancashire & Yorkshire Railway 1'}, ['CITEREFMarshall1970'] = {'Lancashire & Yorkshire Railway 2'}, ['CITEREFRowling1997'] = {'HP1ref'}, ['CITEREFRowling1998'] = {'HP2ref'}, ['CITEREFRowling1999'] = {'HP3ref'}, ['CITEREFRowling2000'] = {'HP4ref'}, ['CITEREFRowling2003'] = {'HP5ref'}, ['CITEREFRowling2005'] = {'HP6ref'}, ['CITEREFRowling2007'] = {'HP7ref'}, ['CITEREFShiji'] = {'Cite Shiji'}, ['CITEREFSima'] = {'Cite Shiji'}, ['CITEREFSimaSima'] = {'Cite Shiji'},

Thanks, -- LCU ActivelyDisinterested «@» °∆t° 10:52, 5 August 2024 (UTC)[reply]

 Done Renata3 03:14, 6 August 2024 (UTC)[reply]
Thanks Renata. -- LCU ActivelyDisinterested «@» °∆t° 10:23, 6 August 2024 (UTC)[reply]
Thank you -- Nempnet (talk) 13:57, 8 August 2024 (UTC)[reply]

Notice: discussions on WMDE sub-reference project in progress at Meta

[edit]

The WikiMedia sub-referencing project (parent project: Reusing references) is having multiple discussions about the development of a sub-referencing feature by WikiMedia Deutschland Engineering. Your feedback would be welcome at any of the discussons at m:Talk:WMDE Technical Wishes/Sub-referencing. Mathglot (talk) 20:58, 23 August 2024 (UTC)[reply]

Another whitelist request

[edit]

Hi @Renata3, there is more Tolkien (no surprise). I may or may not have gotten the format right this time:

['CITEREFTolkien2017']={'ME-ref|B&L'}

Thanks, Andy02124 (talk) 16:50, 26 August 2024 (UTC)[reply]

Probably {'ME-ref'} is enough. Andy02124 (talk) 16:51, 26 August 2024 (UTC)[reply]
It should just be:
['CITEREFTolkien2017'] = {'ME-ref'},
The B&L isn't part of the template name. -- LCU ActivelyDisinterested «@» °∆t° 20:34, 26 August 2024 (UTC)[reply]