Template
Infobox Player
From Dogcraft Wiki
mNo edit summary |
No edit summary |
||
(27 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> | ||
<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.", | ||
"type": "string", | "type": "string", | ||
" | "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" | ||
}, | }, | ||
"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" | "format": "block", | ||
"paramOrder": [ | |||
"aliases", | |||
"join_date", | |||
"activity", | |||
"role", | |||
"groups", | |||
"builds", | |||
"projects", | |||
"bases", | |||
"accomplishments", | |||
"mc_username" | |||
] | |||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> | ||
<includeonly>{{Infobox2 | |||
<includeonly>{{ | |||
|name = | |name = | ||
|bodystyle = | |bodystyle = | ||
| | |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 = {{#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> | ||
|header1 = {{Large|Player}} | |header1 = {{Large|Player}} | ||
|label1 = Known as: | |label1 = Known as: | ||
Line 112: | Line 141: | ||
|label2 = Joined | |label2 = Joined | ||
|data2 = {{{join_date|}}} | |data2 = {{{join_date|}}} | ||
|label3 = | |label3 = Activity | ||
|data3 = {{{activity|}}} | |data3 = {{{activity|}}} | ||
|label4 | |label5 = Further Roles | ||
|data4 | |data5 = {{#if: {{{role|}}}|{{{role|}}}|{{#if: {{{server_rank|}}}|{{{server_rank|}}}|}}}} | ||
| | |label4 = [[Ranks|Server Rank]] | ||
| | |data4 = {{#ifexist: User:{{ROOTPAGENAME}}/data|{{#ifeq:{{SERVERRANK|{{ROOTPAGENAME}}}}|Unlinked|{{Rank|Unlinked}}|{{Rank|{{SERVERRANK|{{ROOTPAGENAME}}}}}}}}|}} | ||
| | |label6 = Member of: | ||
| | |data6 = {{{groups|}}} | ||
| | |header7 = Profile | ||
| | |label7 = Builds | ||
| | |data7 = {{{builds|}}} | ||
| | |label8 = Projects | ||
| | |data8 = {{{projects|}}} | ||
| | |label9 = Bases | ||
| | |data9 = {{{bases|}}} | ||
|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 | |
---|---|
Player | |
Joined | the beginning of time! |
Activity | Active |
Further Roles | [EnderGod] |
Member of: | Staff Team |
Profile | |
Accomplishments | Founder 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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Aliases | aliases | Other names this player has gone by.
| String | optional |
Join Date | join_date | When the player first joined the Dogcraft Server
| String | optional |
Activity? | activity | Is this player currently active or inactive on the server?
| String | optional |
Role | role server_rank | Role(s) held in the entire Dogcraft community.
| Template | optional |
Member of | groups | What groups this player is a member of
| String | optional |
Builds | builds | List of the most noteworthy builds the player has made. | String | optional |
Projects | projects | List of the most notable projects this player has worked on/led. | Unknown | optional |
Bases | bases | List of the base(s) the player is part of/owns. | String | optional |
Accomplishments | accomplishments | Other accomplishments the player has achieved.
| String | optional |
Minecraft Username (Legacy) | mc_username | In-game username. No longer in active use. | String | deprecated |