Template talk:Cnote2

(Redirected from Template talk:Cnote2 Begin/testcases)
Latest comment: 6 years ago by E to the Pi times i in topic Merge discussion

Multiple targets

edit

Currently the template system only allows a one directional flow from either the inline template to the footnote, or from the footnote to the inline template. The <reference /> tag allows for the footnote to flow to multiple inline templates. This can be done here as well, with a few more parse functions. I'm planning on adding a second parameter in the {{Cref2}} template to allow the editors to assign a custom "id" to that specific inline note, and a for the {{Cnote2}} template to be able to target multiple inline notes. ChyranandChloe (talk) 05:03, 11 May 2009 (UTC)Reply

  Done ChyranandChloe (talk) 06:21, 13 May 2009 (UTC)Reply

Something wrong when n > 2?

edit

Please take a look at the article Enlargement of the United Nations. When n=3, it gives me 4 back links, and when n=4, the back links don't get displayed. Chanheigeorge (talk) 09:24, 9 September 2009 (UTC)Reply

Discussion copied and paste from [1]


Sorry, was on wikibreak, it should be fixed now.[2] If the changes are not immediately apparent, please remember to purge the page cache. If an error remains, I'm interested. Also, added a new feature, value= to allow you to for example change the sequence of the list. For example, by default it'll go 1, 2, 3, 4, 5. If you apply the value=4 on the third item, it'll then count 1, 2, 4, 5, 6. Thanks for the note. :) ChyranandChloe (talk) 23:38, 19 September 2009 (UTC)Reply
Thanks for your fix! But I notice that every note now becomes "A" at the Notes section. Chanheigeorge (talk) 05:10, 20 September 2009 (UTC)Reply
I'm not sure I understand, 'every note now becomes "A"'? It looks like it works to me. ChyranandChloe (talk) 05:17, 20 September 2009 (UTC)Reply
Every note now becomes "A. ...". Chanheigeorge (talk) 05:22, 20 September 2009 (UTC)Reply
Internet explorer. Shakes head. It's the value attribute, even though it's passing, well... nothing, IE "assumes" I want the value 1, which well starts every list at one or as you can see A (see docs about the value parameter). I use Google Chrome, so I didn't notice it. I'll get it fixed. Thanks. ChyranandChloe (talk) 05:31, 20 September 2009 (UTC)Reply
It should be fixed now.[3] Please remember to refresh the page cache. Sigh. ChyranandChloe (talk) 05:39, 20 September 2009 (UTC)Reply

Is this a typo?

edit

Written in the second example of the Parameters section is the following:

If there are more than one Cref2 that needs to link to the "N" Cnote2, apply the second "occurrence" parameter.

first occurrence{{Cref2|N|1}} second occurrence{{Cref2|N|1|2}}

first occurrence[N] second occurrence[N]

But the second occurrence has a "2" placed in the third parameter; this is confusing me. Shouldn't it read {{Cref2|N|2}}, not {{Cref2|N|1|2}}? – Kerαunoςcopiagalaxies 16:29, 9 February 2010 (UTC)Reply

You're right, should go in second, typo, fixed, thanks! ChyranandChloe (talk) 23:23, 9 February 2010 (UTC)Reply

Liststyles no longer work?

edit

I could've sworn the default liststyle was "upper-alpha." I was just brushing up on this template and I see that all the examples are bulleted, even when the liststyle in {{Cnote2 Begin}} specifies otherwise. Am I missing something? It's been a while since I've used this. – Kerαunoςcopiagalaxies 18:43, 2 May 2010 (UTC)Reply

See [4], TheDJ was trying to make it merge-able with {{refbegin}} and therefore removed the <ol> tag because he thought it would be redundant. It would be if you used {{Cnote2 Begin}} like {{refbegin}}, and used the wikicode * Example instead of the correct {{Cnote2|A|Example}}. It should be fixed now. 198.60.5.253 (talk) 17:40, 26 June 2010 (UTC)Reply
edit

It seems that Cnote2 texts containing links to Google Books like this one don't work. They produce a message "parameter "2", text parameter, is empty". Am I right? Andrew Dalby 18:12, 6 July 2010 (UTC)Reply

It's because of the equal signs and there are two ways to fix this. The first is to place a "2= ..." following the vertical bar separating the first and second parameter, for example do this "{{Cnote2|A|2=http://books.google.fr/books?id=l14GAAAAQAAJ}}" instead of "{{Cnote2|A|http://books.google.fr/books?id=l14GAAAAQAAJ}};" the documentation briefly goes over this. The second is to replace all equal signs with "{{=}}," for example "{{Cnote2|A|http://books.google.fr/books?id{{=}}l14GAAAAQAAJ}}." Give these examples a try in the sandbox. I hope this helps. 67.190.48.91 (talk) 07:39, 10 July 2010 (UTC)Reply
Thanks very much for your answer. I'm glad I didn't experiment before asking, because my guess was that the question mark was the problem, so I'd have wasted my time ... Andrew D[[User:Andrew Dalby/Bibliography|alby]] 09:05, 10 July 2010 (UTC)Reply

references-small

edit

This template uses <div class="references-small">...</div> to set the font to 90%. The references-small class was deleted on 10 December 2010, which means the small font has not been applied for almost five years. We need to either remove the class to keep the normal font or change it to reflist to set it to 90%. -- Gadget850 talk 01:25, 4 May 2015 (UTC)Reply

Text error

edit

Check the page, it has this (^ parameter "2", text parameter, is empty.) at the beginning, the same problem is witnessed for the same article in different languages! MM 9004 (talk) 19:55, 6 August 2017 (UTC)Reply

Merge discussion

edit

I have nominated this for TfD. Adding <noinclude>{{subst:tfm|efn|heading=cnote templates}}</noinclude> would be appreciated.

  Done E to the Pi times i (talk | contribs) 06:17, 31 March 2018 (UTC)Reply