Jump to content

Wikipedia:Citation expander: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Tweak
ce
 
(37 intermediate revisions by 12 users not shown)
Line 1: Line 1:
{|class="wikitable" style="float:right; width:350px; margin:1em 1em 1em 1em;"
You can enable this gadget in [[Special:Preferences#mw-prefsection-gadgets|the gadgets tab of your preferences panel]] - go to the "Editing" section of that tab, and check the box labelled ''"Citation expander: automatically expand and format citations using Citation bot"''.
|-
![[File:Citation expander button.png|325px|frameless|right]]
|-
|This adds a button (the exact appearance may differ) to trigger [[User:Citation bot|Citation bot]] from the edit window! This button will work even if the bot is blocked.
|-
![[File:Citations-alt.png|175px|frameless|center]]
|-
| It also adds an "Expand citations" link in your toolbar!<p>These are only two of the [[User:Citation bot/use#How to activate Citation bot|many ways to activate the bot]].
|-
|}
You can enable the '''Citation expander''' gadget in [[Special:Preferences#mw-prefsection-gadgets|the gadgets tab of your preferences panel]] in two easy steps
#Go to the "Editing" section of that tab
#Check the box labelled ''"Citation expander: automatically expand and format citations using Citation bot"''
The gadget will add missing data to citations using citation templates, and makes corrections to their formatting using the logic of [[User:Citation bot|Citation bot]]. The tool is activated on whichever page you are viewing, via one of two methods:


# If you are editing a page, a {{button|{{highlight|{{color|white|✔}}|black}} Citations}} button underneath the edit box will expand any citations within the edit box. This means that:
If enabled, it will be listed in the "Tools" section of the [[Help:Navigation#Sidebar (left)|left sidebar]] as '''Expand citations'''. A direct link to the tool is {{plain link|https://tools.wmflabs.org/citations/|https://tools.wmflabs.org/citations/}}.
#* You can check that existing citations have been expanded accurately and to your liking, allowing you to make further changes to the article before saving, and
#* You can type a partial citation into an article, such as
#** {{nowrap|1=<code><nowiki>{{cite journal |doi=10.1000/ABC123}}</nowiki></code>}}
#** {{nowrap|1=<code><nowiki>{{cite book |isbn=978-1-23-456789-0}}</nowiki></code>}}
#** {{nowrap|1=<code><nowiki>{{cite web |url=https://example.com}}</nowiki></code>}}
#:then have the bot expand this to a complete citation (sometimes only partially complete) before you save the page.
# If you are viewing the page, you can click on the "Expand citations" link in the "tool" section of your [[Help:Navigation#Sidebar (left)|left sidebar]] to expand and format any citations in the page.


For more information about Citation bot, see [[User:Citation bot|its user page]] or [[User:Citation bot/use|the user guide]]. To report bugs and suggestions to the bot, go to [[User talk:Citation bot|its talk page]].
This gadget automatically adds missing data to citations using citation templates, and makes corrections to their formatting using the "[[User:Citation bot|Citation bot]]" tool. The tool is activated on whichever page you are viewing, via one of two methods:


For information about the gadget, see its [[MediaWiki:Gadget-citations.js|source code]]. To report bugs and suggestions to the script, go to [[MediaWiki talk:Gadget-citations.js|its talk page]].
* If you are viewing the page, you can click on a link in the "Toolbox" section to expand and format any citations in the page.
* If you are editing a page, a button underneath the edit box will expand any citations within the edit box. This means that:
** You can check that the citations have been expanded to your liking (and make any further changes) before an article is modified, and
** You can type a partial citation into an article (e.g. <code><nowiki>{{cite journal|pmid=12345}}</nowiki></code>{{bots|deny=Citation bot}}), then have the bot expand this to a complete citation before you save the page.


When used on a "new section", the gadget's edit summary is added to the section heading - you will need to fix that by hand.
For more information about the functions performed by Citation bot, see [[User:Citation bot|its user page]] or [[User:Citation_bot/use|its directions]]. To report bugs see [[User_talk:Citation_bot|its talk page]].


Generally, NoScript will break this.
For information about the gadget's script, see its [[MediaWiki:Gadget-citations.js|source code]]. To report bugs or discuss the script, see its [[MediaWiki_talk:Gadget-citations.js|talk page]].

==See also==
*[[Wikipedia:Wikipedia Signpost/2022-08-01/Tips and tricks]] – a small guide to make the most of the Citation expander gadget published in ''[[WP:SIGNPOST|The Signpost]]''.

[[Category:Wikipedia citation/link tools]]
[[Category:Wikipedia scripts| Citation expander]]

Latest revision as of 20:44, 19 July 2023

This adds a button (the exact appearance may differ) to trigger Citation bot from the edit window! This button will work even if the bot is blocked.
It also adds an "Expand citations" link in your toolbar!

These are only two of the many ways to activate the bot.

You can enable the Citation expander gadget in the gadgets tab of your preferences panel in two easy steps

  1. Go to the "Editing" section of that tab
  2. Check the box labelled "Citation expander: automatically expand and format citations using Citation bot"

The gadget will add missing data to citations using citation templates, and makes corrections to their formatting using the logic of Citation bot. The tool is activated on whichever page you are viewing, via one of two methods:

  1. If you are editing a page, a Citations button underneath the edit box will expand any citations within the edit box. This means that:
    • You can check that existing citations have been expanded accurately and to your liking, allowing you to make further changes to the article before saving, and
    • You can type a partial citation into an article, such as
      • {{cite journal |doi=10.1000/ABC123}}
      • {{cite book |isbn=978-1-23-456789-0}}
      • {{cite web |url=https://example.com}}
    then have the bot expand this to a complete citation (sometimes only partially complete) before you save the page.
  2. If you are viewing the page, you can click on the "Expand citations" link in the "tool" section of your left sidebar to expand and format any citations in the page.

For more information about Citation bot, see its user page or the user guide. To report bugs and suggestions to the bot, go to its talk page.

For information about the gadget, see its source code. To report bugs and suggestions to the script, go to its talk page.

When used on a "new section", the gadget's edit summary is added to the section heading - you will need to fix that by hand.

Generally, NoScript will break this.

See also

[edit]