Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  



























Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Converting from the inline to the list-defined format  





2 Converting from the list-defined to the inline format  














Help:Converting between references formats







Add links
 









Help page
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 


















From Wikipedia, the free encyclopedia
 


This page describes procedures to convert the references from Footnotes defined in the body of the article to List-defined references where the references are defined in the reference list.

Such a conversion may be necessary in order to move text with many references from an article that uses the list-defined format to another article, or may be used to format all references in an article so that they all conform to the same format. It requires installation of the References segregator tool.

Converting from the inline to the list-defined format[edit]

Converting from the list-defined to the inline format[edit]

  1. Use a regular expression search and replace operation to replace uses of the {{r}} template with <ref> tags. To do that, search for: \{\{r\|([^}]+)\}\}, and replace it with <ref name="$1" />, while checking the "Treat search string as a regular expression" checkbox.
  2. Copy and remove (cut) the entire {{reflist}} template with the list of references.
  3. Install the References segregator tool and click the "Segregate refs for editing" button.
  4. Remove all the empty <ref> tags from the lower text box.
  5. Paste the list of references into the lower text box (after its existing contents).
  6. Save the page, which merges the citation templates from the lower text box into the upper text box and removes the unused footnotes in the process.

Retrieved from "https://en.wikipedia.org/w/index.php?title=Help:Converting_between_references_formats&oldid=1197543135"

Categories: 
Wikipedia how-to
Inactive project pages
 



This page was last edited on 20 January 2024, at 23:57 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki