Template:Infobox user: Difference between revisions

no edit summary
mNo edit summary
No edit summary
 
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Infobox
<noinclude>
| title = {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
<!-- Cargo table declaration -->
{{#cargo_declare:
_table = users
|name = String
|id = String
|image = File
|discordtag = String
|age = String
}}
</noinclude>{{Infobox
| 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|}}}{{{roles|}}}|User info}}
| header1 = {{#if:{{{discordtag|}}}{{{discordid|}}}{{{servers|}}}{{{redditname|}}}{{{othernames|}}}|User info}}
| label2 = Discord tag
| label2 = Discord tag
| data2 = {{{discordtag|}}}
| data2 = {{{discordtag|}}}
| label3 = Discord ID
| label3 = Discord ID
| data3 = {{{discordid|}}}
| data3 = {{{discordid|}}}
| label4 = Reddit name
| label4 = Servers
| data4 = {{{redditname|}}}
| data4 = {{{servers|}}}
| label5 = [[Roles]]
| label5 = Reddit name
| data5 = {{{roles|}}}
| data5 = {{{redditname|}}}
| header6 = {{#if:{{{irlname|}}}{{{age|}}}{{{residence|}}}|IRL info}}
| label6 = Also known as
| label7 = Name
| data6 = {{{othernames|}}}
| data7 = {{{irlname|}}}
| data7 = {{{subboxes|}}}
| label8 = Age
{{#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]]}} }}
| data8 = {{{age|}}}
| header8 = {{#if:{{{irlname|}}}{{{age|}}}{{{gender|}}}{{{residence|}}}|IRL info}}
| label9 = Gender
| label9 = Name
| data9 = {{{gender|}}}  
| data9 = {{{irlname|}}}
| label10 = Residence
| label10 = Age
| data10 = {{{residence|}}}
| data10 = {{{age|}}}
| header11 = {{#if:{{{gaming|}}}{{{steam|}}}{{{links|}}}|Gaming}}
| label11 = Gender
| label12 = Gaming
| data11 = {{{gender|}}}  
| data12 = {{{gaming|}}}
| label12 = Residence
| label13 = Steam
| data12 = {{{residence|}}}
| data13 = {{{steam|}}}
| header13 = {{#if:{{{gaming|}}}{{{steam|}}}{{{links|}}}|Gaming}}
| label14 = External links
| label14 = Gaming
| data14 = {{{links|}}}
| data14 = {{{gaming|}}}
}}<includeonly>{{#if:{{yesno|{{{nocat|}}}}}||[[Category:Users]]}}</includeonly><noinclude>
| label15 = Steam
| data15 = {{{steam|}}}
| label16 = External links
| data16 = {{{links|}}}
}}<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>