Template:Playerhead: Difference between revisions
Template page
More languages
More actions
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": " | "label": "Minecraft Name or UUID", | ||
"description": "Wiki username | "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 | </noinclude><includeonly><span style="white-space:nowrap; image-rendering:pixelated">https://mc-heads.net/avatar/{{{1|}}}/16.png [[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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Minecraft Name or UUID | 1 | Minecraft name of the player or their UUID. If UUID is used, please use the Wiki username field to link to the correct user
| String | required |
| Wiki Username of the Person | 2 | The name of the person on the wiki, use if the Minecraft name isn't identical | User | optional |
Usage
Type {{playerhead|SiOtter}} where you would ordinarily use [[User:SiOtter|SiOtter]] to obtain
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 :)