Template:Infobox user: Difference between revisions

From Irony Wiki
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
 
(11 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 = users
: Bane?  [the driver nods]   CIA Agent : Get him on board, I'll call it in.
|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}}
| caption = {{{image caption|{{{caption|{{{image_caption|}}}}}}}}}
| headerstyle = background:#0a5ba6;color:#fff;
| header1 = {{#if:{{{discordtag|}}}{{{discordid|}}}{{{servers|}}}{{{redditname|}}}{{{othernames|}}}|User info}}
| label2 = Discord tag
| data2 = {{{discordtag|}}}
| label3 = Discord ID
| data3 = {{{discordid|}}}
| label4 = Servers
| data4 = {{{servers|}}}
| label5 = Reddit name
| data5 = {{{redditname|}}}
| label6 = Also known as
| data6 = {{{othernames|}}}
| data7 = {{{subboxes|}}}
{{#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]]}} }}
| header8 = {{#if:{{{irlname|}}}{{{age|}}}{{{gender|}}}{{{residence|}}}|IRL info}}
| label9 = Name
| data9 = {{{irlname|}}}
| label10 = Age
| data10 = {{{age|}}}
| label11 = Gender
| data11 = {{{gender|}}}
| label12 = Residence
| data12 = {{{residence|}}}
| header13 = {{#if:{{{gaming|}}}{{{steam|}}}{{{links|}}}|Gaming}}
| label14 = Gaming
| data14 = {{{gaming|}}}
| 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 />
{{documentation}}
[[Category:Infobox templates]]</noinclude>

Latest revision as of 02:07, 19 July 2023

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

Infobox user


Documentation

This infobox is for use on articles about users.

Configuration[edit source]

Here is a configuration of this template with all parameters:

{{Infobox user
| 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: Trollface.svg -->
| image_size = <!-- Override the size of the image, in pixels -->
| caption    =
| discordtag =
| discordid  =
| redditname =
| othernames =
| subboxes   = <!-- Place {{Server subbox}}es here. For more info, see Template:Server subbox -->
| irlname    =
| age        =
| gender     =
| residence  =
| gaming     = <!-- gaming -->
| steam      =
| links      = <!-- for example, a link to their twitter or tiktok -->
| nocat      = <!-- If nocat=yes , then the page will not be put into Category:Users. This parameter should not be used in most circumstances. -->
}}

Example[edit source]

Here is an example using a made-up user. The configured parameters are also listed.

Example User
User info
Discord tagexampleusername
Discord ID753757823535677561
Reddit nameu/spez
Also known asExample#0000
obama gaming
Irony Hub
StatusLeft server
Roles Trollsome
Joined serverSeptember 11, 2020
Left serverFebruary 30, 2021
Whenthe
StatusActive
Roles Bluename
Joined serverDecember 25, 2020
IRL info
NameBarack Obama
Age16
GenderMale
ResidenceSan Francisco, California, United States
Gaming
Gamingobama gaming
SteamDoctor Penez
External linksWebsite, Twitter
{{Infobox user
| name       = Example User
| image      = Discord default pfp blurple.svg
| image_size = 180px
| caption    =
| discordtag = exampleusername
| discordid  = 753757823535677561
| redditname = u/spez
| othernames = Example#0000 <br/>obama gaming
| subboxes   = {{Server subbox
  | server = Irony Hub
  | status = Left server
  | roles  = {{role|Trollsome|#9062f8}}
  | joined = September 11, 2020
  | left   = February 30, 2021
  }}
  {{Server subbox
  | server = Whenthe
  | status = Active
  | roles  = {{role|Bluename|#007ac1}}
  | joined = December 25, 2020
  }}
| irlname    = Barack Obama
| age        = 16
| gender     = Female
| residence  = San Francisco, California, United States
| gaming     = obama gaming
| steam      = [https://steamcommunity.com/id/doctorpenez Doctor Penez]
| links      = [https://niggafart.com Website], {{Twitter|AndrewYang}}
}}

Parameters[edit source]

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

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
namename

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

Default
{{PAGENAME}}
Stringsuggested
imageimage

An image to represent this user, such as their profile picture

Example
Trollface.svg
Filesuggested
Image sizeimage_size

Override the size of the image, in pixels

Numberoptional
captioncaption

A caption for the image

Stringoptional
Discord tagdiscordtag

The user's Discord username (not their display name)

Example
grantvszombies
Stringsuggested
Discord IDdiscordid

The user's ID; a long string of digits

Example
753757823535677561
Numbersuggested
serversservers

Servers that this user is, or historically has been, an active member of.

Example
[[Whenthe]], [[Irony Hub]] (formerly)
Stringsuggested
Reddit nameredditname

u/

Example
u/NovaSF
Stringsuggested
Also known asothernames

Alternate or historical names that the user is also known by.

Stringsuggested
subboxessubboxes

Place {{Server subbox}} templates here to document the user's presence and status for each server they are a part of. Go to [[Template:Server subbox]] for more information.

Example
{{Server subbox | server = Irony Hub | status = Left server | roles = {{role|Trollsome|#9062f8}} | joined = September 11, 2020 | left = February 30, 2021}}
Unbalanced wikitextsuggested
rolesroles

Mod, Trollsome, etc.

Example
Trollsome
Stringdeprecated
IRL nameirlname

The user's real name.

Stringsuggested
ageage

The user's age.

Numbersuggested
gendergender

The user's gender

Stringsuggested
residenceresidence

Where the user lives. Don't get any more specific than city

Example
San Francisco, California, United States
Stringsuggested
gaminggaming

put whatever you want i guess

Unknownoptional
steamsteam

A link to the user's Steam

Example
[https://steamcommunity.com/id/saucylegs69420/ Saucy]
URLsuggested
linkslinks

For example, links to their Twitter or TikTok

Example
[https://example.com/ Website], {{Twitter|AndrewYang}}
Unknownsuggested
nocatnocat

Set this to "yes" to remove the page from the Users category. This shouldn't be used in most cirumstances.

Stringoptional