User:HTGS/helpful stuff

  • <code>...</code> does not replace <nowiki>...</nowiki>. You need to use both, with <nowiki> inside.
  • Talk page quotes use {{tq}} and examples use {{xtn}} (neutral), {{!xt}} (bad), {{xtd}} (deprecated) and {{xtg}} (grey).
  • Wikipedia:Reliable sources/Perennial sources
  • [1]
  • {{ucfirst:{{subst:gender|Example|their}}}} per {{gender}} etc.

To create people subcat:

[[{{subst:#invoke:String|replace|source= {{subst:FULLPAGENAME}} |pattern= people}}|people]]

[[Category:New Zealand Māori people by waka, iwi, hapū or whānau]]

Auto archiving

For slow pages:

{{User:MiszaBot/config
| algo                = old(1400d)
| archive             = {{SUBST:#titleparts:{{SUBST:FULLPAGENAME}}}}/Archive %(counter)d
| counter             = 1
| maxarchivesize      = 200K
| archiveheader       = {{Archive}}
| minthreadstoarchive = 2
| minthreadsleft      = 6
}}
{{Archives}}

Reference guides

For orders of merit, I usually reference User:Necrothesp/Notability criteria for recipients of honours

Searches

https://en.wikipedia.org/w/index.php?title=Special:Search&limit=500&offset=0&ns0=1&search=hastemplate%3A%22Infobox+language%22+insource%3A%2F%5C%7C+%2Aethnicity+%2A%3D+%2F&sortby=incoming_links_desc

[2] hastemplate:"Short description" insource:/\{\{[Ss]hort description\| *[^ \}]{5}\}\}/</code>



Regex

  • To find any simple template (does not address sub-templates). Eg, short description: {{[Ss]hort description[|][^}]*}}
  • To convert a bulleted list of names to sortname templates for a sortable table (per List of New Zealand artists):
    • Find: \* *\[\[([a-z- ]+) ([a-z'-]+)\]\]
    • Replace: {{sortname|$1|$2}}
  • Born but no death
    • Find: \* *\[\[([a-z- ]+) ([a-z'-]+)\]\] \(born ([0-9]+)\)[\s-–]*([a-z ,/]+)
    • Replace: |- {{subst:User:HTGS/newline}}|{{sortname|$1|$2}}||$3|| ||$4||
    • Replace: |- {{subst:User:HTGS/newline}}|{{sortname|$1|$2}}{{subst:User:HTGS/newline}}| $3{{subst:User:HTGS/newline}}| {{subst:User:HTGS/newline}}| $4{{subst:User:HTGS/newline}}|
  • Born + died
    • Find: \* *\[\[([a-z- ]+) ([a-z'-]+)\]\] \(([0-9]+)[\s-–]+([0-9]+)\)[\s-–]*([a-z ,/]+)
    • Replace: |- {{subst:User:HTGS/newline}}|{{sortname|$1|$2}}{{subst:User:HTGS/newline}}| $3{{subst:User:HTGS/newline}}| $4{{subst:User:HTGS/newline}}| $5{{subst:User:HTGS/newline}}|
  • Born w DAB:
    • Find: \* *\[\[([a-z- ]+) ([a-z'-]+) \(([a-z]+)\)\|[ a-z]+\]\] \(born ([0-9]+)\)[\s-–]*([a-z ,/]+)
    • Replace: |- {{subst:User:HTGS/newline}}|{{sortname|$1|$2|dab=$3}}{{subst:User:HTGS/newline}}| $4{{subst:User:HTGS/newline}}| {{subst:User:HTGS/newline}}| $5{{subst:User:HTGS/newline}}|
  • Born+died w DAB
    • Find: \* *\[\[([a-z- ]+) ([a-z'-]+) \(([a-z]+)\)\|[ a-z]+\]\] \(([0-9]+)[\s-–]+([0-9]+)\)[\s-–]*([a-z ,/]+)
    • Replace: |- {{subst:User:HTGS/newline}}|{{sortname|$1|$2|dab=$3}}{{subst:User:HTGS/newline}}| $4{{subst:User:HTGS/newline}}| $5{{subst:User:HTGS/newline}}| $6{{subst:User:HTGS/newline}}|

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.