To create people subcat:
<code>...</code> does not replace <nowiki>...</nowiki>. You need to use both, with <nowiki> inside.quotesuse {{tq}} and examples use {{xtn}} (neutral), {{!xt}} (bad), {{xtd}} (deprecated) and {{xtg}} (grey).
{{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]]
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}}
For orders of merit, I usually reference User:Necrothesp/Notability criteria for recipients of honours
[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}}|
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.