Template:Infobox Discord server: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 3: Line 3:
{{#cargo_declare:
{{#cargo_declare:
_table = discord_servers
_table = discord_servers
|id = Integer (unique)
|name = String
|page = Page
|id = String
|image = File
|color = String
|color = String
|text_color = String
|text_color = String
Line 10: Line 11:
|invite = URL
|invite = URL
|owner = String
|owner = String
|founded = Date
|defunct = Date
}}
}}
</noinclude>
</noinclude>{{Infobox
{{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 47: Line 45:
| label11 = Founder
| label11 = Founder
| data11 = {{{founder|}}}
| data11 = {{{founder|}}}
}}
}}<includeonly>
<includeonly>
{{#if: {{yesno| {{{nocargo|}}} }}|| {{#cargo_store:
{{#if: {{yesno| {{{nocargo|}}} }}||
{{#cargo_store:
_table = discord_servers
_table = discord_servers
|id = {{{id|}}}
|name = {{{name|{{PAGENAME}}}}}
|id = {{#invoke:Extract|main|number|{{{id|}}}}}
|image = {{{image|}}}
|color = {{{color|#0a5ba6}}}
|color = {{{color|#0a5ba6}}}
|text_color = {{{text_color|#ffffff}}}
|text_color = {{{text_color|#ffffff}}}
|page = {{FULLPAGENAME}}
}}}}</includeonly><noinclude>
|status = {{{status|}}}
|invite = {{{invite|}}}
|owner = {{{owner|}}}
|founded = {{{founded|}}}
|defunct = {{{defunct|}}}
}}
}}
</includeonly>
<noinclude>
<br/>
<br/>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>