Template:Infobox user: Difference between revisions
Add "Also known as" field |
No edit summary |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Infobox | <noinclude> | ||
<!-- Cargo table declaration --> | |||
{{#cargo_declare: | |||
_table = users | |||
|name = String | |||
|id = String | |||
|image = File | |||
|discordtag = String | |||
|age = String | |||
}} | |||
</noinclude>{{Infobox | |||
| title = {{{name|{{PAGENAME}}}}} | | title = {{{name|{{PAGENAME}}}}} | ||
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{#ifeq:{{lc:{{{landscape|}}}}}|yes|{{min|300|{{#if:{{#ifexpr:{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}|300|{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}}}x200px|{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}} | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{#ifeq:{{lc:{{{landscape|}}}}}|yes|{{min|300|{{#if:{{#ifexpr:{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}|300|{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}}}x200px|{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}} | ||
| caption = {{{image caption|{{{caption|{{{image_caption|}}}}}}}}} | | caption = {{{image caption|{{{caption|{{{image_caption|}}}}}}}}} | ||
| headerstyle = background:#0a5ba6;color:#fff; | | headerstyle = background:#0a5ba6;color:#fff; | ||
| header1 = {{#if:{{{discordtag|}}}{{{discordid|}}}{{{redditname|}}}{{{ | | header1 = {{#if:{{{discordtag|}}}{{{discordid|}}}{{{servers|}}}{{{redditname|}}}{{{othernames|}}}|User info}} | ||
| label2 = | | label2 = Discord tag | ||
| data2 = {{{ | | data2 = {{{discordtag|}}} | ||
| label3 = Discord | | label3 = Discord ID | ||
| data3 = {{{ | | data3 = {{{discordid|}}} | ||
| label4 = | | label4 = Servers | ||
| data4 = {{{ | | data4 = {{{servers|}}} | ||
| label5 = | | label5 = Reddit name | ||
| data5 = {{{ | | data5 = {{{redditname|}}} | ||
| label6 = | | label6 = Also known as | ||
| data6 = {{{ | | data6 = {{{othernames|}}} | ||
| data7 = {{{subboxes|}}} | | data7 = {{{subboxes|}}} | ||
{{#if: {{{roles|}}}<!-- Deprecated parameter; make subbox for backwards compatibility -->|{{Server subbox|server=Irony Hub|roles={{{roles}}}|nocat={{{nocat|}}}}} {{#if: {{yesno|{{{nocat|}}}}} ||[[Category:Infoboxes with deprecated parameters]]}} }} | {{#if: {{{roles|}}}<!-- Deprecated parameter; make subbox for backwards compatibility -->|{{Server subbox|server=Irony Hub|roles={{{roles}}}|nocat={{{nocat|}}}}} {{#if: {{yesno|{{{nocat|}}}}} ||[[Category:Infoboxes with deprecated parameters]]}} }} | ||
Line 33: | Line 43: | ||
| label16 = External links | | label16 = External links | ||
| data16 = {{{links|}}} | | data16 = {{{links|}}} | ||
}}<includeonly>{{#if: {{yesno|{{{nocat|}}}}}{{{ | }}<includeonly>{{#if: {{yesno|{{{nocat|}}}}} ||[[Category:Users]]}}{{#if: {{yesno| {{{nocargo|}}} }}|| {{#cargo_store: | ||
_table = users | |||
|name = {{{name|{{PAGENAME}}}}} | |||
|id = {{#rmatch: {{{discordid|}}}|\b(\d{8,20})\b|${1} }} | |||
|image = {{{image|}}} | |||
|discordtag = {{#rmatch: {{{discordtag|}}}|(?<!<s>{{!}}#{{!}}\()\b([^@#<>,\s][^@#\n<>]{1,31}#\d{4}{{!}}[a-z0-9._]{2,32})\b(?!\/?>{{!}}\))|${1} }} | |||
}}}}</includeonly><noinclude> | |||
<br /> | <br /> | ||
{{documentation}} | {{documentation}} | ||
[[Category:Infobox templates]]</noinclude> | [[Category:Infobox templates]]</noinclude> |