<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mindpowe.red/wiki/index.php?action=history&amp;feed=atom&amp;title=Help%3AConverting_between_references_formats</id>
	<title>Help:Converting between references formats - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mindpowe.red/wiki/index.php?action=history&amp;feed=atom&amp;title=Help%3AConverting_between_references_formats"/>
	<link rel="alternate" type="text/html" href="https://mindpowe.red/wiki/index.php?title=Help:Converting_between_references_formats&amp;action=history"/>
	<updated>2026-04-05T21:54:03Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://mindpowe.red/wiki/index.php?title=Help:Converting_between_references_formats&amp;diff=1294&amp;oldid=prev</id>
		<title>imported&gt;Pythoncoder: sc</title>
		<link rel="alternate" type="text/html" href="https://mindpowe.red/wiki/index.php?title=Help:Converting_between_references_formats&amp;diff=1294&amp;oldid=prev"/>
		<updated>2018-05-30T20:50:29Z</updated>

		<summary type="html">&lt;p&gt;sc&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Wikipedia how to|H:FNCONV}}&lt;br /&gt;
&lt;br /&gt;
This page describes procedures to convert the references from {{fnote}} defined in the body of the article to {{ldr}} where the references are defined in the reference list.&lt;br /&gt;
&lt;br /&gt;
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 [[User:PleaseStand/References segregator|References segregator]] tool.&lt;br /&gt;
&lt;br /&gt;
==Converting from the inline to the list-defined format==&lt;br /&gt;
* The [[User:PleaseStand/References segregator|References segregator]] tool can automatically convert all references to the list-defined format.&lt;br /&gt;
* Use a [[regular expression]] |search and replace operation to replace uses of {{tag|ref|o}} tags with the {{tl|r}} template. To do that, search for: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;ref name=&amp;quot;(.*?)&amp;quot;/&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, and replace it with &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{r\|&amp;quot;$1&amp;quot;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, while checking the &amp;quot;Treat search string as a regular expression&amp;quot; checkbox.&lt;br /&gt;
&lt;br /&gt;
==Converting from the list-defined to the inline format==&lt;br /&gt;
# Use a [[regular expression]] search and replace operation to replace uses of the {{tl|r}} template with {{tag|ref|o}} tags. To do that, search for: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;\{\{r\|([^}]+)\}\}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, and replace it with {{tag|ref|s|params=name=&amp;quot;$1&amp;quot;}}, while checking the &amp;quot;Treat search string as a regular expression&amp;quot; checkbox.&lt;br /&gt;
# Copy and remove (cut) the entire {{tl|reflist}} template with the list of references.&lt;br /&gt;
# Install the [[User:PleaseStand/References segregator|References segregator]] tool and click the &amp;quot;Segregate refs for editing&amp;quot; button.&lt;br /&gt;
# Remove all the empty {{tag|ref|o}} tags from the lower text box.&lt;br /&gt;
# Paste the list of references into the lower text box (after its existing contents).&lt;br /&gt;
# 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.&lt;br /&gt;
&lt;br /&gt;
{{Wikipedia referencing}}&lt;/div&gt;</summary>
		<author><name>imported&gt;Pythoncoder</name></author>
		
	</entry>
</feed>