15-08-2021  (710 lectures) Categoria: Citer

Citer - Reftag - Wikipedia:Ref tools

The following tools can help you assemble a citation from limited information, with limited effort. These are tools with a variety of interfaces that provide a complete formatted reference based on a few initial details.




Citation tools

Reference markup and citation templates may be inserted manually or by use of tools:

  • Citation expander automatically adds missing data to citations using citation templates, and makes corrections to their formatting
  • ProveIt provides a graphical interface for editing, adding, and citing references. It may be enabled per the documentation
  • RefToolbar is part of the editing tool bar
  • SnipManager adds a ribbon interface to add citations
  • reFill
  • wikEd

User scripts

  • Folded references collapses the references of a page
  • Footnote popups Displays a small popup box of a footnote when you hover the cursor above a footnote link
  • HarvErrors shows errors when using Harvard templates
  • ListrefErrors shows errors when using {{listref}}
  • PleaseStand/References segregator places references into a separate edit box
  • Reference exporter
  • Reference Organizer presents all references in graphical user interface, where you can choose whether the references should be defined in the body of article or in the reference list template(s) (list-defined format). You can also sort the references in various ways (and optionally keep the sort order), and rename the references.
  • RefTooltip sets the tooltip for references to the text of the reference.
  • ReviewSourceCheck (different versions for different preferences) flags 16 types of errors in the references and/or notes, when using Harv templates.
  • Sources Formats names of newspapers within citation templates
  • User:Anomie/ajaxpreview.js adds a preview button that will show references when editing a section
  • User:BrandonXLF/Autoref replaces the reference button in the editing toolbar in the 2010 wikitext editor with a button that allows the use of Citoid to insert an auto generated reference
  • User:BrandonXLF/Citoid generates a reference using the Citoid server. Designed for being used inside user scripts.
  • user:js/ajaxPreview adds a preview button that will show references when editing a section
  • User:Salix alba/Citoid Generates citation templates using the Citoid server. Standalone javascript which can be used outside of Visual Editor.

Beta and obsolete




The following bot-filled templates are deprecated.


These templates can be used in documentation:

Typing aids




"About BibGuru". Bibguru. Retrieved 2021-03-09.


{T} Wikipedia citation tool for Google Books

1: Find a book you want to cite on Google Books. Copy the URL of the book from the address bar, and paste it below. Then press "Load". Example book.

Example book (copy and paste above): http://books.google.com/books?id=aqmAc2fFsAUC&pg;=PA90

Try also: Wikipedia citation tool for DOI or The New York Times.
Also available from a user script: refToolPlus.

Made by Apoc2400. Send feedback to apoc2400 (at) gmail.com or my talk page. Using some html and js from refToolbar by Mr.Z-man. Bookmarklet for direct access from Google Books. Source code in Python.


Dave's Template Filler (for lack of a better name) is a tool for generating template markup quickly and simply. It uses identifiers such as ISBNs and PubMed IDs to fill templates such as {{cite book}} and {{cite journal}}. (If you haven't added references on Wikipedia before, see also Wikipedia:Footnotes#How_to_use for additional context.)

The tool is available here: citation-template-filling.


Supported templates

OptionTemplateNotesExample templateRendered citation
"DrugBank ID" {{Drugbox}} Get DrugBank ID from http://www.drugbank.ca/
"HGNC ID" {{Protein}} Get HGNC ID from http://www.genenames.org/
"ISBN" {{cite book}} Dashes not needed. Remember to fill in the "pages=" field manually. (If you have a URL from a Google Books search result, an alternative is available at http://reftag.appspot.com/ .) {{cite book | author = Hall, John E.; Guyton, Arthur C. | title = Textbook of medical physiology | publisher = W.B. Saunders | location = Philadelphia | year = 1996 | pages = | isbn = 0-7216-5944-6 | oclc = | doi = | accessdate = }} Hall, John E.; Guyton, Arthur C. (1996). Textbook of medical physiology. Philadelphia: W.B. Saunders. ISBN 0-7216-5944-6.
"PubMed ID" {{cite journal}} Get PMID from http://www.ncbi.nlm.nih.gov/pubmed/ {{cite journal | author = Mendozo Hernández P | title = [Clinical diagnosis and therapy. Intravenous and oral rehydration] | language = Spanish; Castilian | journal = Bol Oficina Sanit Panam | volume = 78 | issue = 4 | pages = 307–17 | year = 1975 | month = April | pmid = 123455 | doi = | url = }} Mendozo Hernández P (1975). "[Clinical diagnosis and therapy. Intravenous and oral rehydration]". Bol Oficina Sanit Panam (in Spanish; Castilian). 78 (4): 307–17. PMID 123455. Unknown parameter |month= ignored (help)
"PubMed Central ID" {{cite journal}} {{cite journal | author = Dworkin J, Losick R | title = Does RNA polymerase help drive chromosome segregation in bacteria? | journal = Proc. Natl. Acad. Sci. U.S.A. | volume = 99 | issue = 22 | pages = 14089–94 | year = 2002 | month = October | pmid = 12384568 | pmc = 137841 | doi = 10.1073/pnas.182539899 | url = }} Dworkin J, Losick R (2002). "Does RNA polymerase help drive chromosome segregation in bacteria?". Proc. Natl. Acad. Sci. U.S.A. 99 (22): 14089–94. doi:10.1073/pnas.182539899. PMC 137841. PMID 12384568. Unknown parameter |month= ignored (help)
"PubChem ID" {{Chembox}} Get CID from http://pubchem.ncbi.nlm.nih.gov/ {{chembox | ImageFile = | ImageSize = | IUPACName = | OtherNames = | Section1 = {{Chembox Identifiers | CASNo= | PubChem=2244 | SMILES=CC(=O)OC1=CC=CC=C1C(=O)O }} | Section2 = {{Chembox Properties | Formula=C9H8O4 | MolarMass=180.15742 | Appearance= | Density= | MeltingPt= | BoilingPt= | Solubility= }} | Section3 = {{Chembox Hazards | MainHazards= | FlashPt= | Autoignition= }} }}
Diberri/Template filler
3D model (JSmol)
Molar mass 180.15742
Except where otherwise noted, data are given for materials in their standard state (at 25 °C [77 °F], 100 kPa).
Infobox references
"URL" {{cite web}} Usually should turn on "Add access date" {{cite web | url = http://en.wikipedia.org | title = Wikipedia, the free encyclopedia | format = | work = | accessdate = 2013-06-01}} "Wikipedia, the free encyclopedia". Retrieved 2013-06-01.


There are several ways to use the template filler.

Web-based tool

The web-based tool is the most common way to access the template filler:

Its usage is mostly self-explanatory. Options may need further explanation. (See Options below.)

Firefox keywords

Firefox allows keyword-based access to the template filler. From the template filler page, select the desired identifier (eg, PubMed ID, ISBN, etc.), right-click (or control-click) on the search field, and select "Add a keyword for this search". Enter a name, a keyword (eg, "pmid"), and press enter. Type keyword id into Firefox's location bar, where keyword is the keyword you just entered (eg, "pmid") and id is a value for this identifier (eg, "123455"). A complete example would be pmid 123455, which would load this page.


Bob Badgett maintains a few bookmarklets for making the template filler even more accessible. These are available at his website, Diberri bookmarklets.


Screenshot of the Greasemonkey user script in action.

If you have Firefox's Greasemonkey extension, you can use these user scripts to automatically create links to PubMed and Google Book citations:

Perl module

The template filler can be called programatically from Perl using WWW::Wikipedia::TemplateFiller, a module available from CPAN.

XML output

The web-based template filler can generate XML to make for easier programmatic access using Ajax or other frameworks. This can be accomplished by adding "&format=xml" to the end of the URL, as in:



The template filler recognizes a number of options that customize its output:

Fill vertically
Fills the template vertically as opposed to horizontally.
Show extended fields
Lists "extended" fields in addition to the standard fields of that template. The definition of "extended" varies based on template.
Pad parameter names and values
Adds a space before and after each pipe character ("|"), possibly improving readability
Add access date (if relevant)
If the current template recognizes an access_date parameter, then fill it with the current date. Not recommended when citing journals.
Add ref tag
Add  to the output.
Add URL (if available)
If the current template recognizes a url parameter, then fill it with an appropriate URL.
For {{cite journal}} if the template filler finds a PubMedCentral PMC or a URL for the journal article, the article title is linked. If both, the article title is linked to the URL value and the PMC value is shown. Similarly for {{cite book}} any url parameter links on the title field.
Don't strip trailing period from article title
(Only applies to PubMed and PubMedCentral sources.) PubMed and PubMedCentral articles nearly always end with punctuation, and {{cite journal}} adds a period to the end of the title parameter by default. To omit a duplicate period, the template filler by default strips trailing periods from the article title. This option disables the routine stripping of trailing periods.
Don't use et al for author list
(Only applies to PubMed and PubMedCentral sources.) PubMed and PubMedCentral articles may have many authors. When this number exceeds six (arbitrarily), the template filler uses the first three authors and appends et al to the author list. This option disables this feature so that et al is never used.
Link journal title
(Only applies to PubMed and PubMedCentral sources.) Links the journal article in the template markup. Note that this will link the abbreviation of the journal, so it is possible that the link will be red even if an article for the journal exists.

How to find a PMID

Despite its name, the PubMed database indexes papers from many fields that are only indirectly associated with medicine. If you can find the PMID associated with an article, generating a citation becomes very easy. However, it can be difficult sometimes to find a journal article in Pubmed. Here are some tips that may help:

  • Use Google search instead, and append "PMID"
    • If you're searching for it, other people have searched for it, and some of them may have found it. If a paper is well-known (for example, PMID 13054692), you can take advantage of the fact that other people are probably linking to it as well, and thus the paper you want may float to the top. Note the results of the following search: http://www.google.com/search?q=watson+crick+pmid
    • If you know the title: http://www.google.com/search?q=pmid+%22Molecular+structure+of+nucleic+acids%22
    • These approaches don't always work. Sometimes the title is short, and the names of the authors are common words. Or you might only have a partial citation. Some citations only list the journal, author, and indexing information. In this case, try searching on the author's name, the year, and the first page. (Don't search on the last page. Some citations might list pages "737-738", and others might list pages "737-8". Adding the 738 could reduce your chances of finding the right citation.)
    • If there are many authors, try using the last name of the first three or four authors. Don't use middle initials (there is variation in how these are rendered.) Skip authors with a diacritic.
    • Don't use the journal name unless you have no other choice (these abbreviations vary greatly)
    • You can also try Google Book Search and Google Scholar (though backlinks don't help as much with these tools.) Even if you don't have free full access to the resource in question, you can sometimes get information to help you refine your search.
  • Use PubMed, but with search parameters


Please direct questions, concerns, and bug reports over to User talk:Diberri/Template filler.

versió per imprimir

Comentaris publicats

    Afegeix-hi un comentari:

    Nom a mostrar:
    Genera una nova imatge
    IntroduĂŻu el codi de seguretat
    Accepto les condicions d'ús següents:

    Per a participar en els comentaris l'usuari es compromet a complir i acceptar les següents normes bàsiques de conducta:

    • Respectar les opinions de la resta dels participants al fòrum, tot i no compartir-les necessàriament.
    • Abstenir-se d'insultar o utilitzar un llenguatge ofensiu, racista, violent o xenòfob, i no tenir cap conducta contrària a la legislació vigent i a l'ordre públic.
    • No enviar cap contingut amb copyright sense el permís del propietari. Si es considera oportú facilitar continguts d'internet amb copyright, cal escriure la URL completa perquè els altres usuaris puguin enllaçar-hi i descarregar-se els continguts des de la pàgina propietària.
    • Publicitat: No es permet enviar continguts promocionals i/o publicitaris.