Open main menu

Warhammer 40k - Lexicanum β

Mikaka

Joined 4 December 2022

Just here to correct typos and fix styles. Don't mind me.

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}}

Test pages