Template:Infobox Discord server: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Infobox
<noinclude>
<!-- Cargo table declaration -->
{{#cargo_declare:
_table = discord_servers
|name = String
|id = String
|image = File
|color = String
|text_color = String
|status = String
|invite = URL
|owner = 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}}
Line 32: Line 45:
| label11 = Founder
| label11 = Founder
| data11 = {{{founder|}}}
| data11 = {{{founder|}}}
}}<noinclude>
}}<includeonly>
{{#if: {{yesno| {{{nocargo|}}} }}|| {{#cargo_store:
_table = discord_servers
|name = {{{name|{{PAGENAME}}}}}
|id = {{#invoke:Extract|main|number|{{{id|}}}}}
|image = {{{image|}}}
|color = {{{color|#0a5ba6}}}
|text_color = {{{text_color|#ffffff}}}
}}}}</includeonly><noinclude>
<br/>
<br/>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>