User:Pigsonthewing/Useful

Useful

Property code edit

{{ExternalUse|
* [[:en:Template:XXXXX]]
}}

Templates edit

  • {{section resolved|1=XXXXX ~~~~}}

Tools edit

External tools edit

Tips edit

To extract QIDs from random text
In Notepad++ (Q2033), paste the text, then open replace dialogue. Checkbox regular expressions set to yes, and paste this as 'Find': ^(.*?)\(Q(\d*?)\)(.*?)$ and 'Replace': Q$2.

Boilerplate edit

{{User:Hazard-Bot/Archiver
|archiveheader = {{Archive}}
|maxarchivesize = 75K
|counter = 1
|minthreadsleft = 3
|minthreadstoarchive = 1
|algo = old(28d)
|archive = {{SUBST:FULLPAGENAME}}/Archive %(counter)d
}}
{{archives|search=yes}}

Scripts edit

Examples edit

Discussions edit

Regex edit

  • "(.*?)" - all characters between quotes, e.g. foo in title="foo"
  • [1-9]\d* - any integer, not beginning with zero
  • ^ABC:.* - lines beginning with ABC:
  • \p{L} - any letter, inc. those with accents
  • .*ShortString.*\n - match any long string containing short string