Template

Player

From Dogcraft Wiki

imported>William
No edit summary
mNo edit summary
 
(31 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>
<includeonly><span class="playername" style="white-space:nowrap;">https://minotar.net/helm/{{{2|{{{1|MHF_Steve}}}}}}/20.png<nowiki></nowiki>&nbsp;''{{{1}}}''</span></includeonly><noinclude>[[Category:Annotation templates]]
==Player template==
==Player template==
This template adds a head image next to a player's username. Add wherever you refer to a player name. Useful for helping identify players.
This template adds a head image next to a player's username. Add wherever you refer to a player name. Useful for helping identify players.
===Example===
===Example===
<nowiki>{{Player|William278}}</nowiki> generates:
<code><nowiki>{{Player|William278}}</nowiki></code> generates: {{Player|William278}}
{{Player|William278}}
===Template Data===
 
<templatedata>{
<templatedata>{
  "description": "Displays a thumbnail of the player's Minecraft player head next to their username.",
"description": "Displays a player head next to a player's username and italicizes the username.",
  "params": {
"params": {
    "Minecraft Username": {
"1": {
      "label": "x",
"label": "Username",
      "description": "Minecraft Username",
"description": "Player's in-game name",
      "type": "line",
"type": "string",
      "required": true
"required": true
    }
}
  }
},
"format": "inline",
"paramOrder": [
"1"
]
}</templatedata>
}</templatedata>
 
<!-- Complex version of the template with UUID and former IGNs support, replaced to improve performance: {{#if: {{{uuid|}}}|https://dogcraft.net/img/mc/avatars/{{{uuid}}}?size=20.png|{{#ifeq: {{UUID|{{{1}}}}}|Unlinked Account|https://minotar.net/helm/{{{1|char}}}/20.png|https://dogcraft.net/img/mc/avatars/{{UUID|{{{1}}}}}?size=20.png}}}}<nowiki></nowiki>&nbsp;''{{#if: {{{formerly|}}}|{{{1}}} (formerly {{{2}}})|{{#if: {{{2|}}}|{{{2|}}}|{{{1}}}}}}}''</span> --></noinclude>
</noinclude>
 
<includeonly><span style="white-space:nowrap;">http://minecraftonline.com/cgi-bin/getplayerhead.sh?{{{1|char}}}&18.png<nowiki></nowiki>&nbsp;''{{{1}}}''</span></includeonly>

Latest revision as of 12:04, 4 December 2023

Player template

This template adds a head image next to a player's username. Add wherever you refer to a player name. Useful for helping identify players.

Example

{{Player|William278}} generates: 20.png William278

Template Data

Displays a player head next to a player's username and italicizes the username.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Username1

Player's in-game name

Stringrequired
Background Valentine's Day Event 2024 by TheWhiteTigerNL