User:Pigsonthewing/Useful

Useful

Property codeEdit

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

TemplatesEdit

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

ToolsEdit

External toolsEdit

TipsEdit

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.

BoilerplateEdit

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

ScriptsEdit

ExamplesEdit

DiscussionsEdit

RegexEdit

  • "(.*?)" - 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