Template:Infobox Discord server: Difference between revisions

From Irony Wiki
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[File:ImageSSS.png|thumb]]
<noinclude>
 
<!-- Cargo table declaration -->
* CIA Agent : [to three prisoners]  The flight plan I just filed with the agency lists me, my men, Dr. Pavel here but only one of you! First one to talk gets to stay on my aircraft!  [grabs a hood]  CIA Agent : Who paid you to grab Dr. Pavel?  [No answer, the agent fires his gun away from the prisoner's head]   CIA Agent : He didn't fly so good!  [pulls the hood back into the plane]  CIA Agent : Who wants to try next?  [grabs another prisoner]  CIA Agent : Tell me about Bane! Why does he wear the mask? A lot of loyalty, for a hired gun!  Bane : Or perhaps he's wondering why someone would shoot a man, before throwing him out of a plane?  CIA Agent : At least you can talk. Who are you?  Bane : It doesn't matter who we are, what matters is our plan. [the Agent removes the hood]   Bane : No one cared who I was until I put on the mask.  CIA Agent : If I pull that off, would you die?  Bane : It would be extremely painful.  CIA Agent : You're a big guy!  Bane : For you. CIA Agent : Was getting caught part of your plan?  Bane : Of course... Dr. Pavel refused our offer in favor of yours, we had to find out what he told you.  Dr. Pavel : Nothing! I said nothing!  CIA Agent : Well, congratulations! You got yourself caught! Now what's the next step in your master plan?  Bane : Crashing this plane... with no survivors!
{{#cargo_declare:
* [Uzbekistani Army soldiers carrying Dr. Pavel greet a CIA agent and several Special Ops soldiers]   CIA Agent : Dr. Pavel, I'm CIA. [shakes hands with Dr. Pavel]  Barsad : He wasn't alone. [motions to three hooded prisoners he has brought alone]   CIA Agent : Uh... you don't get to bring friends.  Dr. Pavel : They are not my friends.  Barsad : Don't worry, no charge for them.  CIA Agent : And why would I want them?  Barsad : They were trying to grab your prize. They work for the mercenary. The masked man...  CIA Agent
_table = discord_servers
: Bane?  [the driver nodsCIA Agent : Get him on board, I'll call it in.
|name = String
|id = String
|image = File
|color = String
|text_color = String
|status = String
|invite = URL
|owner = 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}}
| caption = {{{image caption|{{{caption|{{{image_caption|}}}}}}}}}
| headerstyle = {{#if: {{{color|}}}{{{text_color|}}} | background-color:{{{color|#0a5ba6}}}; color:{{{text_color|#ffffff}}}; | {{server color|{{{name|{{PAGENAME}}}}}}} }}
| header1 = Server info
| label2 = Status
| data2 = {{#switch: {{{status|}}}
  | active = <span style="box-sizing: border-box; display: inline-flex; vertical-align: middle; align-items: center;"><span style="width: 0.75em; height: 0.75em; margin-right: 4px; border-radius: 50%; background-color: #00dd00;"></span> Active</span> {{#if: {{yesno| {{{nocat|}}} }} ||[[Category:Active servers]]}}
  | inactive = <span style="box-sizing: border-box; display: inline-flex; vertical-align: middle; align-items: center;"><span style="width: 0.75em; height: 0.75em; margin-right: 4px; border-radius: 50%; background-color: #ffc000;"></span> Inactive</span> {{#if: {{yesno| {{{nocat|}}} }} ||[[Category:Inactive servers]]}}
  | deleted = <span style="box-sizing: border-box; display: inline-flex; vertical-align: middle; align-items: center;"><span style="width: 0.75em; height: 0.75em; margin-right: 4px; border-radius: 50%; background-color: #dc0000;"></span> Deleted</span> {{#if: {{yesno| {{{nocat|}}} }} ||[[Category:Defunct servers]]}}
  | nuked = <span style="box-sizing: border-box; display: inline-flex; vertical-align: middle; align-items: center;"><span style="width: 0.75em; height: 0.75em; margin-right: 4px; border-radius: 50%; background-color: #dc0000;"></span> Nuked</span> {{#if: {{yesno| {{{nocat|}}} }} ||[[Category:Defunct servers]]}}
  | archived = <span style="box-sizing: border-box; display: inline-flex; vertical-align: middle; align-items: center;"><span style="width: 0.75em; height: 0.75em; margin-right: 4px; border-radius: 50%; background-color: #b9bbbe;"></span> Archived</span> {{#if: {{yesno| {{{nocat|}}} }} ||[[Category:Defunct servers]]}}
  | private = <span style="box-sizing: border-box; display: inline-flex; vertical-align: middle; align-items: center;"><span style="width: 0.75em; height: 0.75em; margin-right: 4px; border-radius: 50%; background-color: #b9bbbe;"></span> Private</span> {{#if: {{yesno| {{{nocat|}}} }} ||[[Category:Private servers]]}}
  | #default = {{{status|}}} <includeonly>{{#if: {{yesno| {{{nocat|}}} }} ||[[Category:Discord servers]]}}</includeonly>
   }}
| label3 = Invite link
| data3 = {{{invite|}}}
| label4 = ID
| data4 = {{{id|}}}
| label5 = Users
| data5 = {{{users|}}}
| label6 = Owner
| data6 = {{{owner|}}}
| label7 = Other links
| data7 = {{{links|}}}
| header8 = {{#if: {{{founded|}}}{{{defunct|}}}{{{founder|}}} |History}}
| label9 = Founded
| data9 = {{{founded|}}}
| label10 = Defunct
| data10 = {{{defunct|}}}
| label11 = Founder
| data11 = {{{founder|}}}
}}<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/>
{{documentation}}
</noinclude>

Latest revision as of 08:25, 16 July 2023

This template defines the table "discord_servers". View table.

Infobox Discord server
Server info


Documentation

This infobox is for use on articles about Discord servers.

Configuration[edit source]

Here is a blank instance of this template with all of the most common parameters:

{{Infobox Discord server
| name       = <!-- If this field is not provided, the page name will be used. -->
| image      = <!-- Just enter the file name. Do not include "File:" or any brackets. For example: Sillytime space.svg -->
| image_size = <!-- Override the size of the image, in pixels -->
| 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 -->
| invite     =
| id         =
| users      = <!-- Approximately the total number of members of the server -->
| owner      =
| links      = <!-- Other links relating to the server, like if they have a website -->
| founded    = <!-- The date the server was founded -->
| defunct    = <!-- The date the server was shut down, if applicable -->
| founder    =
| nocat      = <!-- Set this to "yes" to prevent this template from automatically adding page categories. This shouldn't be used in most cirumstances. -->
}}

Example[edit source]

Here is an example. The configured parameters are also listed.

Infobox Discord server
Server info
Status Deleted
ID710551456091996260
OwnerThumper#6970
History
FoundedMay 26, 2020
DefunctDecember 28, 2021
FounderDkaih35


{{Infobox Discord server
| image      = Sillytime space.gif
| image_size = 150
| id         = 710551456091996260
| status     = deleted
| owner      = [[Thumper]]#6970
| founded    = May 26, 2020
| defunct    = December 28, 2021
| founder    = [[Dkaih35]]
}}

"status" parameter[edit source]

The |status = parameter has a special output when given certain inputs. It provides special formatting and automatically adds the page to a category.

Status Explanation Appearance Category
active The server is alive and well. Active Category:Active servers
inactive The server is still up, but sees very little activity. Inactive Category:Inactive servers
deleted The server no longer exists :( Deleted Category:Defunct servers
nuked The server was nuked and no longer exists. Essentially the same as "deleted" Nuked
archived The server still exists, but it is in a read-only state. Archived
private The server exists, but it is private. Only certain people can join. Private Category:Private servers
(anything else) text Category:Discord servers

TemplateData[edit source]

Infobox for use on articles about servers. None of the parameters are required.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
namename

The name of the server. You don't need to enter anything unless their username is different from the name of the page.

Default
{{PAGENAME}}
Stringoptional
imageimage

An image to represent this server, such as its server icon

Example
Sillytime space.gif
Filesuggested
landscapelandscape

no description

Unknownoptional
image sizeimage size

Override the size of the image, in pixels

Numberoptional
imagesizeimagesize

no description

Unknownoptional
image_uprightimage_upright

no description

Unknownoptional
altalt

no description

Unknownoptional
image captionimage caption

no description

Unknownoptional
captioncaption

A caption for the image

Stringoptional
colorcolor

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.

Default
#0a5ba6
Stringoptional
text_colortext_color

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.

Default
#ffffff
Stringoptional
statusstatus

The status of the server. Usually one of the following: active, inactive, deleted, nuked, archived, private.

Suggested values
active inactive deleted nuked archived private
Stringsuggested
inviteinvite

A permanent invite link to the server.

URLsuggested
idid

Discord's internal snowflake ID of the server.

Example
501310750074077215
Numbersuggested
usersusers

Approximately the total number of members of the server.

Example
15,000+
Unknownsuggested
ownerowner

The current or last owner of the server.

Example
Thumper#6970
Stringsuggested
linkslinks

Miscellaneous links relating to the server (e.g. a link to their website if they have one)

Unknownoptional
foundedfounded

The date the server was founded.

Example
May 26, 2020
Datesuggested
defunctdefunct

The date the server was shut down, if applicable.

Example
December 28, 2021
Datesuggested
founderfounder

The original founder of the server.

Stringsuggested
nocatnocat

Set this to "yes" to prevent this template from automatically adding page categories.

Booleanoptional
nocargonocargo

Set this to "yes" to prevent this template from adding to the Cargo database.

Booleanoptional