Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Help:Converting between references formats

From Wikipedia, the free encyclopedia
This help page is ahow-to guide.
It explains concepts or processes used by the Wikipedia community. It is not one ofWikipedia's policies or guidelines, and may reflect varying levels ofconsensus.

This page describes procedures to convert the references fromFootnotes defined in the body of the article toList-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 theReferences segregator tool.

Converting from the inline to the list-defined format

[edit]
  • TheReferences segregator tool can automatically convert all references to the list-defined format.
  • Use aregular expression search-and-replace operation to replace uses of<ref> tags with the{{r}} template. To do that, search for:<ref name="(.*?)"/>, and replace it with{{r\|"$1"}}, while checking the "Treat search string as a regular expression" checkbox.

Converting from the list-defined to the inline format

[edit]
  1. Use aregular 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 theReferences 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.
Policies and guidelines
General advice
Citing sources
Inline citations
Help for beginners
Advanced help
Footnote templates
Find references
Citation tools
(External links)
Retrieved from "https://en.wikipedia.org/w/index.php?title=Help:Converting_between_references_formats&oldid=1297217116"
Category:

[8]ページ先頭

©2009-2025 Movatter.jp