Template:Infobox Discord server/doc: Difference between revisions
No edit summary |
|||
(5 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
== Configuration == | == Configuration == | ||
Here is a blank instance of this template with all parameters: | Here is a blank instance of this template with all of the most common parameters: | ||
<pre><nowiki> | <pre><nowiki> | ||
{{Infobox Discord server | {{Infobox Discord server | ||
Line 9: | Line 9: | ||
| image_size = <!-- Override the size of the image, in pixels --> | | image_size = <!-- Override the size of the image, in pixels --> | ||
| caption = | | caption = | ||
| color = <!-- The background color of the headings. Defaults to #0a5ba6. Must be a valid CSS color value. Will also be used on all subboxes for this server. --> | |||
| text_color = <!-- The text color for the headings. Defaults to white; change it if the background is a light color. Will also be used on all subboxes for this server. --> | |||
| status = <!-- Usually one of the following: active, inactive, deleted, nuked, archived, private --> | | status = <!-- Usually one of the following: active, inactive, deleted, nuked, archived, private --> | ||
| invite = | | invite = | ||
Line 34: | Line 36: | ||
| founder = [[Dkaih35]] | | founder = [[Dkaih35]] | ||
| nocat = yes | | nocat = yes | ||
| nocargo = yes | |||
}} | }} | ||
Line 46: | Line 49: | ||
| defunct = December 28, 2021 | | defunct = December 28, 2021 | ||
| founder = [[Dkaih35]] | | founder = [[Dkaih35]] | ||
}} | }} | ||
</nowiki></pre> | </nowiki></pre> | ||
Line 123: | Line 125: | ||
}, | }, | ||
"color": { | "color": { | ||
"description": "The background color of the headings. Must be a valid CSS color value.", | "description": "The background color of the headings. Must be a valid CSS color value. Will also be accessible from {{Server color}} and will be used on the subboxes for this server.", | ||
"type": "string", | "type": "string", | ||
"default": "#0a5ba6" | "default": "#0a5ba6" | ||
}, | }, | ||
"text_color": { | "text_color": { | ||
"description": "The color of the text of the headings. Defaults to white; change it to black if the headings are a very light color. Must be a valid CSS color value.", | "description": "The color of the text of the headings. Defaults to white; change it to black if the headings are a very light color. Must be a valid CSS color value. Will also be accessible from {{Server color}} and will be used on the subboxes for this server.", | ||
"type": "string", | "type": "string", | ||
"default": "#ffffff" | "default": "#ffffff" | ||
Line 134: | Line 136: | ||
"status": { | "status": { | ||
"description": "The status of the server. Usually one of the following: active, inactive, deleted, nuked, archived, private.", | "description": "The status of the server. Usually one of the following: active, inactive, deleted, nuked, archived, private.", | ||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true, | ||
"suggestedvalues": [ | |||
"active", | |||
"inactive", | |||
"deleted", | |||
"nuked", | |||
"archived", | |||
"private" | |||
] | |||
}, | }, | ||
"nocat": { | "nocat": { | ||
"description": "Set this to \"yes\" to prevent this template from automatically adding page categories | "description": "Set this to \"yes\" to prevent this template from automatically adding page categories.", | ||
"type": "boolean" | "type": "boolean" | ||
}, | }, | ||
Line 179: | Line 188: | ||
}, | }, | ||
"id": { | "id": { | ||
"description": "Discord's internal | "description": "Discord's internal snowflake ID of the server.", | ||
"example": "501310750074077215", | "example": "501310750074077215", | ||
"type": "number", | "type": "number", | ||
"suggested": true | "suggested": true | ||
}, | |||
"nocargo": { | |||
"description": "Set this to \"yes\" to prevent this template from adding to the Cargo database.", | |||
"type": "boolean" | |||
} | } | ||
}, | }, | ||
Line 207: | Line 220: | ||
"defunct", | "defunct", | ||
"founder", | "founder", | ||
"nocat" | "nocat", | ||
"nocargo" | |||
], | ], | ||
"format": "block" | "format": "block" | ||
} | } | ||
</templatedata> | </templatedata> | ||
<includeonly> | <includeonly> | ||
[[Category:Infobox templates]] | [[Category:Infobox templates|Discord server]] | ||
[[Category:Templates that store Cargo data]] | |||
</includeonly> | </includeonly> |