Help:Converting between references formats: Difference between revisions
Appearance
Content deleted Content added
Error, see talk. |
fnote |
||
Line 1: | Line 1: | ||
{{Wikipedia how to|HELP:FNCONV}} |
{{Wikipedia how to|HELP:FNCONV}} |
||
This page describes procedures to convert the references from |
This page describes procedures to convert the references from {{fnote}} defined in the body of the the article to {{ldr}} 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 [[User:PleaseStand/References segregator|References segregator]] tool. |
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. |
Revision as of 16:52, 28 March 2012
This help page is a how-to guide. It explains concepts or processes used by the Wikipedia community. It is not one of Wikipedia's policies or guidelines, and may reflect varying levels of consensus. |
This page describes procedures to convert the references from Footnotes defined in the body of the 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
The References segregator tool can automatically convert all references to the list-defined format.
Converting from the list-defined to the inline format
- Use a regular expression "search and replace" operation to replace uses of the {{r}} template with plain "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. - Copy and remove (cut) the entire "reflist" template with the list of references.
- Install the References segregator tool and click the "Segregate refs for editing" button.
- Remove all the empty "ref" tags from the lower text box.
- Paste the list of references into the lower text box (after its existing contents).
- 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.