Jump to content

Wikipedia talk:RefToolbar/2.0: Difference between revisions

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Content deleted Content added
Toliño (talk | contribs)
Ivan530 (talk | contribs)
Line 65: Line 65:
::That would be great. I still haven't had any luck reproducing it myself. [[User:Kaldari|Kaldari]] ([[User talk:Kaldari|talk]]) 18:57, 23 May 2012 (UTC)
::That would be great. I still haven't had any luck reproducing it myself. [[User:Kaldari|Kaldari]] ([[User talk:Kaldari|talk]]) 18:57, 23 May 2012 (UTC)
:::Really frustrating. Last night it was there. This morning it was gone. Go back just now to the same article and it's there again. I've done nothing to my preferences, script, Firefox, etc during that time period except cleared my cache occasionally. [[User:Dougweller|Dougweller]] ([[User talk:Dougweller|talk]]) 10:56, 8 June 2012 (UTC)
:::Really frustrating. Last night it was there. This morning it was gone. Go back just now to the same article and it's there again. I've done nothing to my preferences, script, Firefox, etc during that time period except cleared my cache occasionally. [[User:Dougweller|Dougweller]] ([[User talk:Dougweller|talk]]) 10:56, 8 June 2012 (UTC)
::::Me too! reload, clear chace, and still not showed <small><span style="border:1px solid black;">[[User:Ivan530|<font style="color:white;background:red;">'''Ivan530'''</font>]][[User_talk:Ivan530|''Talk'']]</span> </small> 11:20, 7 July 2012 (UTC)


== Please modify RefToolbar so that &lt;Esc&gt; doesn't close dialog boxes ==
== Please modify RefToolbar so that &lt;Esc&gt; doesn't close dialog boxes ==

Revision as of 11:20, 7 July 2012

WikiProject iconWikipedia Help Project‑class
WikiProject iconThis page is within the scope of the Wikipedia Help Project, a collaborative effort to improve Wikipedia's help documentation for readers and contributors. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks. To browse help related resources see the Help Menu or Help Directory. Or ask for help on your talk page and a volunteer will visit you there.
ProjectThis page does not require a rating on the project's quality scale.

default values for fields in citeTemplate?

I just installed this as a gadget on my own MediaWiki installation. I added a new template for a specific news site in the config using "new citeTemplate(..." - it calls "cite news" but has a couple of things removed from the basic fields. I wanted to have it fill in a default value for the "newspaper" field, but there didn't seem to be a mechanism for this.

Just for fun, I made a couple of simple patches to my local copy of the refToolbar_2.0/base.js script. They check for a property named "default" of the field objects passed to "makeFormInner()", and add a 'value=' attribute to the <input> tag created. This lets you do something like

{"field": "newspaper", "default":"CBC.ca"},

as part of creating fields in a citeTemplate() object. It seems to work.

I'm new to the whole MediaWiki editing/RefToolbar world, and I suspect there is some good reason this sort of capability doesn't exist already in citeTemplate? I guess the other option would be to create a cloned "cite news" wiki template to pass to citeTemplate and modify that to fill in a default? NorthernRaven (talk) 21:20, 22 March 2012 (UTC)[reply]

Wikimedia Gadget installation

I am unable to install RefToolbar2.0 as a gadget on my WikiMedia 1.18.2 following the http://en.wikipedia.org/wiki/Wikipedia:RefToolbar_2.0#Porting_to_another_wiki guidelines. The cite tab doesn't show up during Editing. Am I missing some scripts Atishayjain25 (talk) 19:10, 25 March 2012 (UTC)[reply]

Where did you port it? We've just ported it to Norwegian Wikipedia and it worked fine (after we discovered that we had to copy MediaWiki:RefToolbarMessages-en.js as well. The docs didn't mention that a few days ago, but I added it.) – Danmichaelo (talk) 16:03, 26 March 2012 (UTC)[reply]
I just added it to my own little MediaWiki (1.18.1) installation - I'm not sure if I did it right, but it seems to be working as a gadget. You should check the MediaWiki:Gadget-refToolbar.js bit - I copied this from Wikipedia and it imports scripts from Wikipedia user space (like "User:Mr.Z-man/refToolbar 2.0.js"). Since those doesn't exist on my own wiki, I had to copy those scripts and change the "importScript" calls to refer to my local copies. The other alternative would seem to be to change the calls to importScriptURI and load the live versions from Wikipedia. NorthernRaven (talk) 18:43, 26 March 2012 (UTC)[reply]

I am having the same problem. I have followed the steps but the Cite option does not appear among the options of the editing toolbar. Can you halp me, please? --Toliño (talk) 09:32, 19 June 2012 (UTC)[reply]

That porting code was ancient. I've updated it to something that might actually work. Lemme know if you have any luck with it. Cheers! Kaldari (talk) 06:50, 27 June 2012 (UTC)[reply]
It now works only if you force the page refreshing by clicking Ctrl+F5. Something is still wrong, I guess. --Toliño (talk) 15:20, 1 July 2012 (UTC)[reply]

Preferences default for cite templates

Is it possible to have a default selection under Preferences, for American style or European style for the access date inserted with any citation template on the Edit toolbar? Currently, "Insert Date" brings up only the European style, which is inconsistent if the article text contains American style dates. If this is the wrong place to put this request, please provide a link to the appropriate place. Thank you. Maile66 (talk) 12:24, 22 April 2012 (UTC)[reply]

ISBN and URL no-go on RefToolbar 1.0

The ISBN and URL lookup is not working again (still?) on RefToolbar 1.0 (Wikipedia talk:RefToolbar 1.0 might be stale?) I prefer RefToolbar 1.0 and I use ISBNs a lot. -- Alan Liefting (talk - contribs) 02:07, 4 May 2012 (UTC)[reply]

Unfortunately, I don't think anyone is still maintaining the old RefToolbar 1.0 code so it may be flakey. Kaldari (talk) 20:47, 11 May 2012 (UTC)[reply]

Cite button

The "Cite" option often disappears from the window while editing. I can't figure out the issue. Any help will be much appreciated! Vensatry (Ping me) 16:34, 11 May 2012 (UTC)[reply]

Please state what version of the editing interface you are using. See Wikipedia:RefToolbar 2.0#Troubleshooting. Also, what exactly do you mean by it disappearing? Do you mean that it is displayed for a certain amount of time and then disappears? How long does it typically take to disappear? Kaldari (talk) 19:01, 11 May 2012 (UTC)[reply]
It's not working for me either. When I uninstalled the .js script from my preferences, I have "Show edit toolbar" on and "Enable enhanced editing toolbar" on, (the 3rd line of the photo) and the "Cite button on right" does not appear. I thought that should work w/o having to install special .js script on my preferences pg. --Funandtrvl (talk) 20:24, 11 May 2012 (UTC)[reply]
That is correct, it should work without you having to install anything. I'll try to do some troubleshooting on it this weekend if I have some time. Kaldari (talk) 20:46, 11 May 2012 (UTC)[reply]
I'm currently using RefToolbar 2.0. Disappearing in the sense, it's missing many a times when I edit pages. Vensatry (Ping me) 07:20, 12 May 2012 (UTC)[reply]
Missing most of the time for me as well (also RefToolbar 2.0 - normally at the right)- compleley clearing the cache made it briefly reappear, but one use and a preview and it was gone again - is this problem related to the latest Mediawiki update shenannegans?Nigel Ish (talk) 16:16, 12 May 2012 (UTC)[reply]
I noticed that the "Cite" button appears when I edit a section in the WP/Category/Template/User namespaces, but not the main article namespace. --Funandtrvl (talk) 23:44, 13 May 2012 (UTC)[reply]
The cite button appears when editing a talk page but not on article pages. Curious.Nigel Ish (talk) 16:35, 14 May 2012 (UTC)[reply]
The cite button seems to work for RefToolbar 2.0 in all the namespaces, except the main article space. Something tells me that is where the problem lies, but I'm not familiar enough with the coding to be able to find the problem. Still waiting to find someone who can fix this. --Funandtrvl (talk) 16:49, 14 May 2012 (UTC)[reply]

Cite not shown on the toolbar on top of the editbox

Can anyone explain why the cite option does not appear on the toolbar on top of the editbox as shown in the screenshot here. Although it should reappear after a reload but as said by some users even a reload is not helpful. This issue came up after a discussion here. Some light on this will be very much appreciated thanks-- ÐℬigXЯaɣ 06:02, 14 May 2012 (UTC)[reply]

I also experienced the same problem while I was citing Ahmedabad. Though with me, a reload worked and it appeared again after F5. TheSpecialUserTalkContributions 07:00, 14 May 2012 (UTC)[reply]
redirection to this forum
The screenshot shows Wikipedia:RefToolbar 2.0 (which is a mixture of buttons and drop-down menus), not Wikipedia:RefToolbar 1.0 (which is 23 buttons, no menus). --Redrose64 (talk) 15:22, 15 May 2012 (UTC)[reply]
Please see: Wikipedia talk:RefToolbar 2.0#Cite button for further info. --Funandtrvl (talk) 17:17, 15 May 2012 (UTC)[reply]

I started looking into this yesterday, but I wasn't able to reproduce the problem. Could you guys help me to troubleshoot it? Specifically, let me know what skin (monobook, vector, etc.) you are using and what browser. Also, please temporarily disable all of your gadgets and user scipts to make sure it is not a conflict with another tool. Thanks! Kaldari (talk) 14:39, 16 May 2012 (UTC)[reply]

When I set my preferences back to default, and remove all css and js code from Vector, then it works. I'm using IE9. I had the "hlist" code on my .js, I'll have to try adding back things to my gadgets and .js vector and let you know what triggers the problem. --Funandtrvl (talk) 20:22, 16 May 2012 (UTC)[reply]
That would be great. I still haven't had any luck reproducing it myself. Kaldari (talk) 18:57, 23 May 2012 (UTC)[reply]
Really frustrating. Last night it was there. This morning it was gone. Go back just now to the same article and it's there again. I've done nothing to my preferences, script, Firefox, etc during that time period except cleared my cache occasionally. Dougweller (talk) 10:56, 8 June 2012 (UTC)[reply]
Me too! reload, clear chace, and still not showed Ivan530Talk 11:20, 7 July 2012 (UTC)[reply]

Please modify RefToolbar so that <Esc> doesn't close dialog boxes

Thank you for helping to maintain RefToolbar.

Request: Please modify RefToolbar so that the <Esc> key doesn't close dialog boxes.

Rationale: When using the Vimperator or Pentadactyl Firefox extensions, while you're typing in a text inputbox and want to open a new Firefox tab, the way to do it is by entering <Esc>, <t>, the new tab's URL, then <Enter>. When a RefToolbar insert-citation dialog box is open, that <Esc> keypress also closes the dialog box and makes you lose everything you've typed into the dialog box. This data-loss issue is very annoying. If <Esc> didn't close RefToolbar dialogs, the issue would disappear.

By the way, RefToolbar is the only web application I know of where pressing <Esc> causes data you've entered to be lost forever.

Cheers, Unforgettableid (talk) 00:19, 15 May 2012 (UTC)[reply]

cite features lost from 1.0->2.0

As near as I can tell, looking at RefToolbar 2.0b vs. 1.0, 2.0 drops a pair of really convenient short cuts--filling in many fields for most nytimes.com URLs (for cite news) and from Google Books URLs (for cite books). Do I have that right, and is that something that could/should be fixed? --joe deckertalk to me 05:46, 23 May 2012 (UTC)[reply]

Ref placement

On RefToolbar 2.0a, when I try to cite something, it places it at the beginning of the section I was working on. How can I fix this to get it in the right place? Brambleberry of RiverClan ChatWatch 23:23, 29 June 2012 (UTC)[reply]