Template talk:Ref
<ref group="note"> markup tagI would say that the <ref group="note"> markup tag seems to have superceded the {{note}} template tag for use in the body of the text (not for tables, etc.). Example:
—DIV (138.194.12.32 (talk) 08:17, 20 October 2010 (UTC))
Custom cite linksNew feature discussed at Wikipedia:Village pump (technical)#Cite.php: Custom cite links. ---— Gadget850 (Ed) talk 15:41, 25 February 2011 (UTC)
Cite label stylesAs previously announced, we now have a way to change the labels in citations. This is now implemented and documented. For example, using the group name of "lower-alpha", the cite labels will use lower case alpha characters. {| class="wikitable" style="text-align: center;" |- ! 05/08 | 4266 || 7828 || 7282<ref group=lower-alpha name=elk1/> || 1105 || 224<ref group=lower-alpha name=elk2/> || 161 || 916<ref group=lower-alpha name=elk3/>|| 506 || 231 || 4127 || 6190 || 6487 || 1139 || 241 || 205 || 1165 || 478 || 301 |} {{reflist |group=lower-alpha |refs= <ref name=elk1>{{cite book |last=Elk |first=Anne |title=[[Anne Elk's Theory on Brontosauruses]] |date=November 16, 1972}}</ref> <ref name=elk2>{{cite book |last=Elk |first=Anne |title=Anne Elk's Other Theory on Brontosauruses |date=November 16, 1972}}</ref> <ref name=elk3>{{cite book |last=Elk |first=Anne |title=Anne Elk's Greater Theory on Brontosauruses |date=November 16, 1972}}</ref>}}
Other styles are decimal, lower-greek and lower-roman. ---— Gadget850 (Ed) talk 15:21, 11 March 2011 (UTC) When to use |
Markup | Renders as |
---|---|
Text alpha.{{ref|Alpha|α}} Text alpha.{{ref label|Alpha|α}} ==Notes== :{{note|Alpha|α}} Information on alpha |
|
--— Gadget850 (Ed) talk 14:53, 3 January 2013 (UTC)
List of notes?
Is there a method in Template: Note that allows it to be used similarly to: ((reflist|width|refs=list of references))? As in the "refs=" part, where you can add various notes there, keeping them out of the body text but linking to them in the text. Darkwarriorblake (talk) 18:04, 4 January 2014 (UTC)
Pir Saifullah Shah Jeelani Pir Saifullah shah jeelani (talk) 17:20, 20 September 2021 (UTC)
Note vs. Notelist+Efn
It would really help if the documentation for {{note}} (and possibly also for {{ref label}} and {{note label}}) would not just state that "This is no longer the recommended method of citing sources." (and point to Wikipedia:Citing sources and Help:Footnotes), but if it would also mention {{Efn}} and/or {{Notelist}}. Editors - like me - who are looking for a way to add notes, either by entering Template:Note
in the address bar or by searching for 'Wikipedia note template' via Google, end up at {{note}}. --82.136.210.153 (talk) 14:22, 19 January 2015 (UTC)
Template-protected edit request on 1 January 2016
![]() | This edit request to Template:Note has been answered. Set the |answered= parameter to no to reactivate your request. |
Please add the following hatnote:
to avoid confusion for new users.
<<< SOME GADGET GEEK >>> (talk) 20:41, 1 January 2016 (UTC)
Done -- John of Reading (talk) 21:30, 1 January 2016 (UTC)
Dead end trail
Looking for the correct code to include an inline reference to a book, I began at: Wikipedia:Template messages (Sources, citations, references).
That then took me to: Wikipedia:Template messages/Sources of articles (Citations for footnotes and for linking).
From there I was directed here ... to an obsolete/deprecated piece of code! Obviously not helpful.
Would someone skilled in the art please sort out the links so they lead to CURRENT recommended code for generating inline references?
Thanks.
LookingGlass (talk) 10:41, 25 October 2016 (UTC)
- @LookingGlass: I have removed that section from Wikipedia:Template_messages/Sources of articles. -- John of Reading (talk) 06:37, 10 August 2017 (UTC)
Text error
The beginning of article has this error ([[#ref_{{{1}}}|^]]). 153.136.163.186 (talk) 00:34, 10 August 2017 (UTC)
- Which article? And I suggest you post at the Wikipedia:Help desk rather than here, since more helpers are watching for questions there. -- John of Reading (talk) 06:08, 10 August 2017 (UTC)
Template-protected edit request on 15 March 2019
![]() | This edit request to Template:Note has been answered. Set the |answered= parameter to no to reactivate your request. |
Please change
<noinclude>{{Distinguish|Template:Note2}}
to
<noinclude>{{Distinguish|Template:Note2|Template:A note}}
since {{A note}} is another similarly named template with a very different function. Thanks, --DannyS712 (talk) 22:47, 15 March 2019 (UTC)
Done – Jonesey95 (talk) 07:56, 16 March 2019 (UTC)
Capitalization
The capitalization of ref/Ref and note/Note is very inconsistent and sometimes misleading (I could explain if desired). Would it not be better to make this uniform? Clean Copytalk 15:27, 21 June 2019 (UTC)
Why talk I like this?
Grammatically, I suggest changing (in the backlink section):
"Complementary parameter" means a [[#endnote_{{{1}}}|[{{{2}}}]]]- may either forgo this parameter or must both have it.
to
"Complementary parameter" means a [[#endnote_{{{1}}}|[{{{2}}}]]]- may either forgo this parameter or both must have it.
Clean Copytalk 15:30, 21 June 2019 (UTC)
Refs vs Notes
I noticed that both references and notes look the same in superscript, such that [1] and [1] will show look identical on the same page yet refer to different things, one a ref, one a note. I'm not proposing a solution, but it does seem like something that could be improved, and if anyone HAS a solution, please propose it! Thmazing (talk) 07:20, 23 July 2020 (UTC)
Broken output in diff view and preview
This template outputs incorrect links in diff view and in preview. For example the second use of [1] in Novius cardinalis. Invasive Spices (talk) 3 July 2022 (UTC)
Suggested uses
I suggest that the documentation be updated to mention when this template should be used. Thus far, it is appropriately emphatic about when it should not be used, namely in article body text for citations. However, it remains the best option for templates with large blocks of content which require a separate footnote scheme, such as Template:Unicode chart Latin Extended-A. Daask (talk) 22:58, 28 March 2023 (UTC)
Complex
Why on earth do notes have to be connected to references? I am simply trying to offload relevant details for optional viewing. I am not a fan of the {{}} coding at all, it is unnecessarily complex and I have no idea how to use it. For god sake, I am not a coder. Someone tell me how to make simple notes so I can go back to work making a page. References are edited, it's silly to directly connect notes to them.FourLights (talk) 17:52, 9 December 2023 (UTC)
- @FourLights: It sounds like you're trying to do something you don't need to; this
{{ref}}
template is for special use cases (and borders on obsolescent). The basic form of a reference citation here looks like this:This is a claim in the article.<ref>This is where the details about the source go: author, title, date, publisher, and page[s], if applicable.</ref> This is another claim.<ref>Another source's details go here.</ref>
- We like it when you take the time to format the citation details in a citation template like
{{cite web}}
or{{cite book}}
. Example:Here's a fact in the article.<ref>{{cite book |first=Jane Q. |last=Public |title=The Unbearable Beings of Light |date=2023 |publisher=Weirdo Books |page=73}}</ref>
- But this additional formatting is not mandatory.
- Either way, to make the citations show up, there needs to be a section for them, typically called
==References==
, inside which is either{{reflist}}
or<references />
. - If you are trying to also do footnotes that are "discursive" and not reference citations, the simplest way to do that is with
{{efn}}
:This is a complicated claim.{{efn|Here is some clarifying text.}}<ref>This is the source citation for the claim.</ref>
- To make that work, create a section called
==Notes==
(above the==References==
section), and inside it put{{notelist}}
. - That's a crash course on the bare basics of footnotes. There are lot of more complicated citation styles and aspects, but if you are new to it all, just do your best, and someone else will hopefully clean up after any un-formatted or improperly or imprecisely formatted citations and notes. The main stuff to read are Help:Referencing for beginners, WP:Citing sources, and the documentation of the citation templates, e.g. at Template:Cite web and Template:Cite book. The examples near the top of those show the most-used parameters; there are many, many others for citing things like ISBNs and other IDs, doing muliple authors plus editors, specifying a chapter as well as main-work title, giving the access-date of a website, and so on. — SMcCandlish ☏ ¢ 😼 01:38, 11 December 2023 (UTC)
This doesn't work on mobile
Did it ever work on mobile? Some templates make footnotes with this template still. The links don't work on mobile though. Something is going wrong with the JavaScript popup. Making the links more straightforward will likely fix the issue, although these won't offer the footnote popup on mouseover for desktop, Rjjiii (talk) 01:35, 27 April 2024 (UTC)
- {{Ref label}} also doesn't work on mobile. I've edited the sandboxes and will make some testcases. Rjjiii (talk) 08:09, 28 April 2024 (UTC)
- Hi @Rjjiii:, I've just noticed this is why the template didn't popup when hovering over it on desktop. Isn't there a way for it to both work on mobile and popup on desktop? —El Millo (talk) 21:58, 21 February 2025 (UTC)
- @Facu-el Millo Do you mean that changing the class stops the popup on desktop? I did a test with {{ref/sandbox}} because I see where you reverted changing the class but that also didn't generate a popup when I hovered on Firefox or Chrome. Rjjiii (talk) 15:49, 22 February 2025 (UTC)
- @Rjjiii: See this example in my sandbox, with the template I commonly use that includes this template. The first instance is with the template as is, the second instance is with the sandbox version. You'll note how the first one doesn't popup while the second one does. —El Millo (talk) 17:18, 22 February 2025 (UTC)
- @Facu-el Millo Oh, I see what you mean. The popup display seems to vary based on the reference name. I don't know of a simple solution to add the popup for desktop without breaking the link on the mobile site. You might ask at WP:VPT. For some other templates that make popups without a ref tags ({{citeref}}, {{listref}}, {{ran}}, {{harv}}, {{harvnb}}), they prefix the footnote's HTML element id with
CITEREF
. Wikipedia automatically makes a popup when that's present. This method won't work here without also changing {{Cast indicator/note}} and all other templates that assume what id the {{ref}} will link to. Rjjiii (talk) 17:56, 22 February 2025 (UTC)- This may help or may add to the confusion -- I don't have time to refresh myself on the details right now. I long ago modified {{wikicite}} due to concerns similar to this. Read the template documentation there. Wtmitchell (talk) (earlier Boracay Bill) 05:47, 24 February 2025 (UTC)
- @Wtmitchell, looking at Template:Wikicite#Examples, I see the popup only when using {{sfnref}}, which prefixes the id with
CITEREF
. Rjjiii (talk) 15:15, 24 February 2025 (UTC)
- @Wtmitchell, looking at Template:Wikicite#Examples, I see the popup only when using {{sfnref}}, which prefixes the id with
- This may help or may add to the confusion -- I don't have time to refresh myself on the details right now. I long ago modified {{wikicite}} due to concerns similar to this. Read the template documentation there. Wtmitchell (talk) (earlier Boracay Bill) 05:47, 24 February 2025 (UTC)
- @Facu-el Millo Oh, I see what you mean. The popup display seems to vary based on the reference name. I don't know of a simple solution to add the popup for desktop without breaking the link on the mobile site. You might ask at WP:VPT. For some other templates that make popups without a ref tags ({{citeref}}, {{listref}}, {{ran}}, {{harv}}, {{harvnb}}), they prefix the footnote's HTML element id with
- @Rjjiii: See this example in my sandbox, with the template I commonly use that includes this template. The first instance is with the template as is, the second instance is with the sandbox version. You'll note how the first one doesn't popup while the second one does. —El Millo (talk) 17:18, 22 February 2025 (UTC)
- @Facu-el Millo Do you mean that changing the class stops the popup on desktop? I did a test with {{ref/sandbox}} because I see where you reverted changing the class but that also didn't generate a popup when I hovered on Firefox or Chrome. Rjjiii (talk) 15:49, 22 February 2025 (UTC)
- Hi @Rjjiii:, I've just noticed this is why the template didn't popup when hovering over it on desktop. Isn't there a way for it to both work on mobile and popup on desktop? —El Millo (talk) 21:58, 21 February 2025 (UTC)
Edit request 12 October 2024
![]() | This edit request has been answered. Set the |answered= parameter to no to reactivate your request. |
Description of suggested change: In code markup [[#ref_{{{1}}}|^]] the 1 needs a trailing pipe. It should appear as [[#ref_{{{1|}}}|^]] .
Diff:
− | + | CHANGED_TEXT |
RCSCott91 (talk) 21:37, 12 October 2024 (UTC)
- My apologies, I forgot to specify. On [[Template:Note]].
- RCSCott91 (talk) 21:45, 12 October 2024 (UTC)
- @RCSCott91, in what situation would one use {{note}} with no parameters? Rjjiii (talk) 22:06, 12 October 2024 (UTC)
- @Rjjiii I'm not certain someone would. EFN is more useful and has more options. Why? Is that the reason the template:note page has the conditional function parsed incorrectly? RCSCott91 (talk) 22:32, 12 October 2024 (UTC)
- @RCSCott91 What's the use case you imagine? It's unclear how this change is beneficial, Rjjiii (talk) 22:44, 12 October 2024 (UTC)
- @Rjjiii Mostly Ascetic. The line of source code is visible and looks sloppy. If you are trying to say that having the conditional in that state is required, is there a way to hide it from sight? RCSCott91 (talk) 23:22, 12 October 2024 (UTC)
- @RCSCott91: when used in an article, it will not be visible because the template needs
|1=
to work. For example, with a parameter: ^ Without: [[#ref_{{{1}}}|^]] It's fine if it looks bad with no parameter. This can actually serve as a warning to someone trying to use the template incorrectly that they've done it wrong. I've not done the change proposed, Rjjiii (talk) 00:48, 13 October 2024 (UTC)- Okay. Thank you for answering that question. Is there a way to hide the code that appears Template:note? Or is it just a required byproduct in order to have no parameter on the conditional?
- Genuinely curious.
- RCSCott91 (talk) 01:25, 13 October 2024 (UTC)
- @RCSCott91: when used in an article, it will not be visible because the template needs
- @Rjjiii Mostly Ascetic. The line of source code is visible and looks sloppy. If you are trying to say that having the conditional in that state is required, is there a way to hide it from sight? RCSCott91 (talk) 23:22, 12 October 2024 (UTC)
- @RCSCott91 What's the use case you imagine? It's unclear how this change is beneficial, Rjjiii (talk) 22:44, 12 October 2024 (UTC)
- @Rjjiii I'm not certain someone would. EFN is more useful and has more options. Why? Is that the reason the template:note page has the conditional function parsed incorrectly? RCSCott91 (talk) 22:32, 12 October 2024 (UTC)
- @RCSCott91, in what situation would one use {{note}} with no parameters? Rjjiii (talk) 22:06, 12 October 2024 (UTC)
Portal di Ensiklopedia Dunia