User:Mikaka
From Warhammer 40k - Lexicanum
Just here to correct typos and fix styles. Don't mind me.
Contents
Tools
Use with VSCode's Find and Replace settings with regex search turned on.
Format short story listings regex
Find:
\[\[([A-Z ':â,-]+) \(([A-Z ]+)\)\]\]
Replace:
"[[$1 ($2)|$1]]"
Move periods and commas before citations
Find:
(\{\{[\w\d|]+\}\})([\.,])
Replace:
$2$1
Renumber citations
Find (replace the "9" with the number you want to find and replace):
\{\{(Fn|Endn)\|9([a-z]*)\}\}
Replace (change "8" to new target number):
{{$1|8$2}}