Template:Infobox user: Difference between revisions

using regex
(Undo revision 9912 by Saucy (talk))
Tag: Undo
(using regex)
Line 47: Line 47:
_table = users
_table = users
|name = {{{name|{{PAGENAME}}}}}
|name = {{{name|{{PAGENAME}}}}}
|id = {{match|{{{discordid|}}}|%d+}}
|id = {{#rmatch: {{{discordid|}}}|\b(\d{8,20})\b|${1} }}
|image = {{{image|}}}
|image = {{{image|}}}
|discordtag = {{#rmatch: {{{discordtag|}}}|(?<!<s>{{!}}#{{!}}\()\b([^@#<>,\s][^@#\n<>]{1,31}#\d{4}{{!}}[a-z0-9._]{2,32})\b(?!\/?>{{!}}\))|${1} }}
}}}}</includeonly><noinclude>
}}}}</includeonly><noinclude>
<br />
<br />
{{documentation}}
{{documentation}}
[[Category:Infobox templates]]</noinclude>
[[Category:Infobox templates]]</noinclude>