Jump to content

User:Dr. Blofeld/Useful stuff

From Wikipedia, the free encyclopedia

User:Dr. Blofeld/nav

Clean up

[edit]

Core articles

[edit]

Missing encyclopedia articles and needed work

[edit]

List formatting

[edit]
  • $ - add something on end of lines
  • \s*$ replaced with nothingness (this removes any spaces/tabs at the end of the lines)
  • \t replaced with - (this converts tabs, which are now only there b/w words, to dashes)
The "Treat search string as a regular expression" option should be checked always.
To add # at the starts, you'd do search for ^ and replace with #.
You may find this cheatsheet useful if you want to learn regex.
A better # insertion regex might be
Search for: ([\r\n])([^#\{=\r\n]) – find a newline followed by anything but #, {, =, or another newline
Replace with: $1#$2 – the found newline followed by a new # followed by the character that wasn't in the search exclusion set
For hyphen replacement:
Search for: [\t ]+\-[\t ]+ – find a hyphen between one or more whitespace characters; done this way so that the newline pair (\n\r) aren't included in the match
Replace with:  – <space><ndash><space>
[edit]

Texts to be transferred from Wikisource Example: Robert Thew, Richard Dacre Archer-Hind (supp)

<ref name="ODNB"> {{citation |last= |first= |title= |work=Oxford Dictionary of National Biography |edition=online |year=2005 |url=http://www.oxforddnb.com/view/article/27933 |publisher=Oxford University Press |accessdate=}} {{ODNBsub}}

ODNB

D001171839

https://www.removepaywall.com/