Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Playerhead: Difference between revisions

Template page
More languages
Created page with "<noinclude> ==When to use== <templatedata> { "params": { "1": { "label": "username", "description": "Wiki username of the player", "example": "SiOtter", "type": "string", "required": true } }, "description": "This is simply a quick way of expanding a username to a full user-space tag plus a user head image.", "paramOrder": [ "1" ] } </templatedata> ==Usage== Type '''<nowiki>{{playerhead|SiOtter}}</nowiki>''' where you would ordinarily use '''<n..."
 
Added a way to have a different MC username to the Wiki username
 
Line 5: Line 5:
"params": {
"params": {
"1": {
"1": {
"label": "username",
"label": "Minecraft Name or UUID",
"description": "Wiki username of the player",
"description": "Minecraft name of the player or their UUID. If UUID is used, please use the Wiki username field to link to the correct user",
"example": "SiOtter",
"example": "SiOtter",
"type": "string",
"type": "string",
"required": true
"required": true
},
"2": {
"label": "Wiki Username of the Person",
"description": "The name of the person on the wiki, use if the Minecraft name isn't identical",
"type": "wiki-user-name"
}
}
},
},
"description": "This is simply a quick way of expanding a username to a full user-space tag plus a user head image.",
"description": "This is simply a quick way of expanding a username to a full user-space tag plus a user head image.",
"paramOrder": [
"paramOrder": [
"1"
"1",
"2"
]
]
}
}
Line 25: Line 31:


=Credit=
=Credit=
I stole this template from the MCO wiki, so thanks to them for making it :)
I stole (and altered) this template from the MCO wiki, so thanks to them for making it :)


</noinclude><includeonly><span style="white-space:nowrap; image-rendering:pixelated">https://mc-heads.net/avatar/{{{1|}}}/16.png<nowiki></nowiki>&nbsp;[[User:{{{1}}}|{{{1}}}]]</span></includeonly>
</noinclude><includeonly><span style="white-space:nowrap; image-rendering:pixelated">https://mc-heads.net/avatar/{{{1|}}}/16.png&nbsp;[[User:{{{2|{{{1}}}}}}|{{{2|{{{1}}}}}}]]</span></includeonly>

Latest revision as of 16:50, 31 October 2025

When to use

This is simply a quick way of expanding a username to a full user-space tag plus a user head image.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Minecraft Name or UUID1

Minecraft name of the player or their UUID. If UUID is used, please use the Wiki username field to link to the correct user

Example
SiOtter
Stringrequired
Wiki Username of the Person2

The name of the person on the wiki, use if the Minecraft name isn't identical

Useroptional

Usage

Type {{playerhead|SiOtter}} where you would ordinarily use [[User:SiOtter|SiOtter]] to obtain 16.png SiOtter.

Best used in conjunction with the editing toolbar button to insert it automatically.

Credit

I stole (and altered) this template from the MCO wiki, so thanks to them for making it :)