Template

Infobox Player

From Dogcraft Wiki

No edit summary
No edit summary
 
(54 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{DEFAULTSORT:Template:Userbox}}
An infobox for usage on articles about players.
An infobox for usage on articles about players.
{{Infobox Player
{{Infobox Player
Line 27: Line 28:
}}
}}
</pre>
</pre>
</noinclude>


<noinclude>
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"mc_username": {
"mc_username": {
"label": "Minecraft Username",
"label": "Minecraft Username (Legacy)",
"description": "In-game username",
"description": "In-game username. No longer in active use.",
"example": "Steve",
"type": "string",
"type": "string",
"required": true
"deprecated": "This parameter was replaced by automatic data from [[User:MyPage/data]]. Kept only for compatibility with older userpages. If your minecraft username is not automatically included in this template, complete the [[Guide:Linking|linking]] process, or contact a [[Dogcraft_Wiki:Administrators|Wiki Administrator]]."
},
},
"aliases": {
"aliases": {
Line 57: Line 55:
"example": "Active",
"example": "Active",
"type": "string"
"type": "string"
},
"server_rank": {
"label": "Server Rank",
"description": "The player's currently displayed user rank. Leave blank for default rank.",
"example": "<pre>{{Mod}}</pre>",
"type": "wiki-template-name"
},
},
"groups": {
"groups": {
Line 89: Line 81:
"example": "Founded the Stick Society!",
"example": "Founded the Stick Society!",
"type": "string"
"type": "string"
},
"role": {
"aliases": [
"server_rank"
],
"label": "Role",
"description": "Role(s) held in the entire Dogcraft community.",
"example": "{{DiscordRank|Mod}}",
"type": "wiki-template-name"
}
}
},
},
"description": "An infobox for use on user pages, about a player on the Dogcraft server."
"description": "An infobox for use on user pages, about a player on the Dogcraft server.",
"format": "block",
"paramOrder": [
"aliases",
"join_date",
"activity",
"role",
"groups",
"builds",
"projects",
"bases",
"accomplishments",
"mc_username"
]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>
 
<includeonly>{{Infobox2
<includeonly>{{Infobox
|name        =  
|name        =  
|bodystyle    =  
|bodystyle    =  
|title       = {{#if:{{{mc_username|}}}|{{{mc_username|}}}|{{PAGENAME}}}}
|above       = {{#ifexist: User:{{ROOTPAGENAME}}/data | {{#ifeq: {{MCNAME|{{ROOTPAGENAME}}}}|Unlinked Account|{{#if:{{{mc_username|}}}|{{{mc_username|}}}|{{PAGENAME}}}}|{{MCNAME|{{ROOTPAGENAME}}}}}} | {{#if:{{{mc_username|}}}|{{{mc_username|}}}|{{PAGENAME}}}} }} {{#ifeq: {{UUID|{{ROOTPAGENAME}}}}|Unlinked Account|[https://namemc.com/profile/{{MCNAME|{{ROOTPAGENAME}}}} <span class="fa fa-history""></span>]|[https://namemc.com/profile/{{UUID|{{ROOTPAGENAME}}}} <span class="fa fa-history""></span>]}}
|image        = {{#if:{{{mc_uuid|}}}|https://crafatar.com/renders/body/{{{mc_uuid|}}}.png|{{#if:{{{mc_username|}}}|https://minotar.net/body/{{{mc_username|}}}/115.png|}}}}
|image        = {{#ifeq: {{MCNAME|{{ROOTPAGENAME}}}}
                        |Unlinked Account
                        |{{#if:{{{mc_uuid|}}}  
                                | https://dogcraft.net/img/mc/renders/body/{{{mc_uuid|}}}?overlay=true.png  
                                | {{#if:{{{mc_username|}}}  
                                        | https://minotar.net/body/{{{mc_username|}}}/115.png
                                        |https://minotar.net/body/Player/115.png
                                  }}
                          }}
                        |{{#ifeq: {{UUID|{{ROOTPAGENAME}}}}
                                  | Unlinked Account
                                  | https://minotar.net/body/{{#ifeq:{{MCNAME|{{ROOTPAGENAME}}}}
                                                                      |Unlinked Account
                                                                      |{{#if:{{{mc_username|}}}
                                                                            |{{{mc_username|}}}
                                                                            |Player
                                                                      }}
                                                                      |{{MCNAME|{{ROOTPAGENAME}}}}
                                                              }}/115.png
                                  | https://dogcraft.net/img/mc/renders/body/{{UUID|{{ROOTPAGENAME}}}}?overlay=true.png
                          }}
                }}
|caption      = <br>
|caption      = <br>
|captionstyle = color:#000;
|headerstyle  = background:#970000; color:#fff; padding:5px;
|labelstyle  = padding: 3px;
|datastyle    = padding: 3px;
|header1 = {{Large|Player}}
|header1 = {{Large|Player}}
|label1  = Known as:
|label1  = Known as:
Line 111: Line 141:
|label2  = Joined
|label2  = Joined
|data2  = {{{join_date|}}}
|data2  = {{{join_date|}}}
|label3  = Actvity
|label3  = Activity
|data3  = {{{activity|}}}
|data3  = {{{activity|}}}
|label4 = Server [[Ranks|Rank]]
|label5  = Further Roles
|data4   = {{{server_rank|[CyberDog]}}}
|data5  = {{#if: {{{role|}}}|{{{role|}}}|{{#if: {{{server_rank|}}}|{{{server_rank|}}}|}}}}
|label5 = Member of:
|label4 = [[Ranks|Server Rank]]
|data5   = {{{groups|}}}
|data4 = {{#ifexist: User:{{ROOTPAGENAME}}/data|{{#ifeq:{{SERVERRANK|{{ROOTPAGENAME}}}}|Unlinked|{{Rank|Unlinked}}|{{Rank|{{SERVERRANK|{{ROOTPAGENAME}}}}}}}}|}}
|header6 = Server Information
|label6 = Member of:
|label6 = Builds
|data6   = {{{groups|}}}
|data6   = {{{builds|}}}
|header7 = Profile
|label7 = Projects
|label7 = Builds
|data7   = {{{projects|}}}
|data7   = {{{builds|}}}
|label8 = Bases
|label8 = Projects
|data8   = {{{bases|}}}
|data8   = {{{projects|}}}
|label9 = Accomplishments
|label9 = Bases
|data9   = {{{accomplishments|}}}
|data9   = {{{bases|}}}
|header10 = {{#if:{{{mc_uuid|}}}|[https://namemc.com/profile/{{{mc_uuid|}}} <span class="fa fa-history""></span>&nbsp;Username History]|{{#if:{{{mc_username|}}}|[https://namemc.com/profile{{{mc_username|}}} <span class="fa fa-history""></span>&nbsp;Username History]|}}}}
|label10 = Accomplishments
|data10   = {{{accomplishments|}}}
}}
}}


[[Category:Players]]
[[Category:Players]]
</includeonly>
</includeonly>

Latest revision as of 10:08, 3 January 2023


An infobox for usage on articles about players.

Renthedog Account
2dd0cc3b-0825-4c3e-bd99-3bf07ef27447?overlay=true.png

Player
Joinedthe beginning of time!
ActivityActive
Further Roles[EnderGod]
Member of:Staff Team
Profile
AccomplishmentsFounder of Dogcraft
{{Infobox Player
|aliases         =
|mc_uuid         =
|mc_username     = 
|join_date       = 
|activity        =
|server_rank     = 
|groups          = 
|builds          =
|projects        =
|bases           =
|accomplishments = 
}}

An infobox for use on user pages, about a player on the Dogcraft server.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Aliasesaliases

Other names this player has gone by.

Example
TheNewRid, satdownpro
Stringoptional
Join Datejoin_date

When the player first joined the Dogcraft Server

Example
1<sup>st</sup> January 2020
Stringoptional
Activity?activity

Is this player currently active or inactive on the server?

Example
Active
Stringoptional
Rolerole server_rank

Role(s) held in the entire Dogcraft community.

Example
{{DiscordRank|Mod}}
Templateoptional
Member ofgroups

What groups this player is a member of

Example
[[Staff Team]]
Stringoptional
Buildsbuilds

List of the most noteworthy builds the player has made.

Stringoptional
Projectsprojects

List of the most notable projects this player has worked on/led.

Unknownoptional
Basesbases

List of the base(s) the player is part of/owns.

Stringoptional
Accomplishmentsaccomplishments

Other accomplishments the player has achieved.

Example
Founded the Stick Society!
Stringoptional
Minecraft Username (Legacy)mc_username

In-game username. No longer in active use.

Stringdeprecated